blob: b0c8450208f7329f6c0edeeb8ca53a9ad729e7b4 [file] [log] [blame]
brynercb91a2f2006-08-25 21:14:45 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
ted.mielczareke574a2a2010-10-05 19:38:22 +00003# Generated by GNU Autoconf 2.65 for breakpad 0.1.
brynercb91a2f2006-08-25 21:14:45 +00004#
thestig@chromium.org43e6db72010-11-08 19:49:41 +00005# Report bugs to <google-breakpad-dev@googlegroups.com>.
brynercb91a2f2006-08-25 21:14:45 +00006#
jimblandydc4029a2010-02-02 17:39:51 +00007#
mmentovai8c2a4de2006-09-20 16:20:15 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ted.mielczareke574a2a2010-10-05 19:38:22 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
jimblandydc4029a2010-02-02 17:39:51 +000011#
jimblandy92b1f832009-12-23 22:23:49 +000012#
brynercb91a2f2006-08-25 21:14:45 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
jimblandy92b1f832009-12-23 22:23:49 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
brynercb91a2f2006-08-25 21:14:45 +000018
mmentovaiaf3c43f2007-05-17 18:34:37 +000019# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
jimblandy92b1f832009-12-23 22:23:49 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
brynercb91a2f2006-08-25 21:14:45 +000022 emulate sh
23 NULLCMD=:
jimblandy92b1f832009-12-23 22:23:49 +000024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
brynercb91a2f2006-08-25 21:14:45 +000025 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000027 setopt NO_GLOB_SUBST
28else
jimblandy92b1f832009-12-23 22:23:49 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
mmentovaiaf3c43f2007-05-17 18:34:37 +000034esac
brynercb91a2f2006-08-25 21:14:45 +000035fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000036
37
jimblandy92b1f832009-12-23 22:23:49 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
brynercb91a2f2006-08-25 21:14:45 +000075
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
jimblandy92b1f832009-12-23 22:23:49 +000078 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
mmentovai8c2a4de2006-09-20 16:20:15 +000083fi
brynercb91a2f2006-08-25 21:14:45 +000084
mmentovai8c2a4de2006-09-20 16:20:15 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
mmentovai8c2a4de2006-09-20 16:20:15 +000091IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
jimblandy92b1f832009-12-23 22:23:49 +000094case $0 in #((
mmentovai8c2a4de2006-09-20 16:20:15 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000097for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
mmentovai8c2a4de2006-09-20 16:20:15 +0000103IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +0000104
mmentovai8c2a4de2006-09-20 16:20:15 +0000105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
jimblandy92b1f832009-12-23 22:23:49 +0000113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
mmentovai8c2a4de2006-09-20 16:20:15 +0000115fi
116
jimblandy92b1f832009-12-23 22:23:49 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
mmentovai8c2a4de2006-09-20 16:20:15 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
jimblandy92b1f832009-12-23 22:23:49 +0000130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
mmentovai8c2a4de2006-09-20 16:20:15 +0000134
jimblandy92b1f832009-12-23 22:23:49 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
ted.mielczarekdbf409c2011-02-28 14:05:22 +0000234$0: google-breakpad-dev@googlegroups.com about your system,
235$0: including any error possibly output before this
236$0: message. Then install a modern shell, or manually run
237$0: the script under such a shell if you do have one."
jimblandy92b1f832009-12-23 22:23:49 +0000238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
ted.mielczareke574a2a2010-10-05 19:38:22 +0000322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
jimblandy92b1f832009-12-23 22:23:49 +0000323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
ted.mielczareke574a2a2010-10-05 19:38:22 +0000362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
jimblandy92b1f832009-12-23 22:23:49 +0000364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
ted.mielczareke574a2a2010-10-05 19:38:22 +0000366# script with status $?, using 1 if that was 0.
jimblandy92b1f832009-12-23 22:23:49 +0000367as_fn_error ()
368{
ted.mielczareke574a2a2010-10-05 19:38:22 +0000369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
jimblandy92b1f832009-12-23 22:23:49 +0000373 fi
ted.mielczareke574a2a2010-10-05 19:38:22 +0000374 $as_echo "$as_me: error: $1" >&2
jimblandy92b1f832009-12-23 22:23:49 +0000375 as_fn_exit $as_status
376} # as_fn_error
377
mmentovai8c2a4de2006-09-20 16:20:15 +0000378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
jimblandy92b1f832009-12-23 22:23:49 +0000391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000396
mmentovai8c2a4de2006-09-20 16:20:15 +0000397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +0000401$as_echo X/"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +0000402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
jimblandy92b1f832009-12-23 22:23:49 +0000416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
mmentovai8c2a4de2006-09-20 16:20:15 +0000422
423
jimblandy92b1f832009-12-23 22:23:49 +0000424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
mmentovai8c2a4de2006-09-20 16:20:15 +0000429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
brynercb91a2f2006-08-25 21:14:45 +0000433 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +0000434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
brynercb91a2f2006-08-25 21:14:45 +0000438 N
mmentovai8c2a4de2006-09-20 16:20:15 +0000439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
brynercb91a2f2006-08-25 21:14:45 +0000441 t loop
mmentovai8c2a4de2006-09-20 16:20:15 +0000442 s/-\n.*//
brynercb91a2f2006-08-25 21:14:45 +0000443 ' >$as_me.lineno &&
mmentovai8c2a4de2006-09-20 16:20:15 +0000444 chmod +x "$as_me.lineno" ||
jimblandy92b1f832009-12-23 22:23:49 +0000445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
brynercb91a2f2006-08-25 21:14:45 +0000446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
mmentovai8c2a4de2006-09-20 16:20:15 +0000449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
brynercb91a2f2006-08-25 21:14:45 +0000451 # Exit status is that of the last command.
452 exit
453}
454
mmentovai8c2a4de2006-09-20 16:20:15 +0000455ECHO_C= ECHO_N= ECHO_T=
jimblandy92b1f832009-12-23 22:23:49 +0000456case `echo -n x` in #(((((
mmentovai8c2a4de2006-09-20 16:20:15 +0000457-n*)
jimblandy92b1f832009-12-23 22:23:49 +0000458 case `echo 'xy\c'` in
mmentovai8c2a4de2006-09-20 16:20:15 +0000459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
jimblandy92b1f832009-12-23 22:23:49 +0000460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
mmentovai8c2a4de2006-09-20 16:20:15 +0000463 esac;;
464*)
465 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +0000466esac
467
brynercb91a2f2006-08-25 21:14:45 +0000468rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +0000469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
jimblandy92b1f832009-12-23 22:23:49 +0000473 mkdir conf$$.dir 2>/dev/null
mmentovai8c2a4de2006-09-20 16:20:15 +0000474fi
jimblandy92b1f832009-12-23 22:23:49 +0000475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
brynercb91a2f2006-08-25 21:14:45 +0000487 as_ln_s='cp -p'
jimblandy92b1f832009-12-23 22:23:49 +0000488 fi
brynercb91a2f2006-08-25 21:14:45 +0000489else
490 as_ln_s='cp -p'
491fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +0000494
495if mkdir -p . 2>/dev/null; then
jimblandy92b1f832009-12-23 22:23:49 +0000496 as_mkdir_p='mkdir -p "$as_dir"'
brynercb91a2f2006-08-25 21:14:45 +0000497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
mmentovaiaf3c43f2007-05-17 18:34:37 +0000502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
mmentovai8c2a4de2006-09-20 16:20:15 +0000504else
mmentovaiaf3c43f2007-05-17 18:34:37 +0000505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
jimblandy92b1f832009-12-23 22:23:49 +0000513 test -d "$1/.";
mmentovaiaf3c43f2007-05-17 18:34:37 +0000514 else
jimblandy92b1f832009-12-23 22:23:49 +0000515 case $1 in #(
516 -*)set "./$1";;
mmentovaiaf3c43f2007-05-17 18:34:37 +0000517 esac;
jimblandy92b1f832009-12-23 22:23:49 +0000518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
mmentovaiaf3c43f2007-05-17 18:34:37 +0000519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
mmentovai8c2a4de2006-09-20 16:20:15 +0000522fi
mmentovaiaf3c43f2007-05-17 18:34:37 +0000523as_executable_p=$as_test_x
brynercb91a2f2006-08-25 21:14:45 +0000524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
jimblandydc4029a2010-02-02 17:39:51 +0000532test -n "$DJDIR" || exec 7<&0 </dev/null
533exec 6>&1
mmentovai8c2a4de2006-09-20 16:20:15 +0000534
brynercb91a2f2006-08-25 21:14:45 +0000535# Name of the host.
ted.mielczareke574a2a2010-10-05 19:38:22 +0000536# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
brynercb91a2f2006-08-25 21:14:45 +0000537# so uname gets run too.
538ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
brynercb91a2f2006-08-25 21:14:45 +0000540#
541# Initializations.
542#
543ac_default_prefix=/usr/local
mmentovai8c2a4de2006-09-20 16:20:15 +0000544ac_clean_files=
brynercb91a2f2006-08-25 21:14:45 +0000545ac_config_libobj_dir=.
mmentovai8c2a4de2006-09-20 16:20:15 +0000546LIBOBJS=
brynercb91a2f2006-08-25 21:14:45 +0000547cross_compiling=no
548subdirs=
549MFLAGS=
550MAKEFLAGS=
brynercb91a2f2006-08-25 21:14:45 +0000551
brynercb91a2f2006-08-25 21:14:45 +0000552# Identity of this package.
mmentovaie5dc6082007-02-14 19:51:05 +0000553PACKAGE_NAME='breakpad'
554PACKAGE_TARNAME='breakpad'
brynercb91a2f2006-08-25 21:14:45 +0000555PACKAGE_VERSION='0.1'
mmentovaie5dc6082007-02-14 19:51:05 +0000556PACKAGE_STRING='breakpad 0.1'
thestig@chromium.org43e6db72010-11-08 19:49:41 +0000557PACKAGE_BUGREPORT='google-breakpad-dev@googlegroups.com'
jimblandy92b1f832009-12-23 22:23:49 +0000558PACKAGE_URL=''
brynercb91a2f2006-08-25 21:14:45 +0000559
560ac_unique_file="README"
ted.mielczarekdbf409c2011-02-28 14:05:22 +0000561# Factoring default headers for most tests.
562ac_includes_default="\
563#include <stdio.h>
564#ifdef HAVE_SYS_TYPES_H
565# include <sys/types.h>
566#endif
567#ifdef HAVE_SYS_STAT_H
568# include <sys/stat.h>
569#endif
570#ifdef STDC_HEADERS
571# include <stdlib.h>
572# include <stddef.h>
573#else
574# ifdef HAVE_STDLIB_H
575# include <stdlib.h>
576# endif
577#endif
578#ifdef HAVE_STRING_H
579# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580# include <memory.h>
581# endif
582# include <string.h>
583#endif
584#ifdef HAVE_STRINGS_H
585# include <strings.h>
586#endif
587#ifdef HAVE_INTTYPES_H
588# include <inttypes.h>
589#endif
590#ifdef HAVE_STDINT_H
591# include <stdint.h>
592#endif
593#ifdef HAVE_UNISTD_H
594# include <unistd.h>
595#endif"
596
jimblandy92b1f832009-12-23 22:23:49 +0000597ac_subst_vars='am__EXEEXT_FALSE
598am__EXEEXT_TRUE
599LTLIBOBJS
mmentovai8c2a4de2006-09-20 16:20:15 +0000600LIBOBJS
jimblandy92b1f832009-12-23 22:23:49 +0000601SELFTEST_FALSE
602SELFTEST_TRUE
ted.mielczarekdbf409c2011-02-28 14:05:22 +0000603DISABLE_TOOLS_FALSE
604DISABLE_TOOLS_TRUE
ted.mielczareke574a2a2010-10-05 19:38:22 +0000605DISABLE_PROCESSOR_FALSE
606DISABLE_PROCESSOR_TRUE
ted.mielczarek53a8b1a2010-08-31 15:09:01 +0000607LINUX_HOST_FALSE
608LINUX_HOST_TRUE
nealsidde545c02010-03-02 00:39:48 +0000609PTHREAD_CFLAGS
610PTHREAD_LIBS
611PTHREAD_CC
612ax_pthread_config
jimblandy92b1f832009-12-23 22:23:49 +0000613EGREP
614GREP
ted.mielczarekd192a712010-10-05 19:38:51 +0000615RANLIB
jimblandy92b1f832009-12-23 22:23:49 +0000616am__fastdepCXX_FALSE
617am__fastdepCXX_TRUE
618CXXDEPMODE
619ac_ct_CXX
620CXXFLAGS
621CXX
622CPP
623am__fastdepCC_FALSE
624am__fastdepCC_TRUE
625CCDEPMODE
626AMDEPBACKSLASH
627AMDEP_FALSE
628AMDEP_TRUE
629am__quote
630am__include
631DEPDIR
632OBJEXT
633EXEEXT
634ac_ct_CC
635CPPFLAGS
636LDFLAGS
637CFLAGS
638CC
639am__untar
640am__tar
641AMTAR
642am__leading_dot
643SET_MAKE
644AWK
645mkdir_p
646MKDIR_P
647INSTALL_STRIP_PROGRAM
648STRIP
649install_sh
650MAKEINFO
651AUTOHEADER
652AUTOMAKE
653AUTOCONF
654ACLOCAL
655VERSION
656PACKAGE
657CYGPATH_W
658am__isrc
659INSTALL_DATA
660INSTALL_SCRIPT
661INSTALL_PROGRAM
ted.mielczarek53a8b1a2010-08-31 15:09:01 +0000662host_os
663host_vendor
664host_cpu
665host
666build_os
667build_vendor
668build_cpu
669build
jimblandy92b1f832009-12-23 22:23:49 +0000670target_alias
671host_alias
672build_alias
673LIBS
674ECHO_T
675ECHO_N
676ECHO_C
677DEFS
678mandir
679localedir
680libdir
681psdir
682pdfdir
683dvidir
684htmldir
685infodir
686docdir
687oldincludedir
688includedir
689localstatedir
690sharedstatedir
691sysconfdir
692datadir
693datarootdir
694libexecdir
695sbindir
696bindir
697program_transform_name
698prefix
699exec_prefix
700PACKAGE_URL
701PACKAGE_BUGREPORT
702PACKAGE_STRING
703PACKAGE_VERSION
704PACKAGE_TARNAME
705PACKAGE_NAME
706PATH_SEPARATOR
707SHELL'
brynercb91a2f2006-08-25 21:14:45 +0000708ac_subst_files=''
jimblandy92b1f832009-12-23 22:23:49 +0000709ac_user_opts='
710enable_option_checking
711enable_dependency_tracking
nealsidde545c02010-03-02 00:39:48 +0000712enable_m32
ted.mielczareke574a2a2010-10-05 19:38:22 +0000713enable_processor
ted.mielczarekdbf409c2011-02-28 14:05:22 +0000714enable_tools
jimblandy92b1f832009-12-23 22:23:49 +0000715enable_selftest
716'
mmentovai8c2a4de2006-09-20 16:20:15 +0000717 ac_precious_vars='build_alias
718host_alias
719target_alias
720CC
721CFLAGS
722LDFLAGS
mmentovaiaf3c43f2007-05-17 18:34:37 +0000723LIBS
mmentovai8c2a4de2006-09-20 16:20:15 +0000724CPPFLAGS
725CPP
726CXX
727CXXFLAGS
ted.mielczarekd192a712010-10-05 19:38:51 +0000728CCC'
mmentovai8c2a4de2006-09-20 16:20:15 +0000729
brynercb91a2f2006-08-25 21:14:45 +0000730
731# Initialize some variables set by options.
732ac_init_help=
733ac_init_version=false
jimblandy92b1f832009-12-23 22:23:49 +0000734ac_unrecognized_opts=
735ac_unrecognized_sep=
brynercb91a2f2006-08-25 21:14:45 +0000736# The variables have the same names as the options, with
737# dashes changed to underlines.
738cache_file=/dev/null
739exec_prefix=NONE
740no_create=
741no_recursion=
742prefix=NONE
743program_prefix=NONE
744program_suffix=NONE
745program_transform_name=s,x,x,
746silent=
747site=
748srcdir=
749verbose=
750x_includes=NONE
751x_libraries=NONE
752
753# Installation directory options.
754# These are left unexpanded so users can "make install exec_prefix=/foo"
755# and all the variables that are supposed to be based on exec_prefix
756# by default will actually change.
757# Use braces instead of parens because sh, perl, etc. also accept them.
mmentovai8c2a4de2006-09-20 16:20:15 +0000758# (The list follows the same order as the GNU Coding Standards.)
brynercb91a2f2006-08-25 21:14:45 +0000759bindir='${exec_prefix}/bin'
760sbindir='${exec_prefix}/sbin'
761libexecdir='${exec_prefix}/libexec'
mmentovai8c2a4de2006-09-20 16:20:15 +0000762datarootdir='${prefix}/share'
763datadir='${datarootdir}'
brynercb91a2f2006-08-25 21:14:45 +0000764sysconfdir='${prefix}/etc'
765sharedstatedir='${prefix}/com'
766localstatedir='${prefix}/var'
brynercb91a2f2006-08-25 21:14:45 +0000767includedir='${prefix}/include'
768oldincludedir='/usr/include'
mmentovai8c2a4de2006-09-20 16:20:15 +0000769docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
770infodir='${datarootdir}/info'
771htmldir='${docdir}'
772dvidir='${docdir}'
773pdfdir='${docdir}'
774psdir='${docdir}'
775libdir='${exec_prefix}/lib'
776localedir='${datarootdir}/locale'
777mandir='${datarootdir}/man'
brynercb91a2f2006-08-25 21:14:45 +0000778
779ac_prev=
mmentovai8c2a4de2006-09-20 16:20:15 +0000780ac_dashdash=
brynercb91a2f2006-08-25 21:14:45 +0000781for ac_option
782do
783 # If the previous option needs an argument, assign it.
784 if test -n "$ac_prev"; then
mmentovai8c2a4de2006-09-20 16:20:15 +0000785 eval $ac_prev=\$ac_option
brynercb91a2f2006-08-25 21:14:45 +0000786 ac_prev=
787 continue
788 fi
789
mmentovai8c2a4de2006-09-20 16:20:15 +0000790 case $ac_option in
ted.mielczareke574a2a2010-10-05 19:38:22 +0000791 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
792 *) ac_optarg=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000793 esac
brynercb91a2f2006-08-25 21:14:45 +0000794
795 # Accept the important Cygnus configure options, so we can diagnose typos.
796
mmentovai8c2a4de2006-09-20 16:20:15 +0000797 case $ac_dashdash$ac_option in
798 --)
799 ac_dashdash=yes ;;
brynercb91a2f2006-08-25 21:14:45 +0000800
801 -bindir | --bindir | --bindi | --bind | --bin | --bi)
802 ac_prev=bindir ;;
803 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
804 bindir=$ac_optarg ;;
805
806 -build | --build | --buil | --bui | --bu)
807 ac_prev=build_alias ;;
808 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
809 build_alias=$ac_optarg ;;
810
811 -cache-file | --cache-file | --cache-fil | --cache-fi \
812 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
813 ac_prev=cache_file ;;
814 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
815 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
816 cache_file=$ac_optarg ;;
817
818 --config-cache | -C)
819 cache_file=config.cache ;;
820
mmentovai8c2a4de2006-09-20 16:20:15 +0000821 -datadir | --datadir | --datadi | --datad)
brynercb91a2f2006-08-25 21:14:45 +0000822 ac_prev=datadir ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000823 -datadir=* | --datadir=* | --datadi=* | --datad=*)
brynercb91a2f2006-08-25 21:14:45 +0000824 datadir=$ac_optarg ;;
825
mmentovai8c2a4de2006-09-20 16:20:15 +0000826 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
827 | --dataroo | --dataro | --datar)
828 ac_prev=datarootdir ;;
829 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
830 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
831 datarootdir=$ac_optarg ;;
832
brynercb91a2f2006-08-25 21:14:45 +0000833 -disable-* | --disable-*)
jimblandy92b1f832009-12-23 22:23:49 +0000834 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +0000835 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +0000836 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ted.mielczareke574a2a2010-10-05 19:38:22 +0000837 as_fn_error "invalid feature name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +0000838 ac_useropt_orig=$ac_useropt
839 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
840 case $ac_user_opts in
841 *"
842"enable_$ac_useropt"
843"*) ;;
844 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
845 ac_unrecognized_sep=', ';;
846 esac
847 eval enable_$ac_useropt=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000848
849 -docdir | --docdir | --docdi | --doc | --do)
850 ac_prev=docdir ;;
851 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
852 docdir=$ac_optarg ;;
853
854 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
855 ac_prev=dvidir ;;
856 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
857 dvidir=$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +0000858
859 -enable-* | --enable-*)
jimblandy92b1f832009-12-23 22:23:49 +0000860 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +0000861 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +0000862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ted.mielczareke574a2a2010-10-05 19:38:22 +0000863 as_fn_error "invalid feature name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +0000864 ac_useropt_orig=$ac_useropt
865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866 case $ac_user_opts in
867 *"
868"enable_$ac_useropt"
869"*) ;;
870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
871 ac_unrecognized_sep=', ';;
872 esac
873 eval enable_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +0000874
875 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
876 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
877 | --exec | --exe | --ex)
878 ac_prev=exec_prefix ;;
879 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
880 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
881 | --exec=* | --exe=* | --ex=*)
882 exec_prefix=$ac_optarg ;;
883
884 -gas | --gas | --ga | --g)
885 # Obsolete; use --with-gas.
886 with_gas=yes ;;
887
888 -help | --help | --hel | --he | -h)
889 ac_init_help=long ;;
890 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
891 ac_init_help=recursive ;;
892 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
893 ac_init_help=short ;;
894
895 -host | --host | --hos | --ho)
896 ac_prev=host_alias ;;
897 -host=* | --host=* | --hos=* | --ho=*)
898 host_alias=$ac_optarg ;;
899
mmentovai8c2a4de2006-09-20 16:20:15 +0000900 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
901 ac_prev=htmldir ;;
902 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
903 | --ht=*)
904 htmldir=$ac_optarg ;;
905
brynercb91a2f2006-08-25 21:14:45 +0000906 -includedir | --includedir | --includedi | --included | --include \
907 | --includ | --inclu | --incl | --inc)
908 ac_prev=includedir ;;
909 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
910 | --includ=* | --inclu=* | --incl=* | --inc=*)
911 includedir=$ac_optarg ;;
912
913 -infodir | --infodir | --infodi | --infod | --info | --inf)
914 ac_prev=infodir ;;
915 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
916 infodir=$ac_optarg ;;
917
918 -libdir | --libdir | --libdi | --libd)
919 ac_prev=libdir ;;
920 -libdir=* | --libdir=* | --libdi=* | --libd=*)
921 libdir=$ac_optarg ;;
922
923 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
924 | --libexe | --libex | --libe)
925 ac_prev=libexecdir ;;
926 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
927 | --libexe=* | --libex=* | --libe=*)
928 libexecdir=$ac_optarg ;;
929
mmentovai8c2a4de2006-09-20 16:20:15 +0000930 -localedir | --localedir | --localedi | --localed | --locale)
931 ac_prev=localedir ;;
932 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
933 localedir=$ac_optarg ;;
934
brynercb91a2f2006-08-25 21:14:45 +0000935 -localstatedir | --localstatedir | --localstatedi | --localstated \
mmentovai8c2a4de2006-09-20 16:20:15 +0000936 | --localstate | --localstat | --localsta | --localst | --locals)
brynercb91a2f2006-08-25 21:14:45 +0000937 ac_prev=localstatedir ;;
938 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mmentovai8c2a4de2006-09-20 16:20:15 +0000939 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
brynercb91a2f2006-08-25 21:14:45 +0000940 localstatedir=$ac_optarg ;;
941
942 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
943 ac_prev=mandir ;;
944 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
945 mandir=$ac_optarg ;;
946
947 -nfp | --nfp | --nf)
948 # Obsolete; use --without-fp.
949 with_fp=no ;;
950
951 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
952 | --no-cr | --no-c | -n)
953 no_create=yes ;;
954
955 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
956 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
957 no_recursion=yes ;;
958
959 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
960 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
961 | --oldin | --oldi | --old | --ol | --o)
962 ac_prev=oldincludedir ;;
963 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
964 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
965 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
966 oldincludedir=$ac_optarg ;;
967
968 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
969 ac_prev=prefix ;;
970 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
971 prefix=$ac_optarg ;;
972
973 -program-prefix | --program-prefix | --program-prefi | --program-pref \
974 | --program-pre | --program-pr | --program-p)
975 ac_prev=program_prefix ;;
976 -program-prefix=* | --program-prefix=* | --program-prefi=* \
977 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
978 program_prefix=$ac_optarg ;;
979
980 -program-suffix | --program-suffix | --program-suffi | --program-suff \
981 | --program-suf | --program-su | --program-s)
982 ac_prev=program_suffix ;;
983 -program-suffix=* | --program-suffix=* | --program-suffi=* \
984 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
985 program_suffix=$ac_optarg ;;
986
987 -program-transform-name | --program-transform-name \
988 | --program-transform-nam | --program-transform-na \
989 | --program-transform-n | --program-transform- \
990 | --program-transform | --program-transfor \
991 | --program-transfo | --program-transf \
992 | --program-trans | --program-tran \
993 | --progr-tra | --program-tr | --program-t)
994 ac_prev=program_transform_name ;;
995 -program-transform-name=* | --program-transform-name=* \
996 | --program-transform-nam=* | --program-transform-na=* \
997 | --program-transform-n=* | --program-transform-=* \
998 | --program-transform=* | --program-transfor=* \
999 | --program-transfo=* | --program-transf=* \
1000 | --program-trans=* | --program-tran=* \
1001 | --progr-tra=* | --program-tr=* | --program-t=*)
1002 program_transform_name=$ac_optarg ;;
1003
mmentovai8c2a4de2006-09-20 16:20:15 +00001004 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1005 ac_prev=pdfdir ;;
1006 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1007 pdfdir=$ac_optarg ;;
1008
1009 -psdir | --psdir | --psdi | --psd | --ps)
1010 ac_prev=psdir ;;
1011 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1012 psdir=$ac_optarg ;;
1013
brynercb91a2f2006-08-25 21:14:45 +00001014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 silent=yes ;;
1017
1018 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1019 ac_prev=sbindir ;;
1020 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1021 | --sbi=* | --sb=*)
1022 sbindir=$ac_optarg ;;
1023
1024 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1025 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1026 | --sharedst | --shareds | --shared | --share | --shar \
1027 | --sha | --sh)
1028 ac_prev=sharedstatedir ;;
1029 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1030 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1031 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1032 | --sha=* | --sh=*)
1033 sharedstatedir=$ac_optarg ;;
1034
1035 -site | --site | --sit)
1036 ac_prev=site ;;
1037 -site=* | --site=* | --sit=*)
1038 site=$ac_optarg ;;
1039
1040 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1041 ac_prev=srcdir ;;
1042 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1043 srcdir=$ac_optarg ;;
1044
1045 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1046 | --syscon | --sysco | --sysc | --sys | --sy)
1047 ac_prev=sysconfdir ;;
1048 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1049 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1050 sysconfdir=$ac_optarg ;;
1051
1052 -target | --target | --targe | --targ | --tar | --ta | --t)
1053 ac_prev=target_alias ;;
1054 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1055 target_alias=$ac_optarg ;;
1056
1057 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1058 verbose=yes ;;
1059
1060 -version | --version | --versio | --versi | --vers | -V)
1061 ac_init_version=: ;;
1062
1063 -with-* | --with-*)
jimblandy92b1f832009-12-23 22:23:49 +00001064 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001065 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ted.mielczareke574a2a2010-10-05 19:38:22 +00001067 as_fn_error "invalid package name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +00001068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1071 *"
1072"with_$ac_useropt"
1073"*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
1076 esac
1077 eval with_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001078
1079 -without-* | --without-*)
jimblandy92b1f832009-12-23 22:23:49 +00001080 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001081 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ted.mielczareke574a2a2010-10-05 19:38:22 +00001083 as_fn_error "invalid package name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +00001084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1087 *"
1088"with_$ac_useropt"
1089"*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval with_$ac_useropt=no ;;
brynercb91a2f2006-08-25 21:14:45 +00001094
1095 --x)
1096 # Obsolete; use --with-x.
1097 with_x=yes ;;
1098
1099 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1100 | --x-incl | --x-inc | --x-in | --x-i)
1101 ac_prev=x_includes ;;
1102 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1103 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1104 x_includes=$ac_optarg ;;
1105
1106 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1107 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1108 ac_prev=x_libraries ;;
1109 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1110 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1111 x_libraries=$ac_optarg ;;
1112
ted.mielczareke574a2a2010-10-05 19:38:22 +00001113 -*) as_fn_error "unrecognized option: \`$ac_option'
1114Try \`$0 --help' for more information."
brynercb91a2f2006-08-25 21:14:45 +00001115 ;;
1116
1117 *=*)
1118 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1119 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001120 case $ac_envvar in #(
1121 '' | [0-9]* | *[!_$as_cr_alnum]* )
ted.mielczareke574a2a2010-10-05 19:38:22 +00001122 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
jimblandy92b1f832009-12-23 22:23:49 +00001123 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001124 eval $ac_envvar=\$ac_optarg
brynercb91a2f2006-08-25 21:14:45 +00001125 export $ac_envvar ;;
1126
1127 *)
1128 # FIXME: should be removed in autoconf 3.0.
jimblandy92b1f832009-12-23 22:23:49 +00001129 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
brynercb91a2f2006-08-25 21:14:45 +00001130 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jimblandy92b1f832009-12-23 22:23:49 +00001131 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
brynercb91a2f2006-08-25 21:14:45 +00001132 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1133 ;;
1134
1135 esac
1136done
1137
1138if test -n "$ac_prev"; then
1139 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ted.mielczareke574a2a2010-10-05 19:38:22 +00001140 as_fn_error "missing argument to $ac_option"
brynercb91a2f2006-08-25 21:14:45 +00001141fi
1142
jimblandy92b1f832009-12-23 22:23:49 +00001143if test -n "$ac_unrecognized_opts"; then
1144 case $enable_option_checking in
1145 no) ;;
ted.mielczareke574a2a2010-10-05 19:38:22 +00001146 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
jimblandy92b1f832009-12-23 22:23:49 +00001147 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1148 esac
1149fi
1150
1151# Check all directory arguments for consistency.
mmentovai8c2a4de2006-09-20 16:20:15 +00001152for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1153 datadir sysconfdir sharedstatedir localstatedir includedir \
1154 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1155 libdir localedir mandir
brynercb91a2f2006-08-25 21:14:45 +00001156do
mmentovai8c2a4de2006-09-20 16:20:15 +00001157 eval ac_val=\$$ac_var
jimblandy92b1f832009-12-23 22:23:49 +00001158 # Remove trailing slashes.
1159 case $ac_val in
1160 */ )
1161 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1162 eval $ac_var=\$ac_val;;
1163 esac
1164 # Be sure to have absolute directory names.
brynercb91a2f2006-08-25 21:14:45 +00001165 case $ac_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001166 [\\/$]* | ?:[\\/]* ) continue;;
1167 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
brynercb91a2f2006-08-25 21:14:45 +00001168 esac
ted.mielczareke574a2a2010-10-05 19:38:22 +00001169 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
brynercb91a2f2006-08-25 21:14:45 +00001170done
1171
1172# There might be people who depend on the old broken behavior: `$host'
1173# used to hold the argument of --host etc.
1174# FIXME: To remove some day.
1175build=$build_alias
1176host=$host_alias
1177target=$target_alias
1178
1179# FIXME: To remove some day.
1180if test "x$host_alias" != x; then
1181 if test "x$build_alias" = x; then
1182 cross_compiling=maybe
ted.mielczareke574a2a2010-10-05 19:38:22 +00001183 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1184 If a cross compiler is detected then cross compile mode will be used." >&2
brynercb91a2f2006-08-25 21:14:45 +00001185 elif test "x$build_alias" != "x$host_alias"; then
1186 cross_compiling=yes
1187 fi
1188fi
1189
1190ac_tool_prefix=
1191test -n "$host_alias" && ac_tool_prefix=$host_alias-
1192
1193test "$silent" = yes && exec 6>/dev/null
1194
1195
mmentovai8c2a4de2006-09-20 16:20:15 +00001196ac_pwd=`pwd` && test -n "$ac_pwd" &&
1197ac_ls_di=`ls -di .` &&
1198ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00001199 as_fn_error "working directory cannot be determined"
mmentovai8c2a4de2006-09-20 16:20:15 +00001200test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00001201 as_fn_error "pwd does not report name of working directory"
mmentovai8c2a4de2006-09-20 16:20:15 +00001202
1203
brynercb91a2f2006-08-25 21:14:45 +00001204# Find the source files, if location was not specified.
1205if test -z "$srcdir"; then
1206 ac_srcdir_defaulted=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00001207 # Try the directory containing this script, then the parent directory.
jimblandy92b1f832009-12-23 22:23:49 +00001208 ac_confdir=`$as_dirname -- "$as_myself" ||
1209$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1210 X"$as_myself" : 'X\(//\)[^/]' \| \
1211 X"$as_myself" : 'X\(//\)$' \| \
1212 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1213$as_echo X"$as_myself" |
mmentovai8c2a4de2006-09-20 16:20:15 +00001214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1215 s//\1/
1216 q
1217 }
1218 /^X\(\/\/\)[^/].*/{
1219 s//\1/
1220 q
1221 }
1222 /^X\(\/\/\)$/{
1223 s//\1/
1224 q
1225 }
1226 /^X\(\/\).*/{
1227 s//\1/
1228 q
1229 }
1230 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +00001231 srcdir=$ac_confdir
mmentovai8c2a4de2006-09-20 16:20:15 +00001232 if test ! -r "$srcdir/$ac_unique_file"; then
brynercb91a2f2006-08-25 21:14:45 +00001233 srcdir=..
1234 fi
1235else
1236 ac_srcdir_defaulted=no
1237fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001238if test ! -r "$srcdir/$ac_unique_file"; then
1239 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ted.mielczareke574a2a2010-10-05 19:38:22 +00001240 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
brynercb91a2f2006-08-25 21:14:45 +00001241fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001242ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1243ac_abs_confdir=`(
ted.mielczareke574a2a2010-10-05 19:38:22 +00001244 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
mmentovai8c2a4de2006-09-20 16:20:15 +00001245 pwd)`
1246# When building in place, set srcdir=.
1247if test "$ac_abs_confdir" = "$ac_pwd"; then
1248 srcdir=.
1249fi
1250# Remove unnecessary trailing slashes from srcdir.
1251# Double slashes in file names in object file debugging info
1252# mess up M-x gdb in Emacs.
1253case $srcdir in
1254*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1255esac
1256for ac_var in $ac_precious_vars; do
1257 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1258 eval ac_env_${ac_var}_value=\$${ac_var}
1259 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1260 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1261done
brynercb91a2f2006-08-25 21:14:45 +00001262
1263#
1264# Report the --help message.
1265#
1266if test "$ac_init_help" = "long"; then
1267 # Omit some internal or obsolete options to make the list less imposing.
1268 # This message is too long to be a string in the A/UX 3.1 sh.
1269 cat <<_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001270\`configure' configures breakpad 0.1 to adapt to many kinds of systems.
brynercb91a2f2006-08-25 21:14:45 +00001271
1272Usage: $0 [OPTION]... [VAR=VALUE]...
1273
1274To assign environment variables (e.g., CC, CFLAGS...), specify them as
1275VAR=VALUE. See below for descriptions of some of the useful variables.
1276
1277Defaults for the options are specified in brackets.
1278
1279Configuration:
1280 -h, --help display this help and exit
1281 --help=short display options specific to this package
1282 --help=recursive display the short help of all the included packages
1283 -V, --version display version information and exit
ted.mielczareke574a2a2010-10-05 19:38:22 +00001284 -q, --quiet, --silent do not print \`checking...' messages
brynercb91a2f2006-08-25 21:14:45 +00001285 --cache-file=FILE cache test results in FILE [disabled]
1286 -C, --config-cache alias for \`--cache-file=config.cache'
1287 -n, --no-create do not create output files
1288 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1289
brynercb91a2f2006-08-25 21:14:45 +00001290Installation directories:
1291 --prefix=PREFIX install architecture-independent files in PREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001292 [$ac_default_prefix]
brynercb91a2f2006-08-25 21:14:45 +00001293 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001294 [PREFIX]
brynercb91a2f2006-08-25 21:14:45 +00001295
1296By default, \`make install' will install all the files in
1297\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1298an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1299for instance \`--prefix=\$HOME'.
1300
1301For better control, use the options below.
1302
1303Fine tuning of the installation directories:
jimblandy92b1f832009-12-23 22:23:49 +00001304 --bindir=DIR user executables [EPREFIX/bin]
1305 --sbindir=DIR system admin executables [EPREFIX/sbin]
1306 --libexecdir=DIR program executables [EPREFIX/libexec]
1307 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1308 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1309 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1310 --libdir=DIR object code libraries [EPREFIX/lib]
1311 --includedir=DIR C header files [PREFIX/include]
1312 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1313 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1314 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1315 --infodir=DIR info documentation [DATAROOTDIR/info]
1316 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1317 --mandir=DIR man documentation [DATAROOTDIR/man]
1318 --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad]
1319 --htmldir=DIR html documentation [DOCDIR]
1320 --dvidir=DIR dvi documentation [DOCDIR]
1321 --pdfdir=DIR pdf documentation [DOCDIR]
1322 --psdir=DIR ps documentation [DOCDIR]
brynercb91a2f2006-08-25 21:14:45 +00001323_ACEOF
1324
1325 cat <<\_ACEOF
1326
1327Program names:
1328 --program-prefix=PREFIX prepend PREFIX to installed program names
1329 --program-suffix=SUFFIX append SUFFIX to installed program names
1330 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1331
1332System types:
1333 --build=BUILD configure for building on BUILD [guessed]
1334 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1335_ACEOF
1336fi
1337
1338if test -n "$ac_init_help"; then
1339 case $ac_init_help in
mmentovaie5dc6082007-02-14 19:51:05 +00001340 short | recursive ) echo "Configuration of breakpad 0.1:";;
brynercb91a2f2006-08-25 21:14:45 +00001341 esac
1342 cat <<\_ACEOF
1343
1344Optional Features:
jimblandy92b1f832009-12-23 22:23:49 +00001345 --disable-option-checking ignore unrecognized --enable/--with options
brynercb91a2f2006-08-25 21:14:45 +00001346 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1347 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1348 --disable-dependency-tracking speeds up one-time build
1349 --enable-dependency-tracking do not reject slow dependency extractors
nealsidde545c02010-03-02 00:39:48 +00001350 --enable-m32 Compile/build with -m32 (default is no)
ted.mielczareke574a2a2010-10-05 19:38:22 +00001351 --disable-processor Don't build processor library (default is no)
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001352 --disable-tools Don't build tool binaries (default is no)
mmentovai0dbedc92006-09-25 21:16:15 +00001353 --enable-selftest Run extra tests with "make check" (may conflict with
1354 optimizations) (default is no)
brynercb91a2f2006-08-25 21:14:45 +00001355
brynercb91a2f2006-08-25 21:14:45 +00001356Some influential environment variables:
1357 CC C compiler command
1358 CFLAGS C compiler flags
1359 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1360 nonstandard directory <lib dir>
mmentovaiaf3c43f2007-05-17 18:34:37 +00001361 LIBS libraries to pass to the linker, e.g. -l<library>
jimblandydc4029a2010-02-02 17:39:51 +00001362 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
mmentovai8c2a4de2006-09-20 16:20:15 +00001363 you have headers in a nonstandard directory <include dir>
brynercb91a2f2006-08-25 21:14:45 +00001364 CPP C preprocessor
1365 CXX C++ compiler command
1366 CXXFLAGS C++ compiler flags
brynercb91a2f2006-08-25 21:14:45 +00001367
1368Use these variables to override the choices made by `configure' or to help
1369it to find libraries and programs with nonstandard names/locations.
1370
thestig@chromium.org43e6db72010-11-08 19:49:41 +00001371Report bugs to <google-breakpad-dev@googlegroups.com>.
brynercb91a2f2006-08-25 21:14:45 +00001372_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001373ac_status=$?
brynercb91a2f2006-08-25 21:14:45 +00001374fi
1375
1376if test "$ac_init_help" = "recursive"; then
1377 # If there are subdirs, report their specific --help.
brynercb91a2f2006-08-25 21:14:45 +00001378 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jimblandy92b1f832009-12-23 22:23:49 +00001379 test -d "$ac_dir" ||
1380 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1381 continue
brynercb91a2f2006-08-25 21:14:45 +00001382 ac_builddir=.
1383
mmentovai8c2a4de2006-09-20 16:20:15 +00001384case "$ac_dir" in
1385.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1386*)
jimblandy92b1f832009-12-23 22:23:49 +00001387 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001388 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +00001389 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001390 case $ac_top_builddir_sub in
1391 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1392 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1393 esac ;;
1394esac
1395ac_abs_top_builddir=$ac_pwd
1396ac_abs_builddir=$ac_pwd$ac_dir_suffix
1397# for backward compatibility:
1398ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00001399
1400case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00001401 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00001402 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00001403 ac_top_srcdir=$ac_top_builddir_sub
1404 ac_abs_top_srcdir=$ac_pwd ;;
1405 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00001406 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00001407 ac_top_srcdir=$srcdir
1408 ac_abs_top_srcdir=$srcdir ;;
1409 *) # Relative name.
1410 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1411 ac_top_srcdir=$ac_top_build_prefix$srcdir
1412 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00001413esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001414ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00001415
mmentovai8c2a4de2006-09-20 16:20:15 +00001416 cd "$ac_dir" || { ac_status=$?; continue; }
1417 # Check for guested configure.
1418 if test -f "$ac_srcdir/configure.gnu"; then
1419 echo &&
1420 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1421 elif test -f "$ac_srcdir/configure"; then
1422 echo &&
1423 $SHELL "$ac_srcdir/configure" --help=recursive
brynercb91a2f2006-08-25 21:14:45 +00001424 else
jimblandy92b1f832009-12-23 22:23:49 +00001425 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mmentovai8c2a4de2006-09-20 16:20:15 +00001426 fi || ac_status=$?
1427 cd "$ac_pwd" || { ac_status=$?; break; }
brynercb91a2f2006-08-25 21:14:45 +00001428 done
1429fi
1430
mmentovai8c2a4de2006-09-20 16:20:15 +00001431test -n "$ac_init_help" && exit $ac_status
brynercb91a2f2006-08-25 21:14:45 +00001432if $ac_init_version; then
1433 cat <<\_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001434breakpad configure 0.1
ted.mielczareke574a2a2010-10-05 19:38:22 +00001435generated by GNU Autoconf 2.65
brynercb91a2f2006-08-25 21:14:45 +00001436
ted.mielczareke574a2a2010-10-05 19:38:22 +00001437Copyright (C) 2009 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00001438This configure script is free software; the Free Software Foundation
1439gives unlimited permission to copy, distribute and modify it.
1440_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001441 exit
brynercb91a2f2006-08-25 21:14:45 +00001442fi
jimblandy92b1f832009-12-23 22:23:49 +00001443
1444## ------------------------ ##
1445## Autoconf initialization. ##
1446## ------------------------ ##
1447
1448# ac_fn_c_try_compile LINENO
1449# --------------------------
1450# Try to compile conftest.$ac_ext, and return whether this succeeded.
1451ac_fn_c_try_compile ()
1452{
1453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1454 rm -f conftest.$ac_objext
1455 if { { ac_try="$ac_compile"
1456case "(($ac_try" in
1457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1458 *) ac_try_echo=$ac_try;;
1459esac
1460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1461$as_echo "$ac_try_echo"; } >&5
1462 (eval "$ac_compile") 2>conftest.err
1463 ac_status=$?
1464 if test -s conftest.err; then
1465 grep -v '^ *+' conftest.err >conftest.er1
1466 cat conftest.er1 >&5
1467 mv -f conftest.er1 conftest.err
1468 fi
1469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1470 test $ac_status = 0; } && {
1471 test -z "$ac_c_werror_flag" ||
1472 test ! -s conftest.err
1473 } && test -s conftest.$ac_objext; then :
1474 ac_retval=0
1475else
1476 $as_echo "$as_me: failed program was:" >&5
1477sed 's/^/| /' conftest.$ac_ext >&5
1478
1479 ac_retval=1
1480fi
1481 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001482 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001483
1484} # ac_fn_c_try_compile
1485
1486# ac_fn_c_try_cpp LINENO
1487# ----------------------
1488# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1489ac_fn_c_try_cpp ()
1490{
1491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1492 if { { ac_try="$ac_cpp conftest.$ac_ext"
1493case "(($ac_try" in
1494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495 *) ac_try_echo=$ac_try;;
1496esac
1497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498$as_echo "$ac_try_echo"; } >&5
1499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1500 ac_status=$?
1501 if test -s conftest.err; then
1502 grep -v '^ *+' conftest.err >conftest.er1
1503 cat conftest.er1 >&5
1504 mv -f conftest.er1 conftest.err
1505 fi
1506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
ted.mielczareke574a2a2010-10-05 19:38:22 +00001507 test $ac_status = 0; } >/dev/null && {
jimblandy92b1f832009-12-23 22:23:49 +00001508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1509 test ! -s conftest.err
1510 }; then :
1511 ac_retval=0
1512else
1513 $as_echo "$as_me: failed program was:" >&5
1514sed 's/^/| /' conftest.$ac_ext >&5
1515
1516 ac_retval=1
1517fi
1518 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001519 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001520
1521} # ac_fn_c_try_cpp
1522
1523# ac_fn_cxx_try_compile LINENO
1524# ----------------------------
1525# Try to compile conftest.$ac_ext, and return whether this succeeded.
1526ac_fn_cxx_try_compile ()
1527{
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1531case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534esac
1535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536$as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1543 fi
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_cxx_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1549 ac_retval=0
1550else
1551 $as_echo "$as_me: failed program was:" >&5
1552sed 's/^/| /' conftest.$ac_ext >&5
1553
1554 ac_retval=1
1555fi
1556 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001557 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001558
1559} # ac_fn_cxx_try_compile
1560
ted.mielczarekd192a712010-10-05 19:38:51 +00001561# ac_fn_c_try_run LINENO
1562# ----------------------
1563# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1564# that executables *can* be run.
1565ac_fn_c_try_run ()
1566{
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 if { { ac_try="$ac_link"
1569case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572esac
1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574$as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_link") 2>&5
1576 ac_status=$?
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1579 { { case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582esac
1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584$as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_try") 2>&5
1586 ac_status=$?
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; }; }; then :
1589 ac_retval=0
1590else
1591 $as_echo "$as_me: program exited with status $ac_status" >&5
1592 $as_echo "$as_me: failed program was:" >&5
1593sed 's/^/| /' conftest.$ac_ext >&5
1594
1595 ac_retval=$ac_status
1596fi
1597 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1598 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1599 as_fn_set_status $ac_retval
1600
1601} # ac_fn_c_try_run
1602
jimblandy92b1f832009-12-23 22:23:49 +00001603# ac_fn_c_try_link LINENO
1604# -----------------------
1605# Try to link conftest.$ac_ext, and return whether this succeeded.
1606ac_fn_c_try_link ()
1607{
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 rm -f conftest.$ac_objext conftest$ac_exeext
1610 if { { ac_try="$ac_link"
1611case "(($ac_try" in
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1614esac
1615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616$as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_link") 2>conftest.err
1618 ac_status=$?
1619 if test -s conftest.err; then
1620 grep -v '^ *+' conftest.err >conftest.er1
1621 cat conftest.er1 >&5
1622 mv -f conftest.er1 conftest.err
1623 fi
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; } && {
1626 test -z "$ac_c_werror_flag" ||
1627 test ! -s conftest.err
1628 } && test -s conftest$ac_exeext && {
1629 test "$cross_compiling" = yes ||
1630 $as_test_x conftest$ac_exeext
1631 }; then :
1632 ac_retval=0
1633else
1634 $as_echo "$as_me: failed program was:" >&5
1635sed 's/^/| /' conftest.$ac_ext >&5
1636
1637 ac_retval=1
1638fi
1639 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1640 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1641 # interfere with the next link command; also delete a directory that is
1642 # left behind by Apple's compiler. We do this before executing the actions.
1643 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001645 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001646
1647} # ac_fn_c_try_link
1648
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001649# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1650# -------------------------------------------------------
1651# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1652# the include files in INCLUDES and setting the cache variable VAR
1653# accordingly.
1654ac_fn_c_check_header_mongrel ()
1655{
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659$as_echo_n "checking for $2... " >&6; }
1660if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1661 $as_echo_n "(cached) " >&6
1662fi
1663eval ac_res=\$$3
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665$as_echo "$ac_res" >&6; }
1666else
1667 # Is the header compilable?
1668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1669$as_echo_n "checking $2 usability... " >&6; }
1670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671/* end confdefs.h. */
1672$4
1673#include <$2>
1674_ACEOF
1675if ac_fn_c_try_compile "$LINENO"; then :
1676 ac_header_compiler=yes
1677else
1678 ac_header_compiler=no
1679fi
1680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1682$as_echo "$ac_header_compiler" >&6; }
1683
1684# Is the header present?
1685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1686$as_echo_n "checking $2 presence... " >&6; }
1687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688/* end confdefs.h. */
1689#include <$2>
1690_ACEOF
1691if ac_fn_c_try_cpp "$LINENO"; then :
1692 ac_header_preproc=yes
1693else
1694 ac_header_preproc=no
1695fi
1696rm -f conftest.err conftest.$ac_ext
1697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1698$as_echo "$ac_header_preproc" >&6; }
1699
1700# So? What about this header?
1701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1702 yes:no: )
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1704$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1706$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1707 ;;
1708 no:yes:* )
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1710$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1712$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1714$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1716$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1718$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1719( cat <<\_ASBOX
1720## --------------------------------------------------- ##
1721## Report this to google-breakpad-dev@googlegroups.com ##
1722## --------------------------------------------------- ##
1723_ASBOX
1724 ) | sed "s/^/$as_me: WARNING: /" >&2
1725 ;;
1726esac
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728$as_echo_n "checking for $2... " >&6; }
1729if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1730 $as_echo_n "(cached) " >&6
1731else
1732 eval "$3=\$ac_header_compiler"
1733fi
1734eval ac_res=\$$3
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736$as_echo "$ac_res" >&6; }
1737fi
1738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1739
1740} # ac_fn_c_check_header_mongrel
1741
1742# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1743# -------------------------------------------------------
1744# Tests whether HEADER exists and can be compiled using the include files in
1745# INCLUDES, setting the cache variable VAR accordingly.
1746ac_fn_c_check_header_compile ()
1747{
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750$as_echo_n "checking for $2... " >&6; }
1751if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1752 $as_echo_n "(cached) " >&6
1753else
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755/* end confdefs.h. */
1756$4
1757#include <$2>
1758_ACEOF
1759if ac_fn_c_try_compile "$LINENO"; then :
1760 eval "$3=yes"
1761else
1762 eval "$3=no"
1763fi
1764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1765fi
1766eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768$as_echo "$ac_res" >&6; }
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770
1771} # ac_fn_c_check_header_compile
1772
ted.mielczarekb2236272010-04-08 23:06:23 +00001773# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1774# ----------------------------------------------------
1775# Tries to find if the field MEMBER exists in type AGGR, after including
1776# INCLUDES, setting cache variable VAR accordingly.
1777ac_fn_c_check_member ()
1778{
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1781$as_echo_n "checking for $2.$3... " >&6; }
ted.mielczareke574a2a2010-10-05 19:38:22 +00001782if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
ted.mielczarekb2236272010-04-08 23:06:23 +00001783 $as_echo_n "(cached) " >&6
1784else
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h. */
1787$5
1788int
1789main ()
1790{
1791static $2 ac_aggr;
1792if (ac_aggr.$3)
1793return 0;
1794 ;
1795 return 0;
1796}
1797_ACEOF
1798if ac_fn_c_try_compile "$LINENO"; then :
1799 eval "$4=yes"
1800else
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802/* end confdefs.h. */
1803$5
1804int
1805main ()
1806{
1807static $2 ac_aggr;
1808if (sizeof ac_aggr.$3)
1809return 0;
1810 ;
1811 return 0;
1812}
1813_ACEOF
1814if ac_fn_c_try_compile "$LINENO"; then :
1815 eval "$4=yes"
1816else
1817 eval "$4=no"
1818fi
1819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820fi
1821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822fi
1823eval ac_res=\$$4
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825$as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827
1828} # ac_fn_c_check_member
mmentovai8c2a4de2006-09-20 16:20:15 +00001829cat >config.log <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00001830This file contains any messages produced by compilers while
1831running configure, to aid debugging if configure makes a mistake.
1832
mmentovaie5dc6082007-02-14 19:51:05 +00001833It was created by breakpad $as_me 0.1, which was
ted.mielczareke574a2a2010-10-05 19:38:22 +00001834generated by GNU Autoconf 2.65. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00001835
1836 $ $0 $@
1837
1838_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001839exec 5>>config.log
brynercb91a2f2006-08-25 21:14:45 +00001840{
1841cat <<_ASUNAME
1842## --------- ##
1843## Platform. ##
1844## --------- ##
1845
1846hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1847uname -m = `(uname -m) 2>/dev/null || echo unknown`
1848uname -r = `(uname -r) 2>/dev/null || echo unknown`
1849uname -s = `(uname -s) 2>/dev/null || echo unknown`
1850uname -v = `(uname -v) 2>/dev/null || echo unknown`
1851
1852/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1853/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1854
1855/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1856/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1857/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mmentovai8c2a4de2006-09-20 16:20:15 +00001858/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
brynercb91a2f2006-08-25 21:14:45 +00001859/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1860/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1861/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1862
1863_ASUNAME
1864
1865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866for as_dir in $PATH
1867do
1868 IFS=$as_save_IFS
1869 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00001870 $as_echo "PATH: $as_dir"
1871 done
mmentovai8c2a4de2006-09-20 16:20:15 +00001872IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00001873
1874} >&5
1875
1876cat >&5 <<_ACEOF
1877
1878
1879## ----------- ##
1880## Core tests. ##
1881## ----------- ##
1882
1883_ACEOF
1884
1885
1886# Keep a trace of the command line.
1887# Strip out --no-create and --no-recursion so they do not pile up.
1888# Strip out --silent because we don't want to record it for future runs.
1889# Also quote any args containing shell meta-characters.
1890# Make two passes to allow for proper duplicate-argument suppression.
1891ac_configure_args=
1892ac_configure_args0=
1893ac_configure_args1=
brynercb91a2f2006-08-25 21:14:45 +00001894ac_must_keep_next=false
1895for ac_pass in 1 2
1896do
1897 for ac_arg
1898 do
1899 case $ac_arg in
1900 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1901 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1902 | -silent | --silent | --silen | --sile | --sil)
1903 continue ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001904 *\'*)
jimblandy92b1f832009-12-23 22:23:49 +00001905 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00001906 esac
1907 case $ac_pass in
jimblandy92b1f832009-12-23 22:23:49 +00001908 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00001909 2)
jimblandy92b1f832009-12-23 22:23:49 +00001910 as_fn_append ac_configure_args1 " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00001911 if test $ac_must_keep_next = true; then
1912 ac_must_keep_next=false # Got value, back to normal.
1913 else
1914 case $ac_arg in
1915 *=* | --config-cache | -C | -disable-* | --disable-* \
1916 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1917 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1918 | -with-* | --with-* | -without-* | --without-* | --x)
1919 case "$ac_configure_args0 " in
1920 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1921 esac
1922 ;;
1923 -* ) ac_must_keep_next=true ;;
1924 esac
1925 fi
jimblandy92b1f832009-12-23 22:23:49 +00001926 as_fn_append ac_configure_args " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00001927 ;;
1928 esac
1929 done
1930done
jimblandy92b1f832009-12-23 22:23:49 +00001931{ ac_configure_args0=; unset ac_configure_args0;}
1932{ ac_configure_args1=; unset ac_configure_args1;}
brynercb91a2f2006-08-25 21:14:45 +00001933
1934# When interrupted or exit'd, cleanup temporary files, and complete
1935# config.log. We remove comments because anyway the quotes in there
1936# would cause problems or look ugly.
mmentovai8c2a4de2006-09-20 16:20:15 +00001937# WARNING: Use '\'' to represent an apostrophe within the trap.
1938# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
brynercb91a2f2006-08-25 21:14:45 +00001939trap 'exit_status=$?
1940 # Save into config.log some information that might help in debugging.
1941 {
1942 echo
1943
ted.mielczareke574a2a2010-10-05 19:38:22 +00001944 cat <<\_ASBOX
1945## ---------------- ##
brynercb91a2f2006-08-25 21:14:45 +00001946## Cache variables. ##
ted.mielczareke574a2a2010-10-05 19:38:22 +00001947## ---------------- ##
1948_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00001949 echo
1950 # The following way of writing the cache mishandles newlines in values,
mmentovai8c2a4de2006-09-20 16:20:15 +00001951(
1952 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1953 eval ac_val=\$$ac_var
1954 case $ac_val in #(
1955 *${as_nl}*)
1956 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +00001957 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1958$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001959 esac
1960 case $ac_var in #(
1961 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +00001962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1963 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001964 esac ;;
1965 esac
1966 done
brynercb91a2f2006-08-25 21:14:45 +00001967 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00001968 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1969 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +00001970 sed -n \
mmentovai8c2a4de2006-09-20 16:20:15 +00001971 "s/'\''/'\''\\\\'\'''\''/g;
1972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1973 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00001974 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00001975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00001976 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001977 esac |
1978 sort
1979)
brynercb91a2f2006-08-25 21:14:45 +00001980 echo
1981
ted.mielczareke574a2a2010-10-05 19:38:22 +00001982 cat <<\_ASBOX
1983## ----------------- ##
brynercb91a2f2006-08-25 21:14:45 +00001984## Output variables. ##
ted.mielczareke574a2a2010-10-05 19:38:22 +00001985## ----------------- ##
1986_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00001987 echo
1988 for ac_var in $ac_subst_vars
1989 do
mmentovai8c2a4de2006-09-20 16:20:15 +00001990 eval ac_val=\$$ac_var
1991 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00001992 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001993 esac
jimblandy92b1f832009-12-23 22:23:49 +00001994 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00001995 done | sort
1996 echo
1997
1998 if test -n "$ac_subst_files"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00001999 cat <<\_ASBOX
2000## ------------------- ##
mmentovai8c2a4de2006-09-20 16:20:15 +00002001## File substitutions. ##
ted.mielczareke574a2a2010-10-05 19:38:22 +00002002## ------------------- ##
2003_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00002004 echo
2005 for ac_var in $ac_subst_files
2006 do
mmentovai8c2a4de2006-09-20 16:20:15 +00002007 eval ac_val=\$$ac_var
2008 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00002009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002010 esac
jimblandy92b1f832009-12-23 22:23:49 +00002011 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00002012 done | sort
2013 echo
2014 fi
2015
2016 if test -s confdefs.h; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00002017 cat <<\_ASBOX
2018## ----------- ##
brynercb91a2f2006-08-25 21:14:45 +00002019## confdefs.h. ##
ted.mielczareke574a2a2010-10-05 19:38:22 +00002020## ----------- ##
2021_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00002022 echo
mmentovai8c2a4de2006-09-20 16:20:15 +00002023 cat confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00002024 echo
2025 fi
2026 test "$ac_signal" != 0 &&
jimblandy92b1f832009-12-23 22:23:49 +00002027 $as_echo "$as_me: caught signal $ac_signal"
2028 $as_echo "$as_me: exit $exit_status"
brynercb91a2f2006-08-25 21:14:45 +00002029 } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00002030 rm -f core *.core core.conftest.* &&
2031 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
brynercb91a2f2006-08-25 21:14:45 +00002032 exit $exit_status
mmentovai8c2a4de2006-09-20 16:20:15 +00002033' 0
brynercb91a2f2006-08-25 21:14:45 +00002034for ac_signal in 1 2 13 15; do
jimblandy92b1f832009-12-23 22:23:49 +00002035 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
brynercb91a2f2006-08-25 21:14:45 +00002036done
2037ac_signal=0
2038
2039# confdefs.h avoids OS command line length limits that DEFS can exceed.
mmentovai8c2a4de2006-09-20 16:20:15 +00002040rm -f -r conftest* confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00002041
jimblandy92b1f832009-12-23 22:23:49 +00002042$as_echo "/* confdefs.h */" > confdefs.h
2043
brynercb91a2f2006-08-25 21:14:45 +00002044# Predefined preprocessor variables.
2045
2046cat >>confdefs.h <<_ACEOF
2047#define PACKAGE_NAME "$PACKAGE_NAME"
2048_ACEOF
2049
brynercb91a2f2006-08-25 21:14:45 +00002050cat >>confdefs.h <<_ACEOF
2051#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2052_ACEOF
2053
brynercb91a2f2006-08-25 21:14:45 +00002054cat >>confdefs.h <<_ACEOF
2055#define PACKAGE_VERSION "$PACKAGE_VERSION"
2056_ACEOF
2057
brynercb91a2f2006-08-25 21:14:45 +00002058cat >>confdefs.h <<_ACEOF
2059#define PACKAGE_STRING "$PACKAGE_STRING"
2060_ACEOF
2061
brynercb91a2f2006-08-25 21:14:45 +00002062cat >>confdefs.h <<_ACEOF
2063#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2064_ACEOF
2065
jimblandy92b1f832009-12-23 22:23:49 +00002066cat >>confdefs.h <<_ACEOF
2067#define PACKAGE_URL "$PACKAGE_URL"
2068_ACEOF
2069
brynercb91a2f2006-08-25 21:14:45 +00002070
2071# Let the site file select an alternate cache file if it wants to.
jimblandy92b1f832009-12-23 22:23:49 +00002072# Prefer an explicitly selected file to automatically selected ones.
2073ac_site_file1=NONE
2074ac_site_file2=NONE
mmentovai8c2a4de2006-09-20 16:20:15 +00002075if test -n "$CONFIG_SITE"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00002076 ac_site_file1=$CONFIG_SITE
mmentovai8c2a4de2006-09-20 16:20:15 +00002077elif test "x$prefix" != xNONE; then
jimblandy92b1f832009-12-23 22:23:49 +00002078 ac_site_file1=$prefix/share/config.site
2079 ac_site_file2=$prefix/etc/config.site
mmentovai8c2a4de2006-09-20 16:20:15 +00002080else
jimblandy92b1f832009-12-23 22:23:49 +00002081 ac_site_file1=$ac_default_prefix/share/config.site
2082 ac_site_file2=$ac_default_prefix/etc/config.site
brynercb91a2f2006-08-25 21:14:45 +00002083fi
jimblandy92b1f832009-12-23 22:23:49 +00002084for ac_site_file in "$ac_site_file1" "$ac_site_file2"
mmentovai8c2a4de2006-09-20 16:20:15 +00002085do
jimblandy92b1f832009-12-23 22:23:49 +00002086 test "x$ac_site_file" = xNONE && continue
jimblandydc4029a2010-02-02 17:39:51 +00002087 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002088 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2089$as_echo "$as_me: loading site script $ac_site_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002090 sed 's/^/| /' "$ac_site_file" >&5
ted.mielczareke574a2a2010-10-05 19:38:22 +00002091 . "$ac_site_file"
brynercb91a2f2006-08-25 21:14:45 +00002092 fi
2093done
2094
2095if test -r "$cache_file"; then
jimblandydc4029a2010-02-02 17:39:51 +00002096 # Some versions of bash will fail to source /dev/null (special files
2097 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2098 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002099 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2100$as_echo "$as_me: loading cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002101 case $cache_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002102 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2103 *) . "./$cache_file";;
brynercb91a2f2006-08-25 21:14:45 +00002104 esac
2105 fi
2106else
jimblandy92b1f832009-12-23 22:23:49 +00002107 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2108$as_echo "$as_me: creating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002109 >$cache_file
2110fi
2111
2112# Check that the precious variables saved in the cache have kept the same
2113# value.
2114ac_cache_corrupted=false
mmentovai8c2a4de2006-09-20 16:20:15 +00002115for ac_var in $ac_precious_vars; do
brynercb91a2f2006-08-25 21:14:45 +00002116 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2117 eval ac_new_set=\$ac_env_${ac_var}_set
mmentovai8c2a4de2006-09-20 16:20:15 +00002118 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2119 eval ac_new_val=\$ac_env_${ac_var}_value
brynercb91a2f2006-08-25 21:14:45 +00002120 case $ac_old_set,$ac_new_set in
2121 set,)
jimblandy92b1f832009-12-23 22:23:49 +00002122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2123$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002124 ac_cache_corrupted=: ;;
2125 ,set)
jimblandy92b1f832009-12-23 22:23:49 +00002126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2127$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002128 ac_cache_corrupted=: ;;
2129 ,);;
2130 *)
2131 if test "x$ac_old_val" != "x$ac_new_val"; then
jimblandy92b1f832009-12-23 22:23:49 +00002132 # differences in whitespace do not lead to failure.
2133 ac_old_val_w=`echo x $ac_old_val`
2134 ac_new_val_w=`echo x $ac_new_val`
2135 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2137$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2138 ac_cache_corrupted=:
2139 else
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2141$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2142 eval $ac_var=\$ac_old_val
2143 fi
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2145$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2147$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002148 fi;;
2149 esac
2150 # Pass precious variables to config.status.
2151 if test "$ac_new_set" = set; then
2152 case $ac_new_val in
jimblandy92b1f832009-12-23 22:23:49 +00002153 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00002154 *) ac_arg=$ac_var=$ac_new_val ;;
2155 esac
2156 case " $ac_configure_args " in
2157 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jimblandy92b1f832009-12-23 22:23:49 +00002158 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00002159 esac
2160 fi
2161done
2162if $ac_cache_corrupted; then
jimblandy92b1f832009-12-23 22:23:49 +00002163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2166$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00002167 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002168fi
jimblandy92b1f832009-12-23 22:23:49 +00002169## -------------------- ##
2170## Main body of script. ##
2171## -------------------- ##
mmentovai8c2a4de2006-09-20 16:20:15 +00002172
brynercb91a2f2006-08-25 21:14:45 +00002173ac_ext=c
2174ac_cpp='$CPP $CPPFLAGS'
2175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178
2179
2180
brynercb91a2f2006-08-25 21:14:45 +00002181ac_aux_dir=
mmentovai8c2a4de2006-09-20 16:20:15 +00002182for ac_dir in autotools "$srcdir"/autotools; do
ted.mielczareke574a2a2010-10-05 19:38:22 +00002183 for ac_t in install-sh install.sh shtool; do
2184 if test -f "$ac_dir/$ac_t"; then
2185 ac_aux_dir=$ac_dir
2186 ac_install_sh="$ac_aux_dir/$ac_t -c"
2187 break 2
2188 fi
2189 done
brynercb91a2f2006-08-25 21:14:45 +00002190done
2191if test -z "$ac_aux_dir"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00002192 as_fn_error "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002193fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002194
2195# These three variables are undocumented and unsupported,
2196# and are intended to be withdrawn in a future Autoconf release.
2197# They can cause serious problems if a builder's source tree is in a directory
2198# whose full name contains unusual characters.
2199ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2200ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2201ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2202
brynercb91a2f2006-08-25 21:14:45 +00002203
mmentovai425d2562006-08-30 20:05:05 +00002204
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002205# Make sure we can run config.sub.
2206$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00002207 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002208
2209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2210$as_echo_n "checking build system type... " >&6; }
2211if test "${ac_cv_build+set}" = set; then :
2212 $as_echo_n "(cached) " >&6
2213else
2214 ac_build_alias=$build_alias
2215test "x$ac_build_alias" = x &&
2216 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2217test "x$ac_build_alias" = x &&
ted.mielczareke574a2a2010-10-05 19:38:22 +00002218 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002219ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00002220 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002221
2222fi
2223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2224$as_echo "$ac_cv_build" >&6; }
2225case $ac_cv_build in
2226*-*-*) ;;
ted.mielczareke574a2a2010-10-05 19:38:22 +00002227*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002228esac
2229build=$ac_cv_build
2230ac_save_IFS=$IFS; IFS='-'
2231set x $ac_cv_build
2232shift
2233build_cpu=$1
2234build_vendor=$2
2235shift; shift
2236# Remember, the first character of IFS is used to create $*,
2237# except with old shells:
2238build_os=$*
2239IFS=$ac_save_IFS
2240case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2241
2242
2243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2244$as_echo_n "checking host system type... " >&6; }
2245if test "${ac_cv_host+set}" = set; then :
2246 $as_echo_n "(cached) " >&6
2247else
2248 if test "x$host_alias" = x; then
2249 ac_cv_host=$ac_cv_build
2250else
2251 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00002252 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002253fi
2254
2255fi
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2257$as_echo "$ac_cv_host" >&6; }
2258case $ac_cv_host in
2259*-*-*) ;;
ted.mielczareke574a2a2010-10-05 19:38:22 +00002260*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002261esac
2262host=$ac_cv_host
2263ac_save_IFS=$IFS; IFS='-'
2264set x $ac_cv_host
2265shift
2266host_cpu=$1
2267host_vendor=$2
2268shift; shift
2269# Remember, the first character of IFS is used to create $*,
2270# except with old shells:
2271host_os=$*
2272IFS=$ac_save_IFS
2273case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2274
2275
2276
jimblandy92b1f832009-12-23 22:23:49 +00002277am__api_version='1.11'
mmentovaiaf3c43f2007-05-17 18:34:37 +00002278
brynercb91a2f2006-08-25 21:14:45 +00002279# Find a good install program. We prefer a C program (faster),
2280# so one script is as good as another. But avoid the broken or
2281# incompatible versions:
2282# SysV /etc/install, /usr/sbin/install
2283# SunOS /usr/etc/install
2284# IRIX /sbin/install
2285# AIX /bin/install
2286# AmigaOS /C/install, which installs bootblocks on floppy discs
2287# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2288# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2289# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2290# OS/2's system install, which has a completely different semantic
2291# ./install, which can be erroneously created by make from ./install.sh.
jimblandy92b1f832009-12-23 22:23:49 +00002292# Reject install programs that cannot install multiple files.
2293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2294$as_echo_n "checking for a BSD-compatible install... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002295if test -z "$INSTALL"; then
jimblandy92b1f832009-12-23 22:23:49 +00002296if test "${ac_cv_path_install+set}" = set; then :
2297 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002298else
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300for as_dir in $PATH
2301do
2302 IFS=$as_save_IFS
2303 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002304 # Account for people who put trailing slashes in PATH elements.
2305case $as_dir/ in #((
2306 ./ | .// | /[cC]/* | \
brynercb91a2f2006-08-25 21:14:45 +00002307 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jimblandy92b1f832009-12-23 22:23:49 +00002308 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
brynercb91a2f2006-08-25 21:14:45 +00002309 /usr/ucb/* ) ;;
2310 *)
2311 # OSF1 and SCO ODT 3.0 have their own names for install.
2312 # Don't use installbsd from OSF since it installs stuff as root
2313 # by default.
2314 for ac_prog in ginstall scoinst install; do
2315 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002316 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002317 if test $ac_prog = install &&
2318 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2319 # AIX install. It has an incompatible calling convention.
2320 :
2321 elif test $ac_prog = install &&
2322 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2323 # program-specific install script used by HP pwplus--don't use.
2324 :
2325 else
jimblandy92b1f832009-12-23 22:23:49 +00002326 rm -rf conftest.one conftest.two conftest.dir
2327 echo one > conftest.one
2328 echo two > conftest.two
2329 mkdir conftest.dir
2330 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2331 test -s conftest.one && test -s conftest.two &&
2332 test -s conftest.dir/conftest.one &&
2333 test -s conftest.dir/conftest.two
2334 then
2335 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2336 break 3
2337 fi
brynercb91a2f2006-08-25 21:14:45 +00002338 fi
2339 fi
2340 done
2341 done
2342 ;;
2343esac
jimblandy92b1f832009-12-23 22:23:49 +00002344
2345 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002346IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002347
jimblandy92b1f832009-12-23 22:23:49 +00002348rm -rf conftest.one conftest.two conftest.dir
brynercb91a2f2006-08-25 21:14:45 +00002349
2350fi
2351 if test "${ac_cv_path_install+set}" = set; then
2352 INSTALL=$ac_cv_path_install
2353 else
mmentovai8c2a4de2006-09-20 16:20:15 +00002354 # As a last resort, use the slow shell script. Don't cache a
2355 # value for INSTALL within a source directory, because that will
brynercb91a2f2006-08-25 21:14:45 +00002356 # break other packages using the cache if that directory is
mmentovai8c2a4de2006-09-20 16:20:15 +00002357 # removed, or if the value is a relative name.
brynercb91a2f2006-08-25 21:14:45 +00002358 INSTALL=$ac_install_sh
2359 fi
2360fi
jimblandy92b1f832009-12-23 22:23:49 +00002361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2362$as_echo "$INSTALL" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002363
2364# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2365# It thinks the first close brace ends the variable substitution.
2366test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2367
2368test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2369
2370test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2371
jimblandy92b1f832009-12-23 22:23:49 +00002372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2373$as_echo_n "checking whether build environment is sane... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002374# Just in case
2375sleep 1
2376echo timestamp > conftest.file
jimblandy92b1f832009-12-23 22:23:49 +00002377# Reject unsafe characters in $srcdir or the absolute working directory
2378# name. Accept space and tab only in the latter.
2379am_lf='
2380'
2381case `pwd` in
2382 *[\\\"\#\$\&\'\`$am_lf]*)
ted.mielczareke574a2a2010-10-05 19:38:22 +00002383 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
jimblandy92b1f832009-12-23 22:23:49 +00002384esac
2385case $srcdir in
2386 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
ted.mielczareke574a2a2010-10-05 19:38:22 +00002387 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
jimblandy92b1f832009-12-23 22:23:49 +00002388esac
2389
brynercb91a2f2006-08-25 21:14:45 +00002390# Do `set' in a subshell so we don't clobber the current shell's
2391# arguments. Must try -L first in case configure is actually a
2392# symlink; some systems play weird games with the mod time of symlinks
2393# (eg FreeBSD returns the mod time of the symlink's containing
2394# directory).
2395if (
jimblandy92b1f832009-12-23 22:23:49 +00002396 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
brynercb91a2f2006-08-25 21:14:45 +00002397 if test "$*" = "X"; then
2398 # -L didn't work.
jimblandy92b1f832009-12-23 22:23:49 +00002399 set X `ls -t "$srcdir/configure" conftest.file`
brynercb91a2f2006-08-25 21:14:45 +00002400 fi
2401 rm -f conftest.file
2402 if test "$*" != "X $srcdir/configure conftest.file" \
2403 && test "$*" != "X conftest.file $srcdir/configure"; then
2404
2405 # If neither matched, then we have a broken ls. This can happen
2406 # if, for instance, CONFIG_SHELL is bash and it inherits a
2407 # broken ls alias from the environment. This has actually
2408 # happened. Such a system could not be considered "sane".
ted.mielczareke574a2a2010-10-05 19:38:22 +00002409 as_fn_error "ls -t appears to fail. Make sure there is not a broken
jimblandy92b1f832009-12-23 22:23:49 +00002410alias in your environment" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002411 fi
2412
2413 test "$2" = conftest.file
2414 )
2415then
2416 # Ok.
2417 :
2418else
ted.mielczareke574a2a2010-10-05 19:38:22 +00002419 as_fn_error "newly created file is older than distributed files!
jimblandy92b1f832009-12-23 22:23:49 +00002420Check your system clock" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002421fi
jimblandy92b1f832009-12-23 22:23:49 +00002422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2423$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002424test "$program_prefix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002425 program_transform_name="s&^&$program_prefix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002426# Use a double $ so make ignores it.
2427test "$program_suffix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002428 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
jimblandy92b1f832009-12-23 22:23:49 +00002429# Double any \ or $.
brynercb91a2f2006-08-25 21:14:45 +00002430# By default was `s,x,x', remove it if useless.
jimblandy92b1f832009-12-23 22:23:49 +00002431ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2432program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
brynercb91a2f2006-08-25 21:14:45 +00002433
2434# expand $ac_aux_dir to an absolute path
2435am_aux_dir=`cd $ac_aux_dir && pwd`
2436
jimblandy92b1f832009-12-23 22:23:49 +00002437if test x"${MISSING+set}" != xset; then
2438 case $am_aux_dir in
2439 *\ * | *\ *)
2440 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2441 *)
2442 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2443 esac
2444fi
brynercb91a2f2006-08-25 21:14:45 +00002445# Use eval to expand $SHELL
2446if eval "$MISSING --run true"; then
2447 am_missing_run="$MISSING --run "
2448else
2449 am_missing_run=
jimblandy92b1f832009-12-23 22:23:49 +00002450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2451$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002452fi
2453
jimblandy92b1f832009-12-23 22:23:49 +00002454if test x"${install_sh}" != xset; then
2455 case $am_aux_dir in
2456 *\ * | *\ *)
2457 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2458 *)
2459 install_sh="\${SHELL} $am_aux_dir/install-sh"
2460 esac
2461fi
2462
2463# Installed binaries are usually stripped using `strip' when the user
2464# run `make install-strip'. However `strip' might not be the right
2465# tool to use in cross-compilation environments, therefore Automake
2466# will honor the `STRIP' environment variable to overrule this program.
2467if test "$cross_compiling" != no; then
2468 if test -n "$ac_tool_prefix"; then
2469 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2470set dummy ${ac_tool_prefix}strip; ac_word=$2
2471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2472$as_echo_n "checking for $ac_word... " >&6; }
2473if test "${ac_cv_prog_STRIP+set}" = set; then :
2474 $as_echo_n "(cached) " >&6
2475else
2476 if test -n "$STRIP"; then
2477 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2478else
2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480for as_dir in $PATH
2481do
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2486 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 break 2
2489 fi
2490done
2491 done
2492IFS=$as_save_IFS
2493
2494fi
2495fi
2496STRIP=$ac_cv_prog_STRIP
2497if test -n "$STRIP"; then
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2499$as_echo "$STRIP" >&6; }
2500else
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2502$as_echo "no" >&6; }
2503fi
2504
2505
2506fi
2507if test -z "$ac_cv_prog_STRIP"; then
2508 ac_ct_STRIP=$STRIP
2509 # Extract the first word of "strip", so it can be a program name with args.
2510set dummy strip; ac_word=$2
2511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2512$as_echo_n "checking for $ac_word... " >&6; }
2513if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2514 $as_echo_n "(cached) " >&6
2515else
2516 if test -n "$ac_ct_STRIP"; then
2517 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2518else
2519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520for as_dir in $PATH
2521do
2522 IFS=$as_save_IFS
2523 test -z "$as_dir" && as_dir=.
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2526 ac_cv_prog_ac_ct_STRIP="strip"
2527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2528 break 2
2529 fi
2530done
2531 done
2532IFS=$as_save_IFS
2533
2534fi
2535fi
2536ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2537if test -n "$ac_ct_STRIP"; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2539$as_echo "$ac_ct_STRIP" >&6; }
2540else
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2542$as_echo "no" >&6; }
2543fi
2544
2545 if test "x$ac_ct_STRIP" = x; then
2546 STRIP=":"
2547 else
2548 case $cross_compiling:$ac_tool_warned in
2549yes:)
2550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2552ac_tool_warned=yes ;;
2553esac
2554 STRIP=$ac_ct_STRIP
2555 fi
2556else
2557 STRIP="$ac_cv_prog_STRIP"
2558fi
2559
2560fi
2561INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2562
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2564$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002565if test -z "$MKDIR_P"; then
jimblandy92b1f832009-12-23 22:23:49 +00002566 if test "${ac_cv_path_mkdir+set}" = set; then :
2567 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002568else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2571do
2572 IFS=$as_save_IFS
2573 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002574 for ac_prog in mkdir gmkdir; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2577 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2578 'mkdir (GNU coreutils) '* | \
2579 'mkdir (coreutils) '* | \
2580 'mkdir (fileutils) '4.1*)
2581 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2582 break 3;;
2583 esac
2584 done
2585 done
jimblandy92b1f832009-12-23 22:23:49 +00002586 done
mmentovaiaf3c43f2007-05-17 18:34:37 +00002587IFS=$as_save_IFS
2588
2589fi
2590
jimblandydc4029a2010-02-02 17:39:51 +00002591 test -d ./--version && rmdir ./--version
mmentovaiaf3c43f2007-05-17 18:34:37 +00002592 if test "${ac_cv_path_mkdir+set}" = set; then
2593 MKDIR_P="$ac_cv_path_mkdir -p"
brynercb91a2f2006-08-25 21:14:45 +00002594 else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002595 # As a last resort, use the slow shell script. Don't cache a
2596 # value for MKDIR_P within a source directory, because that will
2597 # break other packages using the cache if that directory is
2598 # removed, or if the value is a relative name.
mmentovaiaf3c43f2007-05-17 18:34:37 +00002599 MKDIR_P="$ac_install_sh -d"
brynercb91a2f2006-08-25 21:14:45 +00002600 fi
2601fi
jimblandy92b1f832009-12-23 22:23:49 +00002602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2603$as_echo "$MKDIR_P" >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002604
2605mkdir_p="$MKDIR_P"
2606case $mkdir_p in
2607 [\\/$]* | ?:[\\/]*) ;;
2608 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2609esac
brynercb91a2f2006-08-25 21:14:45 +00002610
2611for ac_prog in gawk mawk nawk awk
2612do
2613 # Extract the first word of "$ac_prog", so it can be a program name with args.
2614set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616$as_echo_n "checking for $ac_word... " >&6; }
2617if test "${ac_cv_prog_AWK+set}" = set; then :
2618 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002619else
2620 if test -n "$AWK"; then
2621 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2622else
2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH
2625do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002628 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002630 ac_cv_prog_AWK="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00002631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002632 break 2
2633 fi
2634done
jimblandy92b1f832009-12-23 22:23:49 +00002635 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002636IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002637
2638fi
2639fi
2640AWK=$ac_cv_prog_AWK
2641if test -n "$AWK"; then
jimblandy92b1f832009-12-23 22:23:49 +00002642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2643$as_echo "$AWK" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002644else
jimblandy92b1f832009-12-23 22:23:49 +00002645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002647fi
2648
mmentovai8c2a4de2006-09-20 16:20:15 +00002649
brynercb91a2f2006-08-25 21:14:45 +00002650 test -n "$AWK" && break
2651done
2652
jimblandy92b1f832009-12-23 22:23:49 +00002653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2654$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2655set x ${MAKE-make}
2656ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
ted.mielczareke574a2a2010-10-05 19:38:22 +00002657if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
jimblandy92b1f832009-12-23 22:23:49 +00002658 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002659else
2660 cat >conftest.make <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002661SHELL = /bin/sh
brynercb91a2f2006-08-25 21:14:45 +00002662all:
mmentovai8c2a4de2006-09-20 16:20:15 +00002663 @echo '@@@%%%=$(MAKE)=@@@%%%'
brynercb91a2f2006-08-25 21:14:45 +00002664_ACEOF
ted.mielczareke574a2a2010-10-05 19:38:22 +00002665# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
mmentovai8c2a4de2006-09-20 16:20:15 +00002666case `${MAKE-make} -f conftest.make 2>/dev/null` in
2667 *@@@%%%=?*=@@@%%%*)
2668 eval ac_cv_prog_make_${ac_make}_set=yes;;
2669 *)
2670 eval ac_cv_prog_make_${ac_make}_set=no;;
2671esac
brynercb91a2f2006-08-25 21:14:45 +00002672rm -f conftest.make
2673fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002674if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00002675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2676$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002677 SET_MAKE=
2678else
jimblandy92b1f832009-12-23 22:23:49 +00002679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002681 SET_MAKE="MAKE=${MAKE-make}"
2682fi
2683
2684rm -rf .tst 2>/dev/null
2685mkdir .tst 2>/dev/null
2686if test -d .tst; then
2687 am__leading_dot=.
2688else
2689 am__leading_dot=_
2690fi
2691rmdir .tst 2>/dev/null
2692
mmentovaiaf3c43f2007-05-17 18:34:37 +00002693if test "`cd $srcdir && pwd`" != "`pwd`"; then
2694 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2695 # is not polluted with repeated "-I."
2696 am__isrc=' -I$(srcdir)'
2697 # test to see if srcdir already configured
2698 if test -f $srcdir/config.status; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00002699 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
mmentovaiaf3c43f2007-05-17 18:34:37 +00002700 fi
brynercb91a2f2006-08-25 21:14:45 +00002701fi
2702
2703# test whether we have cygpath
2704if test -z "$CYGPATH_W"; then
2705 if (cygpath --version) >/dev/null 2>/dev/null; then
2706 CYGPATH_W='cygpath -w'
2707 else
2708 CYGPATH_W=echo
2709 fi
2710fi
2711
2712
2713# Define the identity of the package.
mmentovaie5dc6082007-02-14 19:51:05 +00002714 PACKAGE='breakpad'
brynercb91a2f2006-08-25 21:14:45 +00002715 VERSION='0.1'
2716
2717
2718cat >>confdefs.h <<_ACEOF
2719#define PACKAGE "$PACKAGE"
2720_ACEOF
2721
2722
2723cat >>confdefs.h <<_ACEOF
2724#define VERSION "$VERSION"
2725_ACEOF
2726
2727# Some tools Automake needs.
2728
2729ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2730
2731
2732AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2733
2734
2735AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2736
2737
2738AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2739
2740
2741MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2742
brynercb91a2f2006-08-25 21:14:45 +00002743# We need awk for the "check" target. The system "awk" is bad on
2744# some platforms.
2745# Always define AMTAR for backward compatibility.
2746
2747AMTAR=${AMTAR-"${am_missing_run}tar"}
2748
mmentovaidb3342a2006-12-05 22:52:28 +00002749
jimblandy92b1f832009-12-23 22:23:49 +00002750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2751$as_echo_n "checking how to create a ustar tar archive... " >&6; }
mmentovaidb3342a2006-12-05 22:52:28 +00002752# Loop over all known methods to create a tar archive until one works.
2753_am_tools='gnutar plaintar pax cpio none'
2754_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2755# Do not fold the above two line into one, because Tru64 sh and
2756# Solaris sh will not grok spaces in the rhs of `-'.
2757for _am_tool in $_am_tools
2758do
2759 case $_am_tool in
2760 gnutar)
2761 for _am_tar in tar gnutar gtar;
2762 do
2763 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2764 ($_am_tar --version) >&5 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } && break
2768 done
2769 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2770 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2771 am__untar="$_am_tar -xf -"
2772 ;;
2773 plaintar)
2774 # Must skip GNU tar: if it does not support --format= it doesn't create
2775 # ustar tarball either.
2776 (tar --version) >/dev/null 2>&1 && continue
2777 am__tar='tar chf - "$$tardir"'
2778 am__tar_='tar chf - "$tardir"'
2779 am__untar='tar xf -'
2780 ;;
2781 pax)
2782 am__tar='pax -L -x ustar -w "$$tardir"'
2783 am__tar_='pax -L -x ustar -w "$tardir"'
2784 am__untar='pax -r'
2785 ;;
2786 cpio)
2787 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2788 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2789 am__untar='cpio -i -H ustar -d'
2790 ;;
2791 none)
2792 am__tar=false
2793 am__tar_=false
2794 am__untar=false
2795 ;;
2796 esac
2797
2798 # If the value was cached, stop now. We just wanted to have am__tar
2799 # and am__untar set.
2800 test -n "${am_cv_prog_tar_ustar}" && break
2801
2802 # tar/untar a dummy directory, and stop if the command works
2803 rm -rf conftest.dir
2804 mkdir conftest.dir
2805 echo GrepMe > conftest.dir/file
2806 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2807 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }
2811 rm -rf conftest.dir
2812 if test -s conftest.tar; then
2813 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2814 ($am__untar <conftest.tar) >&5 2>&5
2815 ac_status=$?
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }
2818 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2819 fi
2820done
2821rm -rf conftest.dir
2822
jimblandy92b1f832009-12-23 22:23:49 +00002823if test "${am_cv_prog_tar_ustar+set}" = set; then :
2824 $as_echo_n "(cached) " >&6
mmentovaidb3342a2006-12-05 22:52:28 +00002825else
2826 am_cv_prog_tar_ustar=$_am_tool
2827fi
2828
jimblandy92b1f832009-12-23 22:23:49 +00002829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2830$as_echo "$am_cv_prog_tar_ustar" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002831
2832
2833
2834
2835
mmentovai8c2a4de2006-09-20 16:20:15 +00002836ac_config_headers="$ac_config_headers src/config.h"
brynercb91a2f2006-08-25 21:14:45 +00002837
2838
brynercb91a2f2006-08-25 21:14:45 +00002839ac_ext=c
2840ac_cpp='$CPP $CPPFLAGS'
2841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843ac_compiler_gnu=$ac_cv_c_compiler_gnu
2844if test -n "$ac_tool_prefix"; then
2845 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2846set dummy ${ac_tool_prefix}gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848$as_echo_n "checking for $ac_word... " >&6; }
2849if test "${ac_cv_prog_CC+set}" = set; then :
2850 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002851else
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2854else
2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH
2857do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002860 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002862 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jimblandy92b1f832009-12-23 22:23:49 +00002863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002864 break 2
2865 fi
2866done
jimblandy92b1f832009-12-23 22:23:49 +00002867 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002868IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002869
2870fi
2871fi
2872CC=$ac_cv_prog_CC
2873if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00002874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2875$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002876else
jimblandy92b1f832009-12-23 22:23:49 +00002877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002879fi
2880
mmentovai8c2a4de2006-09-20 16:20:15 +00002881
brynercb91a2f2006-08-25 21:14:45 +00002882fi
2883if test -z "$ac_cv_prog_CC"; then
2884 ac_ct_CC=$CC
2885 # Extract the first word of "gcc", so it can be a program name with args.
2886set dummy gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888$as_echo_n "checking for $ac_word... " >&6; }
2889if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2890 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002891else
2892 if test -n "$ac_ct_CC"; then
2893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2894else
2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896for as_dir in $PATH
2897do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002900 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002902 ac_cv_prog_ac_ct_CC="gcc"
jimblandy92b1f832009-12-23 22:23:49 +00002903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002904 break 2
2905 fi
2906done
jimblandy92b1f832009-12-23 22:23:49 +00002907 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002908IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002909
2910fi
2911fi
2912ac_ct_CC=$ac_cv_prog_ac_ct_CC
2913if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00002914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2915$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002916else
jimblandy92b1f832009-12-23 22:23:49 +00002917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002919fi
2920
mmentovai8c2a4de2006-09-20 16:20:15 +00002921 if test "x$ac_ct_CC" = x; then
2922 CC=""
2923 else
2924 case $cross_compiling:$ac_tool_warned in
2925yes:)
jimblandy92b1f832009-12-23 22:23:49 +00002926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00002928ac_tool_warned=yes ;;
2929esac
2930 CC=$ac_ct_CC
2931 fi
brynercb91a2f2006-08-25 21:14:45 +00002932else
2933 CC="$ac_cv_prog_CC"
2934fi
2935
2936if test -z "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002937 if test -n "$ac_tool_prefix"; then
2938 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
brynercb91a2f2006-08-25 21:14:45 +00002939set dummy ${ac_tool_prefix}cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941$as_echo_n "checking for $ac_word... " >&6; }
2942if test "${ac_cv_prog_CC+set}" = set; then :
2943 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002944else
2945 if test -n "$CC"; then
2946 ac_cv_prog_CC="$CC" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002953 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002955 ac_cv_prog_CC="${ac_tool_prefix}cc"
jimblandy92b1f832009-12-23 22:23:49 +00002956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002957 break 2
2958 fi
2959done
jimblandy92b1f832009-12-23 22:23:49 +00002960 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002961IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002962
2963fi
2964fi
2965CC=$ac_cv_prog_CC
2966if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00002967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2968$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002969else
jimblandy92b1f832009-12-23 22:23:49 +00002970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002972fi
2973
mmentovai8c2a4de2006-09-20 16:20:15 +00002974
brynercb91a2f2006-08-25 21:14:45 +00002975 fi
brynercb91a2f2006-08-25 21:14:45 +00002976fi
2977if test -z "$CC"; then
2978 # Extract the first word of "cc", so it can be a program name with args.
2979set dummy cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981$as_echo_n "checking for $ac_word... " >&6; }
2982if test "${ac_cv_prog_CC+set}" = set; then :
2983 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002984else
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2987else
2988 ac_prog_rejected=no
2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990for as_dir in $PATH
2991do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002994 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002996 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2997 ac_prog_rejected=yes
2998 continue
2999 fi
3000 ac_cv_prog_CC="cc"
jimblandy92b1f832009-12-23 22:23:49 +00003001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003002 break 2
3003 fi
3004done
jimblandy92b1f832009-12-23 22:23:49 +00003005 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003006IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003007
3008if test $ac_prog_rejected = yes; then
3009 # We found a bogon in the path, so make sure we never use it.
3010 set dummy $ac_cv_prog_CC
3011 shift
3012 if test $# != 0; then
3013 # We chose a different compiler from the bogus one.
3014 # However, it has the same basename, so the bogon will be chosen
3015 # first if we set CC to just the basename; use the full file name.
3016 shift
3017 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3018 fi
3019fi
3020fi
3021fi
3022CC=$ac_cv_prog_CC
3023if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003026else
jimblandy92b1f832009-12-23 22:23:49 +00003027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003029fi
3030
mmentovai8c2a4de2006-09-20 16:20:15 +00003031
brynercb91a2f2006-08-25 21:14:45 +00003032fi
3033if test -z "$CC"; then
3034 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003035 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003036 do
3037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3038set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040$as_echo_n "checking for $ac_word... " >&6; }
3041if test "${ac_cv_prog_CC+set}" = set; then :
3042 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003043else
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3046else
3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048for as_dir in $PATH
3049do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003052 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003056 break 2
3057 fi
3058done
jimblandy92b1f832009-12-23 22:23:49 +00003059 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003060IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003061
3062fi
3063fi
3064CC=$ac_cv_prog_CC
3065if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003068else
jimblandy92b1f832009-12-23 22:23:49 +00003069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003071fi
3072
mmentovai8c2a4de2006-09-20 16:20:15 +00003073
brynercb91a2f2006-08-25 21:14:45 +00003074 test -n "$CC" && break
3075 done
3076fi
3077if test -z "$CC"; then
3078 ac_ct_CC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00003079 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003080do
3081 # Extract the first word of "$ac_prog", so it can be a program name with args.
3082set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084$as_echo_n "checking for $ac_word... " >&6; }
3085if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3086 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003087else
3088 if test -n "$ac_ct_CC"; then
3089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3090else
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003096 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003098 ac_cv_prog_ac_ct_CC="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003100 break 2
3101 fi
3102done
jimblandy92b1f832009-12-23 22:23:49 +00003103 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003104IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003105
3106fi
3107fi
3108ac_ct_CC=$ac_cv_prog_ac_ct_CC
3109if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3111$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003112else
jimblandy92b1f832009-12-23 22:23:49 +00003113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003115fi
3116
mmentovai8c2a4de2006-09-20 16:20:15 +00003117
brynercb91a2f2006-08-25 21:14:45 +00003118 test -n "$ac_ct_CC" && break
3119done
3120
mmentovai8c2a4de2006-09-20 16:20:15 +00003121 if test "x$ac_ct_CC" = x; then
3122 CC=""
3123 else
3124 case $cross_compiling:$ac_tool_warned in
3125yes:)
jimblandy92b1f832009-12-23 22:23:49 +00003126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00003128ac_tool_warned=yes ;;
3129esac
3130 CC=$ac_ct_CC
3131 fi
brynercb91a2f2006-08-25 21:14:45 +00003132fi
3133
3134fi
3135
3136
jimblandy92b1f832009-12-23 22:23:49 +00003137test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00003139as_fn_error "no acceptable C compiler found in \$PATH
3140See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003141
3142# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00003143$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3144set X $ac_compile
3145ac_compiler=$2
3146for ac_option in --version -v -V -qversion; do
3147 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00003148case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151esac
jimblandy92b1f832009-12-23 22:23:49 +00003152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153$as_echo "$ac_try_echo"; } >&5
3154 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00003155 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003156 if test -s conftest.err; then
3157 sed '10a\
3158... rest of stderr output deleted ...
3159 10q' conftest.err >conftest.er1
3160 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00003161 fi
jimblandydc4029a2010-02-02 17:39:51 +00003162 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00003163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164 test $ac_status = 0; }
3165done
brynercb91a2f2006-08-25 21:14:45 +00003166
jimblandy92b1f832009-12-23 22:23:49 +00003167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003168/* end confdefs.h. */
jimblandydc4029a2010-02-02 17:39:51 +00003169
brynercb91a2f2006-08-25 21:14:45 +00003170int
3171main ()
3172{
3173
3174 ;
3175 return 0;
3176}
3177_ACEOF
3178ac_clean_files_save=$ac_clean_files
jimblandydc4029a2010-02-02 17:39:51 +00003179ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
brynercb91a2f2006-08-25 21:14:45 +00003180# Try to create an executable without -o first, disregard a.out.
3181# It will help us diagnose broken compilers, and finding out an intuition
3182# of exeext.
jimblandydc4029a2010-02-02 17:39:51 +00003183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3184$as_echo_n "checking whether the C compiler works... " >&6; }
jimblandy92b1f832009-12-23 22:23:49 +00003185ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3186
3187# The possible output files:
3188ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3189
mmentovai8c2a4de2006-09-20 16:20:15 +00003190ac_rmfiles=
3191for ac_file in $ac_files
3192do
3193 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003195 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3196 esac
3197done
3198rm -f $ac_rmfiles
3199
jimblandy92b1f832009-12-23 22:23:49 +00003200if { { ac_try="$ac_link_default"
mmentovai8c2a4de2006-09-20 16:20:15 +00003201case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204esac
jimblandy92b1f832009-12-23 22:23:49 +00003205eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003207 (eval "$ac_link_default") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003208 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003211 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3212# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3213# in a Makefile. We should not override ac_cv_exeext if it was cached,
3214# so that the user can short-circuit this test for compilers unknown to
3215# Autoconf.
mmentovaiaf3c43f2007-05-17 18:34:37 +00003216for ac_file in $ac_files ''
brynercb91a2f2006-08-25 21:14:45 +00003217do
3218 test -f "$ac_file" || continue
3219 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
brynercb91a2f2006-08-25 21:14:45 +00003221 ;;
3222 [ab].out )
3223 # We found the default executable, but exeext='' is most
3224 # certainly right.
3225 break;;
3226 *.* )
jimblandy92b1f832009-12-23 22:23:49 +00003227 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
mmentovai8c2a4de2006-09-20 16:20:15 +00003228 then :; else
3229 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3230 fi
3231 # We set ac_cv_exeext here because the later test for it is not
3232 # safe: cross compilers may not add the suffix if given an `-o'
3233 # argument, so we may need to know it at that point already.
3234 # Even if this section looks crufty: it has the advantage of
3235 # actually working.
brynercb91a2f2006-08-25 21:14:45 +00003236 break;;
3237 * )
3238 break;;
3239 esac
3240done
mmentovai8c2a4de2006-09-20 16:20:15 +00003241test "$ac_cv_exeext" = no && ac_cv_exeext=
3242
brynercb91a2f2006-08-25 21:14:45 +00003243else
mmentovaiaf3c43f2007-05-17 18:34:37 +00003244 ac_file=''
3245fi
jimblandy92b1f832009-12-23 22:23:49 +00003246if test -z "$ac_file"; then :
jimblandydc4029a2010-02-02 17:39:51 +00003247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248$as_echo "no" >&6; }
3249$as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003250sed 's/^/| /' conftest.$ac_ext >&5
3251
jimblandy92b1f832009-12-23 22:23:49 +00003252{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00003254{ as_fn_set_status 77
3255as_fn_error "C compiler cannot create executables
3256See \`config.log' for more details." "$LINENO" 5; }; }
jimblandydc4029a2010-02-02 17:39:51 +00003257else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003260fi
jimblandydc4029a2010-02-02 17:39:51 +00003261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3262$as_echo_n "checking for C compiler default output file name... " >&6; }
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3264$as_echo "$ac_file" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003265ac_exeext=$ac_cv_exeext
brynercb91a2f2006-08-25 21:14:45 +00003266
jimblandydc4029a2010-02-02 17:39:51 +00003267rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
brynercb91a2f2006-08-25 21:14:45 +00003268ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3270$as_echo_n "checking for suffix of executables... " >&6; }
3271if { { ac_try="$ac_link"
mmentovai8c2a4de2006-09-20 16:20:15 +00003272case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275esac
jimblandy92b1f832009-12-23 22:23:49 +00003276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003278 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003279 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }; then :
brynercb91a2f2006-08-25 21:14:45 +00003282 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3283# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3284# work properly (i.e., refer to `conftest.exe'), while it won't with
3285# `rm'.
3286for ac_file in conftest.exe conftest conftest.*; do
3287 test -f "$ac_file" || continue
3288 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003290 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
brynercb91a2f2006-08-25 21:14:45 +00003291 break;;
3292 * ) break;;
3293 esac
3294done
3295else
jimblandy92b1f832009-12-23 22:23:49 +00003296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00003298as_fn_error "cannot compute suffix of executables: cannot compile and link
3299See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003300fi
jimblandydc4029a2010-02-02 17:39:51 +00003301rm -f conftest conftest$ac_cv_exeext
jimblandy92b1f832009-12-23 22:23:49 +00003302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3303$as_echo "$ac_cv_exeext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003304
3305rm -f conftest.$ac_ext
3306EXEEXT=$ac_cv_exeext
3307ac_exeext=$EXEEXT
jimblandydc4029a2010-02-02 17:39:51 +00003308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309/* end confdefs.h. */
3310#include <stdio.h>
3311int
3312main ()
3313{
3314FILE *f = fopen ("conftest.out", "w");
3315 return ferror (f) || fclose (f) != 0;
3316
3317 ;
3318 return 0;
3319}
3320_ACEOF
3321ac_clean_files="$ac_clean_files conftest.out"
3322# Check that the compiler produces executables we can run. If not, either
3323# the compiler is broken, or we cross compile.
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3325$as_echo_n "checking whether we are cross compiling... " >&6; }
3326if test "$cross_compiling" != yes; then
3327 { { ac_try="$ac_link"
3328case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331esac
3332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333$as_echo "$ac_try_echo"; } >&5
3334 (eval "$ac_link") 2>&5
3335 ac_status=$?
3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337 test $ac_status = 0; }
3338 if { ac_try='./conftest$ac_cv_exeext'
3339 { { case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342esac
3343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344$as_echo "$ac_try_echo"; } >&5
3345 (eval "$ac_try") 2>&5
3346 ac_status=$?
3347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348 test $ac_status = 0; }; }; then
3349 cross_compiling=no
3350 else
3351 if test "$cross_compiling" = maybe; then
3352 cross_compiling=yes
3353 else
3354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00003356as_fn_error "cannot run C compiled programs.
jimblandydc4029a2010-02-02 17:39:51 +00003357If you meant to cross compile, use \`--host'.
ted.mielczareke574a2a2010-10-05 19:38:22 +00003358See \`config.log' for more details." "$LINENO" 5; }
jimblandydc4029a2010-02-02 17:39:51 +00003359 fi
3360 fi
3361fi
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3363$as_echo "$cross_compiling" >&6; }
3364
3365rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3366ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3368$as_echo_n "checking for suffix of object files... " >&6; }
3369if test "${ac_cv_objext+set}" = set; then :
3370 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003371else
jimblandy92b1f832009-12-23 22:23:49 +00003372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003373/* end confdefs.h. */
3374
3375int
3376main ()
3377{
3378
3379 ;
3380 return 0;
3381}
3382_ACEOF
3383rm -f conftest.o conftest.obj
jimblandy92b1f832009-12-23 22:23:49 +00003384if { { ac_try="$ac_compile"
mmentovai8c2a4de2006-09-20 16:20:15 +00003385case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388esac
jimblandy92b1f832009-12-23 22:23:49 +00003389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003391 (eval "$ac_compile") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003392 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003395 for ac_file in conftest.o conftest.obj conftest.*; do
3396 test -f "$ac_file" || continue;
brynercb91a2f2006-08-25 21:14:45 +00003397 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003399 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3400 break;;
3401 esac
3402done
3403else
jimblandy92b1f832009-12-23 22:23:49 +00003404 $as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003405sed 's/^/| /' conftest.$ac_ext >&5
3406
jimblandy92b1f832009-12-23 22:23:49 +00003407{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00003409as_fn_error "cannot compute suffix of object files: cannot compile
3410See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003411fi
brynercb91a2f2006-08-25 21:14:45 +00003412rm -f conftest.$ac_cv_objext conftest.$ac_ext
3413fi
jimblandy92b1f832009-12-23 22:23:49 +00003414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3415$as_echo "$ac_cv_objext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003416OBJEXT=$ac_cv_objext
3417ac_objext=$OBJEXT
jimblandy92b1f832009-12-23 22:23:49 +00003418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3419$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3420if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3421 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003422else
jimblandy92b1f832009-12-23 22:23:49 +00003423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003424/* end confdefs.h. */
3425
3426int
3427main ()
3428{
3429#ifndef __GNUC__
3430 choke me
3431#endif
3432
3433 ;
3434 return 0;
3435}
3436_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003437if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003438 ac_compiler_gnu=yes
3439else
jimblandy92b1f832009-12-23 22:23:49 +00003440 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00003441fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003443ac_cv_c_compiler_gnu=$ac_compiler_gnu
3444
3445fi
jimblandy92b1f832009-12-23 22:23:49 +00003446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3447$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3448if test $ac_compiler_gnu = yes; then
3449 GCC=yes
3450else
3451 GCC=
3452fi
brynercb91a2f2006-08-25 21:14:45 +00003453ac_test_CFLAGS=${CFLAGS+set}
3454ac_save_CFLAGS=$CFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00003455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3456$as_echo_n "checking whether $CC accepts -g... " >&6; }
3457if test "${ac_cv_prog_cc_g+set}" = set; then :
3458 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003459else
mmentovai8c2a4de2006-09-20 16:20:15 +00003460 ac_save_c_werror_flag=$ac_c_werror_flag
3461 ac_c_werror_flag=yes
3462 ac_cv_prog_cc_g=no
3463 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003465/* end confdefs.h. */
3466
3467int
3468main ()
3469{
3470
3471 ;
3472 return 0;
3473}
3474_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003475if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003476 ac_cv_prog_cc_g=yes
3477else
jimblandy92b1f832009-12-23 22:23:49 +00003478 CFLAGS=""
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003480/* end confdefs.h. */
3481
3482int
3483main ()
3484{
3485
3486 ;
3487 return 0;
3488}
3489_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003490if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003491
jimblandy92b1f832009-12-23 22:23:49 +00003492else
3493 ac_c_werror_flag=$ac_save_c_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00003494 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003496/* end confdefs.h. */
3497
3498int
3499main ()
3500{
3501
3502 ;
3503 return 0;
3504}
3505_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003506if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003507 ac_cv_prog_cc_g=yes
brynercb91a2f2006-08-25 21:14:45 +00003508fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003510fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 ac_c_werror_flag=$ac_save_c_werror_flag
3515fi
jimblandy92b1f832009-12-23 22:23:49 +00003516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3517$as_echo "$ac_cv_prog_cc_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003518if test "$ac_test_CFLAGS" = set; then
3519 CFLAGS=$ac_save_CFLAGS
3520elif test $ac_cv_prog_cc_g = yes; then
3521 if test "$GCC" = yes; then
3522 CFLAGS="-g -O2"
3523 else
3524 CFLAGS="-g"
3525 fi
3526else
3527 if test "$GCC" = yes; then
3528 CFLAGS="-O2"
3529 else
3530 CFLAGS=
3531 fi
3532fi
jimblandy92b1f832009-12-23 22:23:49 +00003533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3534$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3535if test "${ac_cv_prog_cc_c89+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003537else
mmentovai8c2a4de2006-09-20 16:20:15 +00003538 ac_cv_prog_cc_c89=no
brynercb91a2f2006-08-25 21:14:45 +00003539ac_save_CC=$CC
jimblandy92b1f832009-12-23 22:23:49 +00003540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003541/* end confdefs.h. */
3542#include <stdarg.h>
3543#include <stdio.h>
3544#include <sys/types.h>
3545#include <sys/stat.h>
3546/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3547struct buf { int x; };
3548FILE * (*rcsopen) (struct buf *, struct stat *, int);
3549static char *e (p, i)
3550 char **p;
3551 int i;
3552{
3553 return p[i];
3554}
3555static char *f (char * (*g) (char **, int), char **p, ...)
3556{
3557 char *s;
3558 va_list v;
3559 va_start (v,p);
3560 s = g (p, va_arg (v,int));
3561 va_end (v);
3562 return s;
3563}
3564
3565/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3566 function prototypes and stuff, but not '\xHH' hex character constants.
3567 These don't provoke an error unfortunately, instead are silently treated
mmentovai8c2a4de2006-09-20 16:20:15 +00003568 as 'x'. The following induces an error, until -std is added to get
brynercb91a2f2006-08-25 21:14:45 +00003569 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3570 array size at least. It's necessary to write '\x00'==0 to get something
mmentovai8c2a4de2006-09-20 16:20:15 +00003571 that's true only with -std. */
brynercb91a2f2006-08-25 21:14:45 +00003572int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3573
mmentovai8c2a4de2006-09-20 16:20:15 +00003574/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3575 inside strings and character constants. */
3576#define FOO(x) 'x'
3577int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3578
brynercb91a2f2006-08-25 21:14:45 +00003579int test (int i, double x);
3580struct s1 {int (*f) (int a);};
3581struct s2 {int (*f) (double a);};
3582int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3583int argc;
3584char **argv;
3585int
3586main ()
3587{
3588return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3589 ;
3590 return 0;
3591}
3592_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003593for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3594 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
brynercb91a2f2006-08-25 21:14:45 +00003595do
3596 CC="$ac_save_CC $ac_arg"
jimblandy92b1f832009-12-23 22:23:49 +00003597 if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003598 ac_cv_prog_cc_c89=$ac_arg
brynercb91a2f2006-08-25 21:14:45 +00003599fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003600rm -f core conftest.err conftest.$ac_objext
3601 test "x$ac_cv_prog_cc_c89" != "xno" && break
brynercb91a2f2006-08-25 21:14:45 +00003602done
mmentovai8c2a4de2006-09-20 16:20:15 +00003603rm -f conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003604CC=$ac_save_CC
3605
3606fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003607# AC_CACHE_VAL
3608case "x$ac_cv_prog_cc_c89" in
3609 x)
jimblandy92b1f832009-12-23 22:23:49 +00003610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3611$as_echo "none needed" >&6; } ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003612 xno)
jimblandy92b1f832009-12-23 22:23:49 +00003613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3614$as_echo "unsupported" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003615 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00003616 CC="$CC $ac_cv_prog_cc_c89"
jimblandy92b1f832009-12-23 22:23:49 +00003617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3618$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003619esac
jimblandy92b1f832009-12-23 22:23:49 +00003620if test "x$ac_cv_prog_cc_c89" != xno; then :
brynercb91a2f2006-08-25 21:14:45 +00003621
jimblandy92b1f832009-12-23 22:23:49 +00003622fi
brynercb91a2f2006-08-25 21:14:45 +00003623
brynercb91a2f2006-08-25 21:14:45 +00003624ac_ext=c
3625ac_cpp='$CPP $CPPFLAGS'
3626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629DEPDIR="${am__leading_dot}deps"
3630
mmentovai8c2a4de2006-09-20 16:20:15 +00003631ac_config_commands="$ac_config_commands depfiles"
brynercb91a2f2006-08-25 21:14:45 +00003632
3633
3634am_make=${MAKE-make}
3635cat > confinc << 'END'
3636am__doit:
jimblandy92b1f832009-12-23 22:23:49 +00003637 @echo this is the am__doit target
brynercb91a2f2006-08-25 21:14:45 +00003638.PHONY: am__doit
3639END
3640# If we don't find an include directive, just comment out the code.
jimblandy92b1f832009-12-23 22:23:49 +00003641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3642$as_echo_n "checking for style of include used by $am_make... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003643am__include="#"
3644am__quote=
3645_am_result=none
3646# First try GNU make style include.
3647echo "include confinc" > confmf
jimblandy92b1f832009-12-23 22:23:49 +00003648# Ignore all kinds of additional output from `make'.
3649case `$am_make -s -f confmf 2> /dev/null` in #(
3650*the\ am__doit\ target*)
3651 am__include=include
3652 am__quote=
3653 _am_result=GNU
3654 ;;
3655esac
brynercb91a2f2006-08-25 21:14:45 +00003656# Now try BSD make style include.
3657if test "$am__include" = "#"; then
3658 echo '.include "confinc"' > confmf
jimblandy92b1f832009-12-23 22:23:49 +00003659 case `$am_make -s -f confmf 2> /dev/null` in #(
3660 *the\ am__doit\ target*)
3661 am__include=.include
3662 am__quote="\""
3663 _am_result=BSD
3664 ;;
3665 esac
brynercb91a2f2006-08-25 21:14:45 +00003666fi
3667
3668
jimblandy92b1f832009-12-23 22:23:49 +00003669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3670$as_echo "$_am_result" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003671rm -f confinc confmf
3672
mmentovai8c2a4de2006-09-20 16:20:15 +00003673# Check whether --enable-dependency-tracking was given.
jimblandy92b1f832009-12-23 22:23:49 +00003674if test "${enable_dependency_tracking+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003675 enableval=$enable_dependency_tracking;
3676fi
brynercb91a2f2006-08-25 21:14:45 +00003677
brynercb91a2f2006-08-25 21:14:45 +00003678if test "x$enable_dependency_tracking" != xno; then
3679 am_depcomp="$ac_aux_dir/depcomp"
3680 AMDEPBACKSLASH='\'
3681fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00003682 if test "x$enable_dependency_tracking" != xno; then
brynercb91a2f2006-08-25 21:14:45 +00003683 AMDEP_TRUE=
3684 AMDEP_FALSE='#'
3685else
3686 AMDEP_TRUE='#'
3687 AMDEP_FALSE=
3688fi
3689
3690
3691
brynercb91a2f2006-08-25 21:14:45 +00003692depcc="$CC" am_compiler_list=
3693
jimblandy92b1f832009-12-23 22:23:49 +00003694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3695$as_echo_n "checking dependency style of $depcc... " >&6; }
3696if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3697 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003698else
3699 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3700 # We make a subdir and do the tests there. Otherwise we can end up
3701 # making bogus files that we don't know about and never remove. For
3702 # instance it was reported that on HP-UX the gcc test will end up
3703 # making a dummy file named `D' -- because `-MD' means `put the output
3704 # in D'.
3705 mkdir conftest.dir
3706 # Copy depcomp to subdir because otherwise we won't find it if we're
3707 # using a relative directory.
3708 cp "$am_depcomp" conftest.dir
3709 cd conftest.dir
3710 # We will build objects and dependencies in a subdirectory because
3711 # it helps to detect inapplicable dependency modes. For instance
3712 # both Tru64's cc and ICC support -MD to output dependencies as a
3713 # side effect of compilation, but ICC will put the dependencies in
3714 # the current directory while Tru64 will put them in the object
3715 # directory.
3716 mkdir sub
3717
3718 am_cv_CC_dependencies_compiler_type=none
3719 if test "$am_compiler_list" = ""; then
3720 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3721 fi
jimblandy92b1f832009-12-23 22:23:49 +00003722 am__universal=false
3723 case " $depcc " in #(
3724 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3725 esac
3726
brynercb91a2f2006-08-25 21:14:45 +00003727 for depmode in $am_compiler_list; do
3728 # Setup a source with many dependencies, because some compilers
3729 # like to wrap large dependency lists on column 80 (with \), and
3730 # we should not choose a depcomp mode which is confused by this.
3731 #
3732 # We need to recreate these files for each test, as the compiler may
3733 # overwrite some of them when testing with obscure command lines.
3734 # This happens at least with the AIX C compiler.
3735 : > sub/conftest.c
3736 for i in 1 2 3 4 5 6; do
3737 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3738 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3739 # Solaris 8's {/usr,}/bin/sh.
3740 touch sub/conftst$i.h
3741 done
3742 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3743
jimblandy92b1f832009-12-23 22:23:49 +00003744 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3745 # mode. It turns out that the SunPro C++ compiler does not properly
3746 # handle `-M -o', and we need to detect this. Also, some Intel
3747 # versions had trouble with output in subdirs
3748 am__obj=sub/conftest.${OBJEXT-o}
3749 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00003750 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00003751 gcc)
3752 # This depmode causes a compiler race in universal mode.
3753 test "$am__universal" = false || continue
3754 ;;
brynercb91a2f2006-08-25 21:14:45 +00003755 nosideeffect)
3756 # after this tag, mechanisms are not by side-effect, so they'll
3757 # only be used when explicitly requested
3758 if test "x$enable_dependency_tracking" = xyes; then
3759 continue
3760 else
3761 break
3762 fi
3763 ;;
jimblandy92b1f832009-12-23 22:23:49 +00003764 msvisualcpp | msvcmsys)
3765 # This compiler won't grok `-c -o', but also, the minuso test has
3766 # not run yet. These depmodes are late enough in the game, and
3767 # so weak that their functioning should not be impacted.
3768 am__obj=conftest.${OBJEXT-o}
3769 am__minus_obj=
3770 ;;
brynercb91a2f2006-08-25 21:14:45 +00003771 none) break ;;
3772 esac
brynercb91a2f2006-08-25 21:14:45 +00003773 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00003774 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00003775 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00003776 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00003777 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00003778 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00003779 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00003780 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00003781 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3782 # icc doesn't choke on unknown options, it will just issue warnings
3783 # or remarks (even with -Werror). So we grep stderr for any message
3784 # that says an option was ignored or not supported.
3785 # When given -MP, icc 7.0 and 7.1 complain thusly:
3786 # icc: Command line warning: ignoring option '-M'; no argument required
3787 # The diagnosis changed in icc 8.0:
3788 # icc: Command line remark: option '-MP' not supported
3789 if (grep 'ignoring option' conftest.err ||
3790 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3791 am_cv_CC_dependencies_compiler_type=$depmode
3792 break
3793 fi
3794 fi
3795 done
3796
3797 cd ..
3798 rm -rf conftest.dir
3799else
3800 am_cv_CC_dependencies_compiler_type=none
3801fi
3802
3803fi
jimblandy92b1f832009-12-23 22:23:49 +00003804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3805$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003806CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3807
mmentovaiaf3c43f2007-05-17 18:34:37 +00003808 if
brynercb91a2f2006-08-25 21:14:45 +00003809 test "x$enable_dependency_tracking" != xno \
3810 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3811 am__fastdepCC_TRUE=
3812 am__fastdepCC_FALSE='#'
3813else
3814 am__fastdepCC_TRUE='#'
3815 am__fastdepCC_FALSE=
3816fi
3817
3818
ted.mielczarekd192a712010-10-05 19:38:51 +00003819if test "x$CC" != xcc; then
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3821$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3822else
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3824$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3825fi
3826set dummy $CC; ac_cc=`$as_echo "$2" |
3827 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3828if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
3829 $as_echo_n "(cached) " >&6
3830else
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832/* end confdefs.h. */
3833
3834int
3835main ()
3836{
3837
3838 ;
3839 return 0;
3840}
3841_ACEOF
3842# Make sure it works both with $CC and with simple cc.
3843# We do the test twice because some compilers refuse to overwrite an
3844# existing .o file with -o, though they will create one.
3845ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3846rm -f conftest2.*
3847if { { case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850esac
3851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852$as_echo "$ac_try_echo"; } >&5
3853 (eval "$ac_try") 2>&5
3854 ac_status=$?
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; } &&
3857 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860esac
3861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862$as_echo "$ac_try_echo"; } >&5
3863 (eval "$ac_try") 2>&5
3864 ac_status=$?
3865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866 test $ac_status = 0; };
3867then
3868 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3869 if test "x$CC" != xcc; then
3870 # Test first that cc exists at all.
3871 if { ac_try='cc -c conftest.$ac_ext >&5'
3872 { { case "(($ac_try" in
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3875esac
3876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877$as_echo "$ac_try_echo"; } >&5
3878 (eval "$ac_try") 2>&5
3879 ac_status=$?
3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881 test $ac_status = 0; }; }; then
3882 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3883 rm -f conftest2.*
3884 if { { case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887esac
3888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889$as_echo "$ac_try_echo"; } >&5
3890 (eval "$ac_try") 2>&5
3891 ac_status=$?
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; } &&
3894 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3897esac
3898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3899$as_echo "$ac_try_echo"; } >&5
3900 (eval "$ac_try") 2>&5
3901 ac_status=$?
3902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3903 test $ac_status = 0; };
3904 then
3905 # cc works too.
3906 :
3907 else
3908 # cc exists but doesn't like -o.
3909 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3910 fi
3911 fi
3912 fi
3913else
3914 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3915fi
3916rm -f core conftest*
3917
3918fi
3919if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3921$as_echo "yes" >&6; }
3922else
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924$as_echo "no" >&6; }
3925
3926$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3927
3928fi
3929
3930# FIXME: we rely on the cache variable name because
3931# there is no other way.
3932set dummy $CC
3933am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3934eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3935if test "$am_t" != yes; then
3936 # Losing compiler, so override with the script.
3937 # FIXME: It is wrong to rewrite CC.
3938 # But if we don't then we get into trouble of one sort or another.
3939 # A longer-term fix would be to have automake use am__CC in this case,
3940 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3941 CC="$am_aux_dir/compile $CC"
3942fi
3943
3944
brynercb91a2f2006-08-25 21:14:45 +00003945ac_ext=c
3946ac_cpp='$CPP $CPPFLAGS'
3947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949ac_compiler_gnu=$ac_cv_c_compiler_gnu
jimblandy92b1f832009-12-23 22:23:49 +00003950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3951$as_echo_n "checking how to run the C preprocessor... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003952# On Suns, sometimes $CPP names a directory.
3953if test -n "$CPP" && test -d "$CPP"; then
3954 CPP=
3955fi
3956if test -z "$CPP"; then
jimblandy92b1f832009-12-23 22:23:49 +00003957 if test "${ac_cv_prog_CPP+set}" = set; then :
3958 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003959else
3960 # Double quotes because CPP needs to be expanded
3961 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3962 do
3963 ac_preproc_ok=false
3964for ac_c_preproc_warn_flag in '' yes
3965do
3966 # Use a header file that comes with gcc, so configuring glibc
3967 # with a fresh cross-compiler works.
3968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3969 # <limits.h> exists even on freestanding compilers.
3970 # On the NeXT, cc -E runs the code through the compiler's parser,
3971 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00003972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003973/* end confdefs.h. */
3974#ifdef __STDC__
3975# include <limits.h>
3976#else
3977# include <assert.h>
3978#endif
3979 Syntax error
3980_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003981if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003982
jimblandy92b1f832009-12-23 22:23:49 +00003983else
brynercb91a2f2006-08-25 21:14:45 +00003984 # Broken: fails on valid input.
3985continue
3986fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00003987rm -f conftest.err conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003988
mmentovai8c2a4de2006-09-20 16:20:15 +00003989 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00003990 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00003991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003992/* end confdefs.h. */
3993#include <ac_nonexistent.h>
3994_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003995if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003996 # Broken: success on invalid input.
3997continue
3998else
brynercb91a2f2006-08-25 21:14:45 +00003999 # Passes both tests.
4000ac_preproc_ok=:
4001break
4002fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00004003rm -f conftest.err conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004004
4005done
4006# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
ted.mielczareke574a2a2010-10-05 19:38:22 +00004007rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00004008if $ac_preproc_ok; then :
brynercb91a2f2006-08-25 21:14:45 +00004009 break
4010fi
4011
4012 done
4013 ac_cv_prog_CPP=$CPP
4014
4015fi
4016 CPP=$ac_cv_prog_CPP
4017else
4018 ac_cv_prog_CPP=$CPP
4019fi
jimblandy92b1f832009-12-23 22:23:49 +00004020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4021$as_echo "$CPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004022ac_preproc_ok=false
4023for ac_c_preproc_warn_flag in '' yes
4024do
4025 # Use a header file that comes with gcc, so configuring glibc
4026 # with a fresh cross-compiler works.
4027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4028 # <limits.h> exists even on freestanding compilers.
4029 # On the NeXT, cc -E runs the code through the compiler's parser,
4030 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00004031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004032/* end confdefs.h. */
4033#ifdef __STDC__
4034# include <limits.h>
4035#else
4036# include <assert.h>
4037#endif
4038 Syntax error
4039_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004040if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004041
jimblandy92b1f832009-12-23 22:23:49 +00004042else
brynercb91a2f2006-08-25 21:14:45 +00004043 # Broken: fails on valid input.
4044continue
4045fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00004046rm -f conftest.err conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004047
mmentovai8c2a4de2006-09-20 16:20:15 +00004048 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00004049 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00004050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004051/* end confdefs.h. */
4052#include <ac_nonexistent.h>
4053_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004054if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004055 # Broken: success on invalid input.
4056continue
4057else
brynercb91a2f2006-08-25 21:14:45 +00004058 # Passes both tests.
4059ac_preproc_ok=:
4060break
4061fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00004062rm -f conftest.err conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004063
4064done
4065# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
ted.mielczareke574a2a2010-10-05 19:38:22 +00004066rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00004067if $ac_preproc_ok; then :
4068
brynercb91a2f2006-08-25 21:14:45 +00004069else
jimblandy92b1f832009-12-23 22:23:49 +00004070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00004072as_fn_error "C preprocessor \"$CPP\" fails sanity check
4073See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00004074fi
4075
4076ac_ext=c
4077ac_cpp='$CPP $CPPFLAGS'
4078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081
mmentovai8c2a4de2006-09-20 16:20:15 +00004082ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00004083ac_cpp='$CXXCPP $CPPFLAGS'
4084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00004087if test -z "$CXX"; then
4088 if test -n "$CCC"; then
4089 CXX=$CCC
4090 else
4091 if test -n "$ac_tool_prefix"; then
4092 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
brynercb91a2f2006-08-25 21:14:45 +00004093 do
4094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4095set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00004096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097$as_echo_n "checking for $ac_word... " >&6; }
4098if test "${ac_cv_prog_CXX+set}" = set; then :
4099 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004100else
4101 if test -n "$CXX"; then
4102 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4103else
4104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105for as_dir in $PATH
4106do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004109 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00004110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00004111 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00004112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00004113 break 2
4114 fi
4115done
jimblandy92b1f832009-12-23 22:23:49 +00004116 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004117IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00004118
4119fi
4120fi
4121CXX=$ac_cv_prog_CXX
4122if test -n "$CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00004123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4124$as_echo "$CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004125else
jimblandy92b1f832009-12-23 22:23:49 +00004126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004128fi
4129
mmentovai8c2a4de2006-09-20 16:20:15 +00004130
brynercb91a2f2006-08-25 21:14:45 +00004131 test -n "$CXX" && break
4132 done
4133fi
4134if test -z "$CXX"; then
4135 ac_ct_CXX=$CXX
mmentovai8c2a4de2006-09-20 16:20:15 +00004136 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
brynercb91a2f2006-08-25 21:14:45 +00004137do
4138 # Extract the first word of "$ac_prog", so it can be a program name with args.
4139set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00004140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141$as_echo_n "checking for $ac_word... " >&6; }
4142if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4143 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004144else
4145 if test -n "$ac_ct_CXX"; then
4146 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4147else
4148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149for as_dir in $PATH
4150do
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004153 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00004154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00004155 ac_cv_prog_ac_ct_CXX="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00004156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00004157 break 2
4158 fi
4159done
jimblandy92b1f832009-12-23 22:23:49 +00004160 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004161IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00004162
4163fi
4164fi
4165ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4166if test -n "$ac_ct_CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00004167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4168$as_echo "$ac_ct_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004169else
jimblandy92b1f832009-12-23 22:23:49 +00004170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004172fi
4173
mmentovai8c2a4de2006-09-20 16:20:15 +00004174
brynercb91a2f2006-08-25 21:14:45 +00004175 test -n "$ac_ct_CXX" && break
4176done
brynercb91a2f2006-08-25 21:14:45 +00004177
mmentovai8c2a4de2006-09-20 16:20:15 +00004178 if test "x$ac_ct_CXX" = x; then
4179 CXX="g++"
4180 else
4181 case $cross_compiling:$ac_tool_warned in
4182yes:)
jimblandy92b1f832009-12-23 22:23:49 +00004183{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00004185ac_tool_warned=yes ;;
4186esac
4187 CXX=$ac_ct_CXX
4188 fi
brynercb91a2f2006-08-25 21:14:45 +00004189fi
4190
mmentovai8c2a4de2006-09-20 16:20:15 +00004191 fi
4192fi
brynercb91a2f2006-08-25 21:14:45 +00004193# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00004194$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4195set X $ac_compile
4196ac_compiler=$2
4197for ac_option in --version -v -V -qversion; do
4198 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00004199case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4202esac
jimblandy92b1f832009-12-23 22:23:49 +00004203eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204$as_echo "$ac_try_echo"; } >&5
4205 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00004206 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00004207 if test -s conftest.err; then
4208 sed '10a\
4209... rest of stderr output deleted ...
4210 10q' conftest.err >conftest.er1
4211 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00004212 fi
jimblandydc4029a2010-02-02 17:39:51 +00004213 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00004214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4215 test $ac_status = 0; }
4216done
brynercb91a2f2006-08-25 21:14:45 +00004217
jimblandy92b1f832009-12-23 22:23:49 +00004218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4219$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4220if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4221 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004222else
jimblandy92b1f832009-12-23 22:23:49 +00004223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004224/* end confdefs.h. */
4225
4226int
4227main ()
4228{
4229#ifndef __GNUC__
4230 choke me
4231#endif
4232
4233 ;
4234 return 0;
4235}
4236_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004237if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004238 ac_compiler_gnu=yes
4239else
jimblandy92b1f832009-12-23 22:23:49 +00004240 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00004241fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004243ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4244
4245fi
jimblandy92b1f832009-12-23 22:23:49 +00004246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4247$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4248if test $ac_compiler_gnu = yes; then
4249 GXX=yes
4250else
4251 GXX=
4252fi
brynercb91a2f2006-08-25 21:14:45 +00004253ac_test_CXXFLAGS=${CXXFLAGS+set}
4254ac_save_CXXFLAGS=$CXXFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00004255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4256$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4257if test "${ac_cv_prog_cxx_g+set}" = set; then :
4258 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004259else
mmentovai8c2a4de2006-09-20 16:20:15 +00004260 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4261 ac_cxx_werror_flag=yes
4262 ac_cv_prog_cxx_g=no
4263 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00004264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004265/* end confdefs.h. */
4266
4267int
4268main ()
4269{
4270
4271 ;
4272 return 0;
4273}
4274_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004275if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004276 ac_cv_prog_cxx_g=yes
4277else
jimblandy92b1f832009-12-23 22:23:49 +00004278 CXXFLAGS=""
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00004280/* end confdefs.h. */
4281
4282int
4283main ()
4284{
4285
4286 ;
4287 return 0;
4288}
4289_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004290if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004291
jimblandy92b1f832009-12-23 22:23:49 +00004292else
4293 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00004294 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00004295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00004296/* end confdefs.h. */
4297
4298int
4299main ()
4300{
4301
4302 ;
4303 return 0;
4304}
4305_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004306if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004307 ac_cv_prog_cxx_g=yes
brynercb91a2f2006-08-25 21:14:45 +00004308fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004310fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4315fi
jimblandy92b1f832009-12-23 22:23:49 +00004316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4317$as_echo "$ac_cv_prog_cxx_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004318if test "$ac_test_CXXFLAGS" = set; then
4319 CXXFLAGS=$ac_save_CXXFLAGS
4320elif test $ac_cv_prog_cxx_g = yes; then
4321 if test "$GXX" = yes; then
4322 CXXFLAGS="-g -O2"
4323 else
4324 CXXFLAGS="-g"
4325 fi
4326else
4327 if test "$GXX" = yes; then
4328 CXXFLAGS="-O2"
4329 else
4330 CXXFLAGS=
4331 fi
4332fi
brynercb91a2f2006-08-25 21:14:45 +00004333ac_ext=c
4334ac_cpp='$CPP $CPPFLAGS'
4335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338
4339depcc="$CXX" am_compiler_list=
4340
jimblandy92b1f832009-12-23 22:23:49 +00004341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4342$as_echo_n "checking dependency style of $depcc... " >&6; }
4343if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004345else
4346 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4347 # We make a subdir and do the tests there. Otherwise we can end up
4348 # making bogus files that we don't know about and never remove. For
4349 # instance it was reported that on HP-UX the gcc test will end up
4350 # making a dummy file named `D' -- because `-MD' means `put the output
4351 # in D'.
4352 mkdir conftest.dir
4353 # Copy depcomp to subdir because otherwise we won't find it if we're
4354 # using a relative directory.
4355 cp "$am_depcomp" conftest.dir
4356 cd conftest.dir
4357 # We will build objects and dependencies in a subdirectory because
4358 # it helps to detect inapplicable dependency modes. For instance
4359 # both Tru64's cc and ICC support -MD to output dependencies as a
4360 # side effect of compilation, but ICC will put the dependencies in
4361 # the current directory while Tru64 will put them in the object
4362 # directory.
4363 mkdir sub
4364
4365 am_cv_CXX_dependencies_compiler_type=none
4366 if test "$am_compiler_list" = ""; then
4367 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4368 fi
jimblandy92b1f832009-12-23 22:23:49 +00004369 am__universal=false
4370 case " $depcc " in #(
4371 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4372 esac
4373
brynercb91a2f2006-08-25 21:14:45 +00004374 for depmode in $am_compiler_list; do
4375 # Setup a source with many dependencies, because some compilers
4376 # like to wrap large dependency lists on column 80 (with \), and
4377 # we should not choose a depcomp mode which is confused by this.
4378 #
4379 # We need to recreate these files for each test, as the compiler may
4380 # overwrite some of them when testing with obscure command lines.
4381 # This happens at least with the AIX C compiler.
4382 : > sub/conftest.c
4383 for i in 1 2 3 4 5 6; do
4384 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4385 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4386 # Solaris 8's {/usr,}/bin/sh.
4387 touch sub/conftst$i.h
4388 done
4389 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4390
jimblandy92b1f832009-12-23 22:23:49 +00004391 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4392 # mode. It turns out that the SunPro C++ compiler does not properly
4393 # handle `-M -o', and we need to detect this. Also, some Intel
4394 # versions had trouble with output in subdirs
4395 am__obj=sub/conftest.${OBJEXT-o}
4396 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00004397 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00004398 gcc)
4399 # This depmode causes a compiler race in universal mode.
4400 test "$am__universal" = false || continue
4401 ;;
brynercb91a2f2006-08-25 21:14:45 +00004402 nosideeffect)
4403 # after this tag, mechanisms are not by side-effect, so they'll
4404 # only be used when explicitly requested
4405 if test "x$enable_dependency_tracking" = xyes; then
4406 continue
4407 else
4408 break
4409 fi
4410 ;;
jimblandy92b1f832009-12-23 22:23:49 +00004411 msvisualcpp | msvcmsys)
4412 # This compiler won't grok `-c -o', but also, the minuso test has
4413 # not run yet. These depmodes are late enough in the game, and
4414 # so weak that their functioning should not be impacted.
4415 am__obj=conftest.${OBJEXT-o}
4416 am__minus_obj=
4417 ;;
brynercb91a2f2006-08-25 21:14:45 +00004418 none) break ;;
4419 esac
brynercb91a2f2006-08-25 21:14:45 +00004420 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00004421 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00004422 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00004423 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00004424 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00004425 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004426 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00004427 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004428 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4429 # icc doesn't choke on unknown options, it will just issue warnings
4430 # or remarks (even with -Werror). So we grep stderr for any message
4431 # that says an option was ignored or not supported.
4432 # When given -MP, icc 7.0 and 7.1 complain thusly:
4433 # icc: Command line warning: ignoring option '-M'; no argument required
4434 # The diagnosis changed in icc 8.0:
4435 # icc: Command line remark: option '-MP' not supported
4436 if (grep 'ignoring option' conftest.err ||
4437 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4438 am_cv_CXX_dependencies_compiler_type=$depmode
4439 break
4440 fi
4441 fi
4442 done
4443
4444 cd ..
4445 rm -rf conftest.dir
4446else
4447 am_cv_CXX_dependencies_compiler_type=none
4448fi
4449
4450fi
jimblandy92b1f832009-12-23 22:23:49 +00004451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4452$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004453CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4454
mmentovaiaf3c43f2007-05-17 18:34:37 +00004455 if
brynercb91a2f2006-08-25 21:14:45 +00004456 test "x$enable_dependency_tracking" != xno \
4457 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4458 am__fastdepCXX_TRUE=
4459 am__fastdepCXX_FALSE='#'
4460else
4461 am__fastdepCXX_TRUE='#'
4462 am__fastdepCXX_FALSE=
4463fi
4464
4465
ted.mielczarekd192a712010-10-05 19:38:51 +00004466if test -n "$ac_tool_prefix"; then
4467 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4468set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4470$as_echo_n "checking for $ac_word... " >&6; }
4471if test "${ac_cv_prog_RANLIB+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00004472 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004473else
ted.mielczarekd192a712010-10-05 19:38:51 +00004474 if test -n "$RANLIB"; then
4475 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4476else
4477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +00004478for as_dir in $PATH
4479do
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
brynercb91a2f2006-08-25 21:14:45 +00004482 for ac_exec_ext in '' $ac_executable_extensions; do
ted.mielczarekd192a712010-10-05 19:38:51 +00004483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4484 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 break 2
4487 fi
4488done
brynercb91a2f2006-08-25 21:14:45 +00004489 done
jimblandy92b1f832009-12-23 22:23:49 +00004490IFS=$as_save_IFS
ted.mielczarekd192a712010-10-05 19:38:51 +00004491
4492fi
4493fi
4494RANLIB=$ac_cv_prog_RANLIB
4495if test -n "$RANLIB"; then
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4497$as_echo "$RANLIB" >&6; }
4498else
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500$as_echo "no" >&6; }
4501fi
4502
4503
4504fi
4505if test -z "$ac_cv_prog_RANLIB"; then
4506 ac_ct_RANLIB=$RANLIB
4507 # Extract the first word of "ranlib", so it can be a program name with args.
4508set dummy ranlib; ac_word=$2
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510$as_echo_n "checking for $ac_word... " >&6; }
4511if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4513else
4514 if test -n "$ac_ct_RANLIB"; then
4515 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4516else
4517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518for as_dir in $PATH
4519do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 ac_cv_prog_ac_ct_RANLIB="ranlib"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4527 fi
4528done
4529 done
4530IFS=$as_save_IFS
4531
4532fi
4533fi
4534ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4535if test -n "$ac_ct_RANLIB"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4537$as_echo "$ac_ct_RANLIB" >&6; }
4538else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540$as_echo "no" >&6; }
4541fi
4542
4543 if test "x$ac_ct_RANLIB" = x; then
4544 RANLIB=":"
4545 else
4546 case $cross_compiling:$ac_tool_warned in
4547yes:)
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4550ac_tool_warned=yes ;;
4551esac
4552 RANLIB=$ac_ct_RANLIB
jimblandy92b1f832009-12-23 22:23:49 +00004553 fi
4554else
ted.mielczarekd192a712010-10-05 19:38:51 +00004555 RANLIB="$ac_cv_prog_RANLIB"
brynercb91a2f2006-08-25 21:14:45 +00004556fi
4557
jimblandy92b1f832009-12-23 22:23:49 +00004558
4559
4560
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4562$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4563if test "${ac_cv_path_GREP+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004565else
jimblandy92b1f832009-12-23 22:23:49 +00004566 if test -z "$GREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004567 ac_path_GREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00004568 # Loop through the user's path and test for each of PROGNAME-LIST
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00004570for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4571do
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004574 for ac_prog in grep ggrep; do
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4577 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4578# Check for GNU ac_path_GREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00004579 # Check for GNU $ac_path_GREP
4580case `"$ac_path_GREP" --version 2>&1` in
4581*GNU*)
4582 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4583*)
4584 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00004585 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00004586 while :
4587 do
4588 cat "conftest.in" "conftest.in" >"conftest.tmp"
4589 mv "conftest.tmp" "conftest.in"
4590 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00004591 $as_echo 'GREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00004592 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00004594 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00004595 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4596 # Best one so far, save it but keep looking for a better one
4597 ac_cv_path_GREP="$ac_path_GREP"
4598 ac_path_GREP_max=$ac_count
brynercb91a2f2006-08-25 21:14:45 +00004599 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004600 # 10*(2^10) chars as input seems more than enough
4601 test $ac_count -gt 10 && break
4602 done
4603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4604esac
4605
jimblandy92b1f832009-12-23 22:23:49 +00004606 $ac_path_GREP_found && break 3
4607 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004608 done
jimblandy92b1f832009-12-23 22:23:49 +00004609 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004610IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00004611 if test -z "$ac_cv_path_GREP"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00004612 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00004613 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004614else
4615 ac_cv_path_GREP=$GREP
4616fi
4617
mmentovai8c2a4de2006-09-20 16:20:15 +00004618fi
jimblandy92b1f832009-12-23 22:23:49 +00004619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4620$as_echo "$ac_cv_path_GREP" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004621 GREP="$ac_cv_path_GREP"
4622
4623
jimblandy92b1f832009-12-23 22:23:49 +00004624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4625$as_echo_n "checking for egrep... " >&6; }
4626if test "${ac_cv_path_EGREP+set}" = set; then :
4627 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +00004628else
4629 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4630 then ac_cv_path_EGREP="$GREP -E"
4631 else
jimblandy92b1f832009-12-23 22:23:49 +00004632 if test -z "$EGREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004633 ac_path_EGREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00004634 # Loop through the user's path and test for each of PROGNAME-LIST
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00004636for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4637do
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004640 for ac_prog in egrep; do
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4643 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4644# Check for GNU ac_path_EGREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00004645 # Check for GNU $ac_path_EGREP
4646case `"$ac_path_EGREP" --version 2>&1` in
4647*GNU*)
4648 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4649*)
4650 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00004651 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00004652 while :
4653 do
4654 cat "conftest.in" "conftest.in" >"conftest.tmp"
4655 mv "conftest.tmp" "conftest.in"
4656 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00004657 $as_echo 'EGREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00004658 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4659 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00004660 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00004661 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4662 # Best one so far, save it but keep looking for a better one
4663 ac_cv_path_EGREP="$ac_path_EGREP"
4664 ac_path_EGREP_max=$ac_count
4665 fi
4666 # 10*(2^10) chars as input seems more than enough
4667 test $ac_count -gt 10 && break
4668 done
4669 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4670esac
4671
jimblandy92b1f832009-12-23 22:23:49 +00004672 $ac_path_EGREP_found && break 3
4673 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004674 done
jimblandy92b1f832009-12-23 22:23:49 +00004675 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004676IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00004677 if test -z "$ac_cv_path_EGREP"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00004678 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00004679 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004680else
4681 ac_cv_path_EGREP=$EGREP
4682fi
4683
jimblandy92b1f832009-12-23 22:23:49 +00004684 fi
4685fi
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4687$as_echo "$ac_cv_path_EGREP" >&6; }
4688 EGREP="$ac_cv_path_EGREP"
4689
4690
jimblandy92b1f832009-12-23 22:23:49 +00004691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4692$as_echo_n "checking for ANSI C header files... " >&6; }
4693if test "${ac_cv_header_stdc+set}" = set; then :
4694 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004695else
jimblandy92b1f832009-12-23 22:23:49 +00004696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004697/* end confdefs.h. */
4698#include <stdlib.h>
4699#include <stdarg.h>
4700#include <string.h>
4701#include <float.h>
4702
4703int
4704main ()
4705{
4706
4707 ;
4708 return 0;
4709}
4710_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004711if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004712 ac_cv_header_stdc=yes
4713else
jimblandy92b1f832009-12-23 22:23:49 +00004714 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +00004715fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004717
4718if test $ac_cv_header_stdc = yes; then
4719 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +00004720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004721/* end confdefs.h. */
4722#include <string.h>
4723
4724_ACEOF
4725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +00004726 $EGREP "memchr" >/dev/null 2>&1; then :
4727
brynercb91a2f2006-08-25 21:14:45 +00004728else
4729 ac_cv_header_stdc=no
4730fi
4731rm -f conftest*
4732
4733fi
4734
4735if test $ac_cv_header_stdc = yes; then
4736 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +00004737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004738/* end confdefs.h. */
4739#include <stdlib.h>
4740
4741_ACEOF
4742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +00004743 $EGREP "free" >/dev/null 2>&1; then :
4744
brynercb91a2f2006-08-25 21:14:45 +00004745else
4746 ac_cv_header_stdc=no
4747fi
4748rm -f conftest*
4749
4750fi
4751
4752if test $ac_cv_header_stdc = yes; then
4753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jimblandy92b1f832009-12-23 22:23:49 +00004754 if test "$cross_compiling" = yes; then :
brynercb91a2f2006-08-25 21:14:45 +00004755 :
4756else
jimblandy92b1f832009-12-23 22:23:49 +00004757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004758/* end confdefs.h. */
4759#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +00004760#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +00004761#if ((' ' & 0x0FF) == 0x020)
4762# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4763# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4764#else
4765# define ISLOWER(c) \
4766 (('a' <= (c) && (c) <= 'i') \
4767 || ('j' <= (c) && (c) <= 'r') \
4768 || ('s' <= (c) && (c) <= 'z'))
4769# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4770#endif
4771
4772#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4773int
4774main ()
4775{
4776 int i;
4777 for (i = 0; i < 256; i++)
4778 if (XOR (islower (i), ISLOWER (i))
4779 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +00004780 return 2;
4781 return 0;
brynercb91a2f2006-08-25 21:14:45 +00004782}
4783_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004784if ac_fn_c_try_run "$LINENO"; then :
4785
brynercb91a2f2006-08-25 21:14:45 +00004786else
jimblandy92b1f832009-12-23 22:23:49 +00004787 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +00004788fi
jimblandy92b1f832009-12-23 22:23:49 +00004789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4790 conftest.$ac_objext conftest.beam conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00004791fi
4792
brynercb91a2f2006-08-25 21:14:45 +00004793fi
4794fi
jimblandy92b1f832009-12-23 22:23:49 +00004795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4796$as_echo "$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004797if test $ac_cv_header_stdc = yes; then
4798
jimblandy92b1f832009-12-23 22:23:49 +00004799$as_echo "#define STDC_HEADERS 1" >>confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00004800
4801fi
4802
nealsidde545c02010-03-02 00:39:48 +00004803# ===========================================================================
4804# http://www.nongnu.org/autoconf-archive/ax_pthread.html
4805# ===========================================================================
4806#
4807# SYNOPSIS
4808#
4809# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
4810#
4811# DESCRIPTION
4812#
4813# This macro figures out how to build C programs using POSIX threads. It
4814# sets the PTHREAD_LIBS output variable to the threads library and linker
4815# flags, and the PTHREAD_CFLAGS output variable to any special C compiler
4816# flags that are needed. (The user can also force certain compiler
4817# flags/libs to be tested by setting these environment variables.)
4818#
4819# Also sets PTHREAD_CC to any special C compiler that is needed for
4820# multi-threaded programs (defaults to the value of CC otherwise). (This
4821# is necessary on AIX to use the special cc_r compiler alias.)
4822#
4823# NOTE: You are assumed to not only compile your program with these flags,
4824# but also link it with them as well. e.g. you should link with
4825# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
4826#
4827# If you are only building threads programs, you may wish to use these
4828# variables in your default LIBS, CFLAGS, and CC:
4829#
4830# LIBS="$PTHREAD_LIBS $LIBS"
4831# CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4832# CC="$PTHREAD_CC"
4833#
4834# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
4835# has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
4836# (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
4837#
4838# ACTION-IF-FOUND is a list of shell commands to run if a threads library
4839# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
4840# is not found. If ACTION-IF-FOUND is not specified, the default action
4841# will define HAVE_PTHREAD.
4842#
4843# Please let the authors know if this macro fails on any platform, or if
4844# you have any other suggestions or comments. This macro was based on work
4845# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
4846# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
4847# Alejandro Forero Cuervo to the autoconf macro repository. We are also
4848# grateful for the helpful feedback of numerous users.
4849#
4850# LICENSE
4851#
4852# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
4853#
4854# This program is free software: you can redistribute it and/or modify it
4855# under the terms of the GNU General Public License as published by the
4856# Free Software Foundation, either version 3 of the License, or (at your
4857# option) any later version.
4858#
4859# This program is distributed in the hope that it will be useful, but
4860# WITHOUT ANY WARRANTY; without even the implied warranty of
4861# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
4862# Public License for more details.
4863#
4864# You should have received a copy of the GNU General Public License along
4865# with this program. If not, see <http://www.gnu.org/licenses/>.
4866#
4867# As a special exception, the respective Autoconf Macro's copyright owner
4868# gives unlimited permission to copy, distribute and modify the configure
4869# scripts that are the output of Autoconf when processing the Macro. You
4870# need not follow the terms of the GNU General Public License when using
4871# or distributing such scripts, even though portions of the text of the
4872# Macro appear in them. The GNU General Public License (GPL) does govern
4873# all other use of the material that constitutes the Autoconf Macro.
4874#
4875# This special exception to the GPL applies to versions of the Autoconf
4876# Macro released by the Autoconf Archive. When you make and distribute a
4877# modified version of the Autoconf Macro, you may extend this special
4878# exception to the GPL to apply to your modified version as well.
4879
4880#serial 6
4881
4882# This is what autoupdate's m4 run will expand. It fires
4883# the warning (with _au_warn_XXX), outputs it into the
4884# updated configure.ac (with AC_DIAGNOSE), and then outputs
4885# the replacement expansion.
4886
4887
4888# This is an auxiliary macro that is also run when
4889# autoupdate runs m4. It simply calls m4_warning, but
4890# we need a wrapper so that each warning is emitted only
4891# once. We break the quoting in m4_warning's argument in
4892# order to expand this macro's arguments, not AU_DEFUN's.
4893
4894
4895# Finally, this is the expansion that is picked up by
4896# autoconf. It tells the user to run autoupdate, and
4897# then outputs the replacement expansion. We do not care
4898# about autoupdate's warning because that contains
4899# information on what to do *after* running autoupdate.
4900
4901
4902
4903
4904ac_ext=c
4905ac_cpp='$CPP $CPPFLAGS'
4906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908ac_compiler_gnu=$ac_cv_c_compiler_gnu
4909
4910ax_pthread_ok=no
4911
4912# We used to check for pthread.h first, but this fails if pthread.h
4913# requires special compiler flags (e.g. on True64 or Sequent).
4914# It gets checked for in the link test anyway.
4915
4916# First of all, check if the user has set any of the PTHREAD_LIBS,
4917# etcetera environment variables, and if threads linking works using
4918# them:
4919if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
4920 save_CFLAGS="$CFLAGS"
4921 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4922 save_LIBS="$LIBS"
4923 LIBS="$PTHREAD_LIBS $LIBS"
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
4925$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927/* end confdefs.h. */
4928
4929/* Override any GCC internal prototype to avoid an error.
4930 Use char because int might match the return type of a GCC
4931 builtin and then its argument prototype would still apply. */
4932#ifdef __cplusplus
4933extern "C"
4934#endif
4935char pthread_join ();
4936int
4937main ()
4938{
4939return pthread_join ();
4940 ;
4941 return 0;
4942}
4943_ACEOF
4944if ac_fn_c_try_link "$LINENO"; then :
4945 ax_pthread_ok=yes
4946fi
4947rm -f core conftest.err conftest.$ac_objext \
4948 conftest$ac_exeext conftest.$ac_ext
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
4950$as_echo "$ax_pthread_ok" >&6; }
4951 if test x"$ax_pthread_ok" = xno; then
4952 PTHREAD_LIBS=""
4953 PTHREAD_CFLAGS=""
4954 fi
4955 LIBS="$save_LIBS"
4956 CFLAGS="$save_CFLAGS"
4957fi
4958
4959# We must check for the threads library under a number of different
4960# names; the ordering is very important because some systems
4961# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4962# libraries is broken (non-POSIX).
4963
4964# Create a list of thread flags to try. Items starting with a "-" are
4965# C compiler flags, and other items are library names, except for "none"
4966# which indicates that we try without any flags at all, and "pthread-config"
4967# which is a program returning the flags for the Pth emulation library.
4968
4969ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
4970
4971# The ordering *is* (sometimes) important. Some notes on the
4972# individual items follow:
4973
4974# pthreads: AIX (must check this before -lpthread)
4975# none: in case threads are in libc; should be tried before -Kthread and
4976# other compiler flags to prevent continual compiler warnings
4977# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
4978# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
4979# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
4980# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
4981# -pthreads: Solaris/gcc
4982# -mthreads: Mingw32/gcc, Lynx/gcc
4983# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
4984# doesn't hurt to check since this sometimes defines pthreads too;
4985# also defines -D_REENTRANT)
4986# ... -mt is also the pthreads flag for HP/aCC
4987# pthread: Linux, etcetera
4988# --thread-safe: KAI C++
4989# pthread-config: use pthread-config program (for GNU Pth library)
4990
4991case "${host_cpu}-${host_os}" in
4992 *solaris*)
4993
4994 # On Solaris (at least, for some versions), libc contains stubbed
4995 # (non-functional) versions of the pthreads routines, so link-based
4996 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
4997 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
4998 # a function called by this macro, so we could check for that, but
4999 # who knows whether they'll stub that too in a future libc.) So,
5000 # we'll just look for -pthreads and -lpthread first:
5001
5002 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
5003 ;;
5004
5005 *-darwin*)
5006 acx_pthread_flags="-pthread $acx_pthread_flags"
5007 ;;
5008esac
5009
5010if test x"$ax_pthread_ok" = xno; then
5011for flag in $ax_pthread_flags; do
5012
5013 case $flag in
5014 none)
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
5016$as_echo_n "checking whether pthreads work without any flags... " >&6; }
5017 ;;
5018
5019 -*)
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
5021$as_echo_n "checking whether pthreads work with $flag... " >&6; }
5022 PTHREAD_CFLAGS="$flag"
5023 ;;
5024
5025 pthread-config)
5026 # Extract the first word of "pthread-config", so it can be a program name with args.
5027set dummy pthread-config; ac_word=$2
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029$as_echo_n "checking for $ac_word... " >&6; }
5030if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
5031 $as_echo_n "(cached) " >&6
5032else
5033 if test -n "$ax_pthread_config"; then
5034 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
5035else
5036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037for as_dir in $PATH
5038do
5039 IFS=$as_save_IFS
5040 test -z "$as_dir" && as_dir=.
5041 for ac_exec_ext in '' $ac_executable_extensions; do
5042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5043 ac_cv_prog_ax_pthread_config="yes"
5044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 break 2
5046 fi
5047done
5048 done
5049IFS=$as_save_IFS
5050
5051 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
5052fi
5053fi
5054ax_pthread_config=$ac_cv_prog_ax_pthread_config
5055if test -n "$ax_pthread_config"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
5057$as_echo "$ax_pthread_config" >&6; }
5058else
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060$as_echo "no" >&6; }
5061fi
5062
5063
5064 if test x"$ax_pthread_config" = xno; then continue; fi
5065 PTHREAD_CFLAGS="`pthread-config --cflags`"
5066 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
5067 ;;
5068
5069 *)
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
5071$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
5072 PTHREAD_LIBS="-l$flag"
5073 ;;
5074 esac
5075
5076 save_LIBS="$LIBS"
5077 save_CFLAGS="$CFLAGS"
5078 LIBS="$PTHREAD_LIBS $LIBS"
5079 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5080
5081 # Check for various functions. We must include pthread.h,
5082 # since some functions may be macros. (On the Sequent, we
5083 # need a special flag -Kthread to make this header compile.)
5084 # We check for pthread_join because it is in -lpthread on IRIX
5085 # while pthread_create is in libc. We check for pthread_attr_init
5086 # due to DEC craziness with -lpthreads. We check for
5087 # pthread_cleanup_push because it is one of the few pthread
5088 # functions on Solaris that doesn't have a non-functional libc stub.
5089 # We try pthread_create on general principles.
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091/* end confdefs.h. */
5092#include <pthread.h>
5093 static void routine(void* a) {a=0;}
5094 static void* start_routine(void* a) {return a;}
5095int
5096main ()
5097{
5098pthread_t th; pthread_attr_t attr;
5099 pthread_join(th, 0);
5100 pthread_attr_init(&attr);
5101 pthread_cleanup_push(routine, 0);
5102 pthread_create(&th,0,start_routine,0);
5103 pthread_cleanup_pop(0);
5104 ;
5105 return 0;
5106}
5107_ACEOF
5108if ac_fn_c_try_link "$LINENO"; then :
5109 ax_pthread_ok=yes
5110fi
5111rm -f core conftest.err conftest.$ac_objext \
5112 conftest$ac_exeext conftest.$ac_ext
5113
5114 LIBS="$save_LIBS"
5115 CFLAGS="$save_CFLAGS"
5116
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
5118$as_echo "$ax_pthread_ok" >&6; }
5119 if test "x$ax_pthread_ok" = xyes; then
5120 break;
5121 fi
5122
5123 PTHREAD_LIBS=""
5124 PTHREAD_CFLAGS=""
5125done
5126fi
5127
5128# Various other checks:
5129if test "x$ax_pthread_ok" = xyes; then
5130 save_LIBS="$LIBS"
5131 LIBS="$PTHREAD_LIBS $LIBS"
5132 save_CFLAGS="$CFLAGS"
5133 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5134
5135 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
5137$as_echo_n "checking for joinable pthread attribute... " >&6; }
5138 attr_name=unknown
5139 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141/* end confdefs.h. */
5142#include <pthread.h>
5143int
5144main ()
5145{
5146int attr=$attr; return attr;
5147 ;
5148 return 0;
5149}
5150_ACEOF
5151if ac_fn_c_try_link "$LINENO"; then :
5152 attr_name=$attr; break
5153fi
5154rm -f core conftest.err conftest.$ac_objext \
5155 conftest$ac_exeext conftest.$ac_ext
5156 done
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
5158$as_echo "$attr_name" >&6; }
5159 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
5160
5161cat >>confdefs.h <<_ACEOF
5162#define PTHREAD_CREATE_JOINABLE $attr_name
5163_ACEOF
5164
5165 fi
5166
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
5168$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
5169 flag=no
5170 case "${host_cpu}-${host_os}" in
5171 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
5172 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
5173 esac
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
5175$as_echo "${flag}" >&6; }
5176 if test "x$flag" != xno; then
5177 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
5178 fi
5179
5180 LIBS="$save_LIBS"
5181 CFLAGS="$save_CFLAGS"
5182
5183 # More AIX lossage: must compile with xlc_r or cc_r
5184 if test x"$GCC" != xyes; then
5185 for ac_prog in xlc_r cc_r
5186do
5187 # Extract the first word of "$ac_prog", so it can be a program name with args.
5188set dummy $ac_prog; ac_word=$2
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190$as_echo_n "checking for $ac_word... " >&6; }
5191if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
5192 $as_echo_n "(cached) " >&6
5193else
5194 if test -n "$PTHREAD_CC"; then
5195 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
5196else
5197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH
5199do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204 ac_cv_prog_PTHREAD_CC="$ac_prog"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5207 fi
5208done
5209 done
5210IFS=$as_save_IFS
5211
5212fi
5213fi
5214PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
5215if test -n "$PTHREAD_CC"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
5217$as_echo "$PTHREAD_CC" >&6; }
5218else
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220$as_echo "no" >&6; }
5221fi
5222
5223
5224 test -n "$PTHREAD_CC" && break
5225done
5226test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
5227
5228 else
5229 PTHREAD_CC=$CC
5230 fi
5231else
5232 PTHREAD_CC="$CC"
5233fi
5234
5235
5236
5237
5238
5239# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5240if test x"$ax_pthread_ok" = xyes; then
5241
5242$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
5243
5244 :
5245else
5246 ax_pthread_ok=no
5247
5248fi
5249ac_ext=c
5250ac_cpp='$CPP $CPPFLAGS'
5251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5253ac_compiler_gnu=$ac_cv_c_compiler_gnu
5254
5255
ted.mielczarekdbf409c2011-02-28 14:05:22 +00005256# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5257for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5258 inttypes.h stdint.h unistd.h
5259do :
5260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5261ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5262"
5263eval as_val=\$$as_ac_Header
5264 if test "x$as_val" = x""yes; then :
5265 cat >>confdefs.h <<_ACEOF
5266#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5267_ACEOF
5268
5269fi
5270
5271done
5272
5273
5274for ac_header in a.out.h
5275do :
5276 ac_fn_c_check_header_mongrel "$LINENO" "a.out.h" "ac_cv_header_a_out_h" "$ac_includes_default"
5277if test "x$ac_cv_header_a_out_h" = x""yes; then :
5278 cat >>confdefs.h <<_ACEOF
5279#define HAVE_A_OUT_H 1
5280_ACEOF
5281
5282fi
5283
5284done
5285
nealsidde545c02010-03-02 00:39:48 +00005286
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00005287# Only build Linux client libs when compiling for Linux
5288case $host in
ted.mielczarekcfc86282010-10-20 15:51:38 +00005289 *-*-linux* | *-android* )
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00005290 LINUX_HOST=true
5291 ;;
5292esac
5293 if test x$LINUX_HOST = xtrue; then
5294 LINUX_HOST_TRUE=
5295 LINUX_HOST_FALSE='#'
5296else
5297 LINUX_HOST_TRUE='#'
5298 LINUX_HOST_FALSE=
5299fi
5300
5301
nealsidde545c02010-03-02 00:39:48 +00005302# Check whether --enable-m32 was given.
5303if test "${enable_m32+set}" = set; then :
5304 enableval=$enable_m32; case "${enableval}" in
5305 yes)
ted.mielczarekefa30c12010-09-17 13:36:11 +00005306 CFLAGS="${CFLAGS} -m32"
5307 CXXFLAGS="${CXXFLAGS} -m32"
nealsidde545c02010-03-02 00:39:48 +00005308 usem32=true
5309 ;;
5310 no)
5311 usem32=false
5312 ;;
5313 *)
ted.mielczareke574a2a2010-10-05 19:38:22 +00005314 as_fn_error "bad value ${enableval} for --enable-m32" "$LINENO" 5
nealsidde545c02010-03-02 00:39:48 +00005315 ;;
5316 esac
5317else
5318 usem32=false
5319fi
5320
brynercb91a2f2006-08-25 21:14:45 +00005321
ted.mielczareke574a2a2010-10-05 19:38:22 +00005322# Check whether --enable-processor was given.
5323if test "${enable_processor+set}" = set; then :
5324 enableval=$enable_processor; case "${enableval}" in
5325 yes)
5326 disable_processor=false
5327 ;;
5328 no)
5329 disable_processor=true
5330 ;;
5331 *)
5332 as_fn_error "bad value ${enableval} for --disable-processor" "$LINENO" 5
5333 ;;
5334 esac
5335else
5336 disable_processor=false
5337fi
5338
5339 if test x$disable_processor = xtrue; then
5340 DISABLE_PROCESSOR_TRUE=
5341 DISABLE_PROCESSOR_FALSE='#'
5342else
5343 DISABLE_PROCESSOR_TRUE='#'
5344 DISABLE_PROCESSOR_FALSE=
5345fi
5346
5347
ted.mielczarekdbf409c2011-02-28 14:05:22 +00005348# Check whether --enable-tools was given.
5349if test "${enable_tools+set}" = set; then :
5350 enableval=$enable_tools; case "${enableval}" in
5351 yes)
5352 disable_tools=false
5353 ;;
5354 no)
5355 disable_tools=true
5356 ;;
5357 *)
5358 as_fn_error "bad value ${enableval} for --disable-tools" "$LINENO" 5
5359 ;;
5360 esac
5361else
5362 disable_tools=false
5363fi
5364
5365 if test x$disable_tools = xtrue; then
5366 DISABLE_TOOLS_TRUE=
5367 DISABLE_TOOLS_FALSE='#'
5368else
5369 DISABLE_TOOLS_TRUE='#'
5370 DISABLE_TOOLS_FALSE=
5371fi
5372
5373
5374if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue -a x$disable_tools = xtrue; then
5375 as_fn_error "--disable-processor and --disable-tools were specified, and not building for Linux. Nothing to build!" "$LINENO" 5
ted.mielczareke574a2a2010-10-05 19:38:22 +00005376fi
5377
ted.mielczarekb2236272010-04-08 23:06:23 +00005378ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
5379"
5380if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
5381
5382$as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_len)" >>confdefs.h
5383
5384else
5385
5386$as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_family == AF_INET ? sizeof(struct sockaddr_in) : \\
5387 ((struct sockaddr*)&(X))->sa_family == AF_INET6 ? sizeof(struct sockaddr_in6) : sizeof(struct sockaddr))" >>confdefs.h
5388
5389fi
5390
5391
mmentovai0dbedc92006-09-25 21:16:15 +00005392# Check whether --enable-selftest was given.
jimblandy92b1f832009-12-23 22:23:49 +00005393if test "${enable_selftest+set}" = set; then :
mmentovai0dbedc92006-09-25 21:16:15 +00005394 enableval=$enable_selftest; case "${enableval}" in
5395 yes)
5396 selftest=true
5397 ;;
5398 no)
5399 selftest=false
5400 ;;
5401 *)
ted.mielczareke574a2a2010-10-05 19:38:22 +00005402 as_fn_error "bad value ${enableval} for --enable-selftest" "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +00005403 ;;
5404 esac
5405else
5406 selftest=false
5407fi
5408
mmentovaiaf3c43f2007-05-17 18:34:37 +00005409 if test x$selftest = xtrue; then
mmentovai0dbedc92006-09-25 21:16:15 +00005410 SELFTEST_TRUE=
5411 SELFTEST_FALSE='#'
5412else
5413 SELFTEST_TRUE='#'
5414 SELFTEST_FALSE=
5415fi
5416
5417
mmentovai8c2a4de2006-09-20 16:20:15 +00005418ac_config_files="$ac_config_files Makefile"
brynercb91a2f2006-08-25 21:14:45 +00005419
5420cat >confcache <<\_ACEOF
5421# This file is a shell script that caches the results of configure
5422# tests run on this system so they can be shared between configure
5423# scripts and configure runs, see configure's option --config-cache.
5424# It is not useful on other systems. If it contains results you don't
5425# want to keep, you may remove or edit it.
5426#
5427# config.status only pays attention to the cache file if you give it
5428# the --recheck option to rerun configure.
5429#
5430# `ac_cv_env_foo' variables (set or unset) will be overridden when
5431# loading this file, other *unset* `ac_cv_foo' will be assigned the
5432# following values.
5433
5434_ACEOF
5435
5436# The following way of writing the cache mishandles newlines in values,
5437# but we know of no workaround that is simple, portable, and efficient.
mmentovai8c2a4de2006-09-20 16:20:15 +00005438# So, we kill variables containing newlines.
brynercb91a2f2006-08-25 21:14:45 +00005439# Ultrix sh set writes to stderr and can't be redirected directly,
5440# and sets the high bit in the cache file unless we assign to the vars.
mmentovai8c2a4de2006-09-20 16:20:15 +00005441(
5442 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5443 eval ac_val=\$$ac_var
5444 case $ac_val in #(
5445 *${as_nl}*)
5446 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +00005447 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5448$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005449 esac
5450 case $ac_var in #(
5451 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +00005452 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5453 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005454 esac ;;
5455 esac
5456 done
5457
brynercb91a2f2006-08-25 21:14:45 +00005458 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00005459 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5460 *${as_nl}ac_space=\ *)
jimblandy92b1f832009-12-23 22:23:49 +00005461 # `set' does not quote correctly, so add quotes: double-quote
5462 # substitution turns \\\\ into \\, and sed turns \\ into \.
brynercb91a2f2006-08-25 21:14:45 +00005463 sed -n \
5464 "s/'/'\\\\''/g;
5465 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mmentovai8c2a4de2006-09-20 16:20:15 +00005466 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00005467 *)
5468 # `set' quotes correctly as required by POSIX, so do not add quotes.
mmentovai8c2a4de2006-09-20 16:20:15 +00005469 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00005470 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005471 esac |
5472 sort
5473) |
brynercb91a2f2006-08-25 21:14:45 +00005474 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +00005475 /^ac_cv_env_/b end
brynercb91a2f2006-08-25 21:14:45 +00005476 t clear
mmentovai8c2a4de2006-09-20 16:20:15 +00005477 :clear
brynercb91a2f2006-08-25 21:14:45 +00005478 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5479 t end
mmentovai8c2a4de2006-09-20 16:20:15 +00005480 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5481 :end' >>confcache
5482if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5483 if test -w "$cache_file"; then
5484 test "x$cache_file" != "x/dev/null" &&
jimblandy92b1f832009-12-23 22:23:49 +00005485 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5486$as_echo "$as_me: updating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00005487 cat confcache >$cache_file
5488 else
jimblandy92b1f832009-12-23 22:23:49 +00005489 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5490$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00005491 fi
5492fi
5493rm -f confcache
5494
5495test "x$prefix" = xNONE && prefix=$ac_default_prefix
5496# Let make expand exec_prefix.
5497test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5498
brynercb91a2f2006-08-25 21:14:45 +00005499DEFS=-DHAVE_CONFIG_H
5500
5501ac_libobjs=
5502ac_ltlibobjs=
5503for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5504 # 1. Remove the extension, and $U if already installed.
mmentovai8c2a4de2006-09-20 16:20:15 +00005505 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
jimblandy92b1f832009-12-23 22:23:49 +00005506 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
mmentovai8c2a4de2006-09-20 16:20:15 +00005507 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5508 # will be set to the directory where LIBOBJS objects are built.
jimblandy92b1f832009-12-23 22:23:49 +00005509 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5510 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
brynercb91a2f2006-08-25 21:14:45 +00005511done
5512LIBOBJS=$ac_libobjs
5513
5514LTLIBOBJS=$ac_ltlibobjs
5515
5516
jimblandy92b1f832009-12-23 22:23:49 +00005517 if test -n "$EXEEXT"; then
5518 am__EXEEXT_TRUE=
5519 am__EXEEXT_FALSE='#'
5520else
5521 am__EXEEXT_TRUE='#'
5522 am__EXEEXT_FALSE=
5523fi
5524
brynercb91a2f2006-08-25 21:14:45 +00005525if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00005526 as_fn_error "conditional \"AMDEP\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +00005527Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00005528fi
5529if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00005530 as_fn_error "conditional \"am__fastdepCC\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +00005531Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00005532fi
5533if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00005534 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +00005535Usually this means the macro was only invoked conditionally." "$LINENO" 5
5536fi
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00005537if test -z "${LINUX_HOST_TRUE}" && test -z "${LINUX_HOST_FALSE}"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00005538 as_fn_error "conditional \"LINUX_HOST\" was never defined.
5539Usually this means the macro was only invoked conditionally." "$LINENO" 5
5540fi
5541if test -z "${DISABLE_PROCESSOR_TRUE}" && test -z "${DISABLE_PROCESSOR_FALSE}"; then
5542 as_fn_error "conditional \"DISABLE_PROCESSOR\" was never defined.
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00005543Usually this means the macro was only invoked conditionally." "$LINENO" 5
5544fi
ted.mielczarekdbf409c2011-02-28 14:05:22 +00005545if test -z "${DISABLE_TOOLS_TRUE}" && test -z "${DISABLE_TOOLS_FALSE}"; then
5546 as_fn_error "conditional \"DISABLE_TOOLS\" was never defined.
5547Usually this means the macro was only invoked conditionally." "$LINENO" 5
5548fi
mmentovai0dbedc92006-09-25 21:16:15 +00005549if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00005550 as_fn_error "conditional \"SELFTEST\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +00005551Usually this means the macro was only invoked conditionally." "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +00005552fi
brynercb91a2f2006-08-25 21:14:45 +00005553
5554: ${CONFIG_STATUS=./config.status}
jimblandy92b1f832009-12-23 22:23:49 +00005555ac_write_fail=0
brynercb91a2f2006-08-25 21:14:45 +00005556ac_clean_files_save=$ac_clean_files
5557ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jimblandy92b1f832009-12-23 22:23:49 +00005558{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5559$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5560as_write_fail=0
5561cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00005562#! $SHELL
5563# Generated by $as_me.
5564# Run this file to recreate the current configuration.
5565# Compiler output produced by configure, useful for debugging
5566# configure, is in config.log if it exists.
5567
5568debug=false
5569ac_cs_recheck=false
5570ac_cs_silent=false
brynercb91a2f2006-08-25 21:14:45 +00005571
jimblandy92b1f832009-12-23 22:23:49 +00005572SHELL=\${CONFIG_SHELL-$SHELL}
5573export SHELL
5574_ASEOF
5575cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5576## -------------------- ##
5577## M4sh Initialization. ##
5578## -------------------- ##
brynercb91a2f2006-08-25 21:14:45 +00005579
mmentovaiaf3c43f2007-05-17 18:34:37 +00005580# Be more Bourne compatible
5581DUALCASE=1; export DUALCASE # for MKS sh
jimblandy92b1f832009-12-23 22:23:49 +00005582if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
brynercb91a2f2006-08-25 21:14:45 +00005583 emulate sh
5584 NULLCMD=:
jimblandy92b1f832009-12-23 22:23:49 +00005585 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
brynercb91a2f2006-08-25 21:14:45 +00005586 # is contrary to our usage. Disable this feature.
5587 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +00005588 setopt NO_GLOB_SUBST
5589else
jimblandy92b1f832009-12-23 22:23:49 +00005590 case `(set -o) 2>/dev/null` in #(
5591 *posix*) :
5592 set -o posix ;; #(
5593 *) :
5594 ;;
mmentovaiaf3c43f2007-05-17 18:34:37 +00005595esac
brynercb91a2f2006-08-25 21:14:45 +00005596fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00005597
5598
jimblandy92b1f832009-12-23 22:23:49 +00005599as_nl='
5600'
5601export as_nl
5602# Printing a long string crashes Solaris 7 /usr/bin/printf.
5603as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5604as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5605as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5606# Prefer a ksh shell builtin over an external printf program on Solaris,
5607# but without wasting forks for bash or zsh.
5608if test -z "$BASH_VERSION$ZSH_VERSION" \
5609 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5610 as_echo='print -r --'
5611 as_echo_n='print -rn --'
5612elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5613 as_echo='printf %s\n'
5614 as_echo_n='printf %s'
5615else
5616 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5617 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5618 as_echo_n='/usr/ucb/echo -n'
5619 else
5620 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5621 as_echo_n_body='eval
5622 arg=$1;
5623 case $arg in #(
5624 *"$as_nl"*)
5625 expr "X$arg" : "X\\(.*\\)$as_nl";
5626 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5627 esac;
5628 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5629 '
5630 export as_echo_n_body
5631 as_echo_n='sh -c $as_echo_n_body as_echo'
5632 fi
5633 export as_echo_body
5634 as_echo='sh -c $as_echo_body as_echo'
5635fi
brynercb91a2f2006-08-25 21:14:45 +00005636
5637# The user is always right.
5638if test "${PATH_SEPARATOR+set}" != set; then
jimblandy92b1f832009-12-23 22:23:49 +00005639 PATH_SEPARATOR=:
5640 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5641 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5642 PATH_SEPARATOR=';'
5643 }
mmentovai8c2a4de2006-09-20 16:20:15 +00005644fi
brynercb91a2f2006-08-25 21:14:45 +00005645
mmentovai8c2a4de2006-09-20 16:20:15 +00005646
5647# IFS
5648# We need space, tab and new line, in precisely that order. Quoting is
5649# there to prevent editors from complaining about space-tab.
5650# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5651# splitting by setting IFS to empty value.)
mmentovai8c2a4de2006-09-20 16:20:15 +00005652IFS=" "" $as_nl"
5653
5654# Find who we are. Look in the path if we contain no directory separator.
jimblandy92b1f832009-12-23 22:23:49 +00005655case $0 in #((
mmentovai8c2a4de2006-09-20 16:20:15 +00005656 *[\\/]* ) as_myself=$0 ;;
5657 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +00005658for as_dir in $PATH
5659do
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00005662 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5663 done
mmentovai8c2a4de2006-09-20 16:20:15 +00005664IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00005665
mmentovai8c2a4de2006-09-20 16:20:15 +00005666 ;;
5667esac
5668# We did not find ourselves, most probably we were run as `sh COMMAND'
5669# in which case we are not to be found in the path.
5670if test "x$as_myself" = x; then
5671 as_myself=$0
5672fi
5673if test ! -f "$as_myself"; then
jimblandy92b1f832009-12-23 22:23:49 +00005674 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5675 exit 1
mmentovai8c2a4de2006-09-20 16:20:15 +00005676fi
5677
jimblandy92b1f832009-12-23 22:23:49 +00005678# Unset variables that we do not need and which cause bugs (e.g. in
5679# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5680# suppresses any "Segmentation fault" message there. '((' could
5681# trigger a bug in pdksh 5.2.14.
5682for as_var in BASH_ENV ENV MAIL MAILPATH
5683do eval test x\${$as_var+set} = xset \
5684 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
mmentovai8c2a4de2006-09-20 16:20:15 +00005685done
5686PS1='$ '
5687PS2='> '
5688PS4='+ '
5689
5690# NLS nuisances.
jimblandy92b1f832009-12-23 22:23:49 +00005691LC_ALL=C
5692export LC_ALL
5693LANGUAGE=C
5694export LANGUAGE
mmentovai8c2a4de2006-09-20 16:20:15 +00005695
jimblandy92b1f832009-12-23 22:23:49 +00005696# CDPATH.
5697(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5698
5699
ted.mielczareke574a2a2010-10-05 19:38:22 +00005700# as_fn_error ERROR [LINENO LOG_FD]
5701# ---------------------------------
jimblandy92b1f832009-12-23 22:23:49 +00005702# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5703# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
ted.mielczareke574a2a2010-10-05 19:38:22 +00005704# script with status $?, using 1 if that was 0.
jimblandy92b1f832009-12-23 22:23:49 +00005705as_fn_error ()
5706{
ted.mielczareke574a2a2010-10-05 19:38:22 +00005707 as_status=$?; test $as_status -eq 0 && as_status=1
5708 if test "$3"; then
5709 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5710 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
jimblandy92b1f832009-12-23 22:23:49 +00005711 fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00005712 $as_echo "$as_me: error: $1" >&2
jimblandy92b1f832009-12-23 22:23:49 +00005713 as_fn_exit $as_status
5714} # as_fn_error
5715
5716
5717# as_fn_set_status STATUS
5718# -----------------------
5719# Set $? to STATUS, without forking.
5720as_fn_set_status ()
5721{
5722 return $1
5723} # as_fn_set_status
5724
5725# as_fn_exit STATUS
5726# -----------------
5727# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5728as_fn_exit ()
5729{
5730 set +e
5731 as_fn_set_status $1
5732 exit $1
5733} # as_fn_exit
5734
5735# as_fn_unset VAR
5736# ---------------
5737# Portably unset VAR.
5738as_fn_unset ()
5739{
5740 { eval $1=; unset $1;}
5741}
5742as_unset=as_fn_unset
5743# as_fn_append VAR VALUE
5744# ----------------------
5745# Append the text in VALUE to the end of the definition contained in VAR. Take
5746# advantage of any shell optimizations that allow amortized linear growth over
5747# repeated appends, instead of the typical quadratic growth present in naive
5748# implementations.
5749if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5750 eval 'as_fn_append ()
5751 {
5752 eval $1+=\$2
5753 }'
5754else
5755 as_fn_append ()
5756 {
5757 eval $1=\$$1\$2
5758 }
5759fi # as_fn_append
5760
5761# as_fn_arith ARG...
5762# ------------------
5763# Perform arithmetic evaluation on the ARGs, and store the result in the
5764# global $as_val. Take advantage of shells that can avoid forks. The arguments
5765# must be portable across $(()) and expr.
5766if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5767 eval 'as_fn_arith ()
5768 {
5769 as_val=$(( $* ))
5770 }'
5771else
5772 as_fn_arith ()
5773 {
5774 as_val=`expr "$@" || test $? -eq 1`
5775 }
5776fi # as_fn_arith
5777
5778
mmentovai8c2a4de2006-09-20 16:20:15 +00005779if expr a : '\(a\)' >/dev/null 2>&1 &&
5780 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5781 as_expr=expr
5782else
5783 as_expr=false
5784fi
5785
5786if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5787 as_basename=basename
5788else
5789 as_basename=false
5790fi
5791
jimblandy92b1f832009-12-23 22:23:49 +00005792if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5793 as_dirname=dirname
5794else
5795 as_dirname=false
5796fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005797
mmentovai8c2a4de2006-09-20 16:20:15 +00005798as_me=`$as_basename -- "$0" ||
5799$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5800 X"$0" : 'X\(//\)$' \| \
5801 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +00005802$as_echo X/"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +00005803 sed '/^.*\/\([^/][^/]*\)\/*$/{
5804 s//\1/
5805 q
5806 }
5807 /^X\/\(\/\/\)$/{
5808 s//\1/
5809 q
5810 }
5811 /^X\/\(\/\).*/{
5812 s//\1/
5813 q
5814 }
5815 s/.*/./; q'`
5816
jimblandy92b1f832009-12-23 22:23:49 +00005817# Avoid depending upon Character Ranges.
5818as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5819as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5820as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5821as_cr_digits='0123456789'
5822as_cr_alnum=$as_cr_Letters$as_cr_digits
mmentovai8c2a4de2006-09-20 16:20:15 +00005823
5824ECHO_C= ECHO_N= ECHO_T=
jimblandy92b1f832009-12-23 22:23:49 +00005825case `echo -n x` in #(((((
mmentovai8c2a4de2006-09-20 16:20:15 +00005826-n*)
jimblandy92b1f832009-12-23 22:23:49 +00005827 case `echo 'xy\c'` in
mmentovai8c2a4de2006-09-20 16:20:15 +00005828 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
jimblandy92b1f832009-12-23 22:23:49 +00005829 xy) ECHO_C='\c';;
5830 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5831 ECHO_T=' ';;
mmentovai8c2a4de2006-09-20 16:20:15 +00005832 esac;;
5833*)
5834 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +00005835esac
5836
brynercb91a2f2006-08-25 21:14:45 +00005837rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +00005838if test -d conf$$.dir; then
5839 rm -f conf$$.dir/conf$$.file
5840else
5841 rm -f conf$$.dir
jimblandy92b1f832009-12-23 22:23:49 +00005842 mkdir conf$$.dir 2>/dev/null
mmentovai8c2a4de2006-09-20 16:20:15 +00005843fi
jimblandy92b1f832009-12-23 22:23:49 +00005844if (echo >conf$$.file) 2>/dev/null; then
5845 if ln -s conf$$.file conf$$ 2>/dev/null; then
5846 as_ln_s='ln -s'
5847 # ... but there are two gotchas:
5848 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5849 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5850 # In both cases, we have to default to `cp -p'.
5851 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5852 as_ln_s='cp -p'
5853 elif ln conf$$.file conf$$ 2>/dev/null; then
5854 as_ln_s=ln
5855 else
brynercb91a2f2006-08-25 21:14:45 +00005856 as_ln_s='cp -p'
jimblandy92b1f832009-12-23 22:23:49 +00005857 fi
brynercb91a2f2006-08-25 21:14:45 +00005858else
5859 as_ln_s='cp -p'
5860fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005861rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5862rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +00005863
jimblandy92b1f832009-12-23 22:23:49 +00005864
5865# as_fn_mkdir_p
5866# -------------
5867# Create "$as_dir" as a directory, including parents if necessary.
5868as_fn_mkdir_p ()
5869{
5870
5871 case $as_dir in #(
5872 -*) as_dir=./$as_dir;;
5873 esac
5874 test -d "$as_dir" || eval $as_mkdir_p || {
5875 as_dirs=
5876 while :; do
5877 case $as_dir in #(
5878 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5879 *) as_qdir=$as_dir;;
5880 esac
5881 as_dirs="'$as_qdir' $as_dirs"
5882 as_dir=`$as_dirname -- "$as_dir" ||
5883$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5884 X"$as_dir" : 'X\(//\)[^/]' \| \
5885 X"$as_dir" : 'X\(//\)$' \| \
5886 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5887$as_echo X"$as_dir" |
5888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5889 s//\1/
5890 q
5891 }
5892 /^X\(\/\/\)[^/].*/{
5893 s//\1/
5894 q
5895 }
5896 /^X\(\/\/\)$/{
5897 s//\1/
5898 q
5899 }
5900 /^X\(\/\).*/{
5901 s//\1/
5902 q
5903 }
5904 s/.*/./; q'`
5905 test -d "$as_dir" && break
5906 done
5907 test -z "$as_dirs" || eval "mkdir $as_dirs"
ted.mielczareke574a2a2010-10-05 19:38:22 +00005908 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
jimblandy92b1f832009-12-23 22:23:49 +00005909
5910
5911} # as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +00005912if mkdir -p . 2>/dev/null; then
jimblandy92b1f832009-12-23 22:23:49 +00005913 as_mkdir_p='mkdir -p "$as_dir"'
brynercb91a2f2006-08-25 21:14:45 +00005914else
5915 test -d ./-p && rmdir ./-p
5916 as_mkdir_p=false
5917fi
5918
mmentovaiaf3c43f2007-05-17 18:34:37 +00005919if test -x / >/dev/null 2>&1; then
5920 as_test_x='test -x'
mmentovai8c2a4de2006-09-20 16:20:15 +00005921else
mmentovaiaf3c43f2007-05-17 18:34:37 +00005922 if ls -dL / >/dev/null 2>&1; then
5923 as_ls_L_option=L
5924 else
5925 as_ls_L_option=
5926 fi
5927 as_test_x='
5928 eval sh -c '\''
5929 if test -d "$1"; then
jimblandy92b1f832009-12-23 22:23:49 +00005930 test -d "$1/.";
mmentovaiaf3c43f2007-05-17 18:34:37 +00005931 else
jimblandy92b1f832009-12-23 22:23:49 +00005932 case $1 in #(
5933 -*)set "./$1";;
mmentovaiaf3c43f2007-05-17 18:34:37 +00005934 esac;
jimblandy92b1f832009-12-23 22:23:49 +00005935 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
mmentovaiaf3c43f2007-05-17 18:34:37 +00005936 ???[sx]*):;;*)false;;esac;fi
5937 '\'' sh
5938 '
mmentovai8c2a4de2006-09-20 16:20:15 +00005939fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00005940as_executable_p=$as_test_x
brynercb91a2f2006-08-25 21:14:45 +00005941
5942# Sed expression to map a string onto a valid CPP name.
5943as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5944
5945# Sed expression to map a string onto a valid variable name.
5946as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5947
5948
brynercb91a2f2006-08-25 21:14:45 +00005949exec 6>&1
jimblandy92b1f832009-12-23 22:23:49 +00005950## ----------------------------------- ##
5951## Main body of $CONFIG_STATUS script. ##
5952## ----------------------------------- ##
5953_ASEOF
5954test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00005955
jimblandy92b1f832009-12-23 22:23:49 +00005956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5957# Save the log message, to keep $0 and so on meaningful, and to
brynercb91a2f2006-08-25 21:14:45 +00005958# report actual input values of CONFIG_FILES etc. instead of their
mmentovai8c2a4de2006-09-20 16:20:15 +00005959# values after options handling.
5960ac_log="
mmentovaie5dc6082007-02-14 19:51:05 +00005961This file was extended by breakpad $as_me 0.1, which was
ted.mielczareke574a2a2010-10-05 19:38:22 +00005962generated by GNU Autoconf 2.65. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00005963
5964 CONFIG_FILES = $CONFIG_FILES
5965 CONFIG_HEADERS = $CONFIG_HEADERS
5966 CONFIG_LINKS = $CONFIG_LINKS
5967 CONFIG_COMMANDS = $CONFIG_COMMANDS
5968 $ $0 $@
5969
mmentovai8c2a4de2006-09-20 16:20:15 +00005970on `(hostname || uname -n) 2>/dev/null | sed 1q`
5971"
5972
brynercb91a2f2006-08-25 21:14:45 +00005973_ACEOF
5974
jimblandy92b1f832009-12-23 22:23:49 +00005975case $ac_config_files in *"
5976"*) set x $ac_config_files; shift; ac_config_files=$*;;
5977esac
5978
5979case $ac_config_headers in *"
5980"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5981esac
5982
5983
5984cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00005985# Files that config.status was made for.
mmentovai8c2a4de2006-09-20 16:20:15 +00005986config_files="$ac_config_files"
5987config_headers="$ac_config_headers"
5988config_commands="$ac_config_commands"
brynercb91a2f2006-08-25 21:14:45 +00005989
mmentovai8c2a4de2006-09-20 16:20:15 +00005990_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00005991
jimblandy92b1f832009-12-23 22:23:49 +00005992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00005993ac_cs_usage="\
jimblandy92b1f832009-12-23 22:23:49 +00005994\`$as_me' instantiates files and other configuration actions
5995from templates according to the current configuration. Unless the files
5996and actions are specified as TAGs, all are instantiated by default.
brynercb91a2f2006-08-25 21:14:45 +00005997
jimblandy92b1f832009-12-23 22:23:49 +00005998Usage: $0 [OPTION]... [TAG]...
brynercb91a2f2006-08-25 21:14:45 +00005999
6000 -h, --help print this help, then exit
mmentovaiaf3c43f2007-05-17 18:34:37 +00006001 -V, --version print version number and configuration settings, then exit
jimblandydc4029a2010-02-02 17:39:51 +00006002 --config print configuration, then exit
jimblandy92b1f832009-12-23 22:23:49 +00006003 -q, --quiet, --silent
6004 do not print progress messages
brynercb91a2f2006-08-25 21:14:45 +00006005 -d, --debug don't remove temporary files
6006 --recheck update $as_me by reconfiguring in the same conditions
jimblandy92b1f832009-12-23 22:23:49 +00006007 --file=FILE[:TEMPLATE]
6008 instantiate the configuration file FILE
6009 --header=FILE[:TEMPLATE]
6010 instantiate the configuration header FILE
brynercb91a2f2006-08-25 21:14:45 +00006011
6012Configuration files:
6013$config_files
6014
6015Configuration headers:
6016$config_headers
6017
6018Configuration commands:
6019$config_commands
6020
thestig@chromium.org43e6db72010-11-08 19:49:41 +00006021Report bugs to <google-breakpad-dev@googlegroups.com>."
brynercb91a2f2006-08-25 21:14:45 +00006022
mmentovai8c2a4de2006-09-20 16:20:15 +00006023_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00006024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
jimblandydc4029a2010-02-02 17:39:51 +00006025ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
brynercb91a2f2006-08-25 21:14:45 +00006026ac_cs_version="\\
mmentovaie5dc6082007-02-14 19:51:05 +00006027breakpad config.status 0.1
ted.mielczareke574a2a2010-10-05 19:38:22 +00006028configured by $0, generated by GNU Autoconf 2.65,
jimblandydc4029a2010-02-02 17:39:51 +00006029 with options \\"\$ac_cs_config\\"
brynercb91a2f2006-08-25 21:14:45 +00006030
ted.mielczareke574a2a2010-10-05 19:38:22 +00006031Copyright (C) 2009 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00006032This config.status script is free software; the Free Software Foundation
6033gives unlimited permission to copy, distribute and modify it."
mmentovai8c2a4de2006-09-20 16:20:15 +00006034
6035ac_pwd='$ac_pwd'
6036srcdir='$srcdir'
6037INSTALL='$INSTALL'
mmentovaiaf3c43f2007-05-17 18:34:37 +00006038MKDIR_P='$MKDIR_P'
jimblandy92b1f832009-12-23 22:23:49 +00006039AWK='$AWK'
6040test -n "\$AWK" || AWK=awk
brynercb91a2f2006-08-25 21:14:45 +00006041_ACEOF
6042
jimblandy92b1f832009-12-23 22:23:49 +00006043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6044# The default lists apply if the user does not specify any file.
brynercb91a2f2006-08-25 21:14:45 +00006045ac_need_defaults=:
6046while test $# != 0
6047do
6048 case $1 in
ted.mielczareke574a2a2010-10-05 19:38:22 +00006049 --*=*)
mmentovai8c2a4de2006-09-20 16:20:15 +00006050 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6051 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00006052 ac_shift=:
6053 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006054 *)
brynercb91a2f2006-08-25 21:14:45 +00006055 ac_option=$1
6056 ac_optarg=$2
6057 ac_shift=shift
6058 ;;
brynercb91a2f2006-08-25 21:14:45 +00006059 esac
6060
6061 case $ac_option in
6062 # Handling of the options.
brynercb91a2f2006-08-25 21:14:45 +00006063 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6064 ac_cs_recheck=: ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006065 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
jimblandy92b1f832009-12-23 22:23:49 +00006066 $as_echo "$ac_cs_version"; exit ;;
jimblandydc4029a2010-02-02 17:39:51 +00006067 --config | --confi | --conf | --con | --co | --c )
6068 $as_echo "$ac_cs_config"; exit ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006069 --debug | --debu | --deb | --de | --d | -d )
brynercb91a2f2006-08-25 21:14:45 +00006070 debug=: ;;
6071 --file | --fil | --fi | --f )
6072 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +00006073 case $ac_optarg in
6074 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6075 esac
6076 as_fn_append CONFIG_FILES " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +00006077 ac_need_defaults=false;;
6078 --header | --heade | --head | --hea )
6079 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +00006080 case $ac_optarg in
6081 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6082 esac
6083 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +00006084 ac_need_defaults=false;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006085 --he | --h)
6086 # Conflict between --help and --header
ted.mielczareke574a2a2010-10-05 19:38:22 +00006087 as_fn_error "ambiguous option: \`$1'
jimblandy92b1f832009-12-23 22:23:49 +00006088Try \`$0 --help' for more information.";;
mmentovai8c2a4de2006-09-20 16:20:15 +00006089 --help | --hel | -h )
jimblandy92b1f832009-12-23 22:23:49 +00006090 $as_echo "$ac_cs_usage"; exit ;;
brynercb91a2f2006-08-25 21:14:45 +00006091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6092 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6093 ac_cs_silent=: ;;
6094
6095 # This is an error.
ted.mielczareke574a2a2010-10-05 19:38:22 +00006096 -*) as_fn_error "unrecognized option: \`$1'
jimblandy92b1f832009-12-23 22:23:49 +00006097Try \`$0 --help' for more information." ;;
brynercb91a2f2006-08-25 21:14:45 +00006098
jimblandy92b1f832009-12-23 22:23:49 +00006099 *) as_fn_append ac_config_targets " $1"
mmentovai8c2a4de2006-09-20 16:20:15 +00006100 ac_need_defaults=false ;;
brynercb91a2f2006-08-25 21:14:45 +00006101
6102 esac
6103 shift
6104done
6105
6106ac_configure_extra_args=
6107
6108if $ac_cs_silent; then
6109 exec 6>/dev/null
6110 ac_configure_extra_args="$ac_configure_extra_args --silent"
6111fi
6112
6113_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00006114cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00006115if \$ac_cs_recheck; then
jimblandy92b1f832009-12-23 22:23:49 +00006116 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6117 shift
6118 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6119 CONFIG_SHELL='$SHELL'
mmentovai8c2a4de2006-09-20 16:20:15 +00006120 export CONFIG_SHELL
jimblandy92b1f832009-12-23 22:23:49 +00006121 exec "\$@"
brynercb91a2f2006-08-25 21:14:45 +00006122fi
6123
6124_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00006125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +00006126exec 5>>config.log
6127{
6128 echo
6129 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6130## Running $as_me. ##
6131_ASBOX
jimblandy92b1f832009-12-23 22:23:49 +00006132 $as_echo "$ac_log"
mmentovai8c2a4de2006-09-20 16:20:15 +00006133} >&5
brynercb91a2f2006-08-25 21:14:45 +00006134
mmentovai8c2a4de2006-09-20 16:20:15 +00006135_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00006136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00006137#
mmentovai8c2a4de2006-09-20 16:20:15 +00006138# INIT-COMMANDS
brynercb91a2f2006-08-25 21:14:45 +00006139#
brynercb91a2f2006-08-25 21:14:45 +00006140AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6141
6142_ACEOF
6143
jimblandy92b1f832009-12-23 22:23:49 +00006144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +00006145
6146# Handling of arguments.
brynercb91a2f2006-08-25 21:14:45 +00006147for ac_config_target in $ac_config_targets
6148do
mmentovai8c2a4de2006-09-20 16:20:15 +00006149 case $ac_config_target in
6150 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
6151 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6152 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6153
ted.mielczareke574a2a2010-10-05 19:38:22 +00006154 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
brynercb91a2f2006-08-25 21:14:45 +00006155 esac
6156done
6157
mmentovai8c2a4de2006-09-20 16:20:15 +00006158
brynercb91a2f2006-08-25 21:14:45 +00006159# If the user did not use the arguments to specify the items to instantiate,
6160# then the envvar interface is used. Set only those that are not.
6161# We use the long form for the default assignment because of an extremely
6162# bizarre bug on SunOS 4.1.3.
6163if $ac_need_defaults; then
6164 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6165 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6166 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6167fi
6168
6169# Have a temporary directory for convenience. Make it in the build tree
mmentovai8c2a4de2006-09-20 16:20:15 +00006170# simply because there is no reason against having it here, and in addition,
brynercb91a2f2006-08-25 21:14:45 +00006171# creating and moving files from /tmp can sometimes cause problems.
mmentovai8c2a4de2006-09-20 16:20:15 +00006172# Hook for its removal unless debugging.
6173# Note that there is a small window in which the directory will not be cleaned:
6174# after its creation but before its name has been assigned to `$tmp'.
brynercb91a2f2006-08-25 21:14:45 +00006175$debug ||
6176{
mmentovai8c2a4de2006-09-20 16:20:15 +00006177 tmp=
6178 trap 'exit_status=$?
6179 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6180' 0
jimblandy92b1f832009-12-23 22:23:49 +00006181 trap 'as_fn_exit 1' 1 2 13 15
brynercb91a2f2006-08-25 21:14:45 +00006182}
brynercb91a2f2006-08-25 21:14:45 +00006183# Create a (secure) tmp directory for tmp files.
6184
6185{
mmentovai8c2a4de2006-09-20 16:20:15 +00006186 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
brynercb91a2f2006-08-25 21:14:45 +00006187 test -n "$tmp" && test -d "$tmp"
6188} ||
6189{
mmentovai8c2a4de2006-09-20 16:20:15 +00006190 tmp=./conf$$-$RANDOM
6191 (umask 077 && mkdir "$tmp")
ted.mielczareke574a2a2010-10-05 19:38:22 +00006192} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00006193
jimblandy92b1f832009-12-23 22:23:49 +00006194# Set up the scripts for CONFIG_FILES section.
6195# No need to generate them if there are no CONFIG_FILES.
6196# This happens for instance with `./config.status config.h'.
mmentovai8c2a4de2006-09-20 16:20:15 +00006197if test -n "$CONFIG_FILES"; then
brynercb91a2f2006-08-25 21:14:45 +00006198
jimblandy92b1f832009-12-23 22:23:49 +00006199
6200ac_cr=`echo X | tr X '\015'`
6201# On cygwin, bash can eat \r inside `` if the user requested igncr.
6202# But we know of no other shell where ac_cr would be empty at this
6203# point, so we can use a bashism as a fallback.
6204if test "x$ac_cr" = x; then
6205 eval ac_cr=\$\'\\r\'
6206fi
6207ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6208if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00006209 ac_cs_awk_cr='\r'
jimblandy92b1f832009-12-23 22:23:49 +00006210else
6211 ac_cs_awk_cr=$ac_cr
6212fi
6213
6214echo 'BEGIN {' >"$tmp/subs1.awk" &&
brynercb91a2f2006-08-25 21:14:45 +00006215_ACEOF
6216
mmentovai8c2a4de2006-09-20 16:20:15 +00006217
jimblandy92b1f832009-12-23 22:23:49 +00006218{
6219 echo "cat >conf$$subs.awk <<_ACEOF" &&
6220 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6221 echo "_ACEOF"
6222} >conf$$subs.sh ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00006223 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6224ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
mmentovai8c2a4de2006-09-20 16:20:15 +00006225ac_delim='%!_!# '
6226for ac_last_try in false false false false false :; do
jimblandy92b1f832009-12-23 22:23:49 +00006227 . ./conf$$subs.sh ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00006228 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00006229
jimblandy92b1f832009-12-23 22:23:49 +00006230 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6231 if test $ac_delim_n = $ac_delim_num; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006232 break
6233 elif $ac_last_try; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00006234 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00006235 else
6236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
brynercb91a2f2006-08-25 21:14:45 +00006237 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006238done
jimblandy92b1f832009-12-23 22:23:49 +00006239rm -f conf$$subs.sh
mmentovai8c2a4de2006-09-20 16:20:15 +00006240
jimblandy92b1f832009-12-23 22:23:49 +00006241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6242cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
mmentovai8c2a4de2006-09-20 16:20:15 +00006243_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00006244sed -n '
6245h
6246s/^/S["/; s/!.*/"]=/
6247p
6248g
6249s/^[^!]*!//
6250:repl
6251t repl
6252s/'"$ac_delim"'$//
6253t delim
6254:nl
6255h
jimblandydc4029a2010-02-02 17:39:51 +00006256s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +00006257t more1
6258s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6259p
6260n
6261b repl
6262:more1
6263s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6264p
6265g
6266s/.\{148\}//
6267t nl
6268:delim
6269h
jimblandydc4029a2010-02-02 17:39:51 +00006270s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +00006271t more2
6272s/["\\]/\\&/g; s/^/"/; s/$/"/
6273p
6274b
6275:more2
6276s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6277p
6278g
6279s/.\{148\}//
6280t delim
6281' <conf$$subs.awk | sed '
6282/^[^""]/{
6283 N
6284 s/\n//
6285}
6286' >>$CONFIG_STATUS || ac_write_fail=1
6287rm -f conf$$subs.awk
6288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6289_ACAWK
6290cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6291 for (key in S) S_is_set[key] = 1
6292 FS = ""
6293
6294}
6295{
6296 line = $ 0
6297 nfields = split(line, field, "@")
6298 substed = 0
6299 len = length(field[1])
6300 for (i = 2; i < nfields; i++) {
6301 key = field[i]
6302 keylen = length(key)
6303 if (S_is_set[key]) {
6304 value = S[key]
6305 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6306 len += length(value) + length(field[++i])
6307 substed = 1
6308 } else
6309 len += 1 + keylen
6310 }
6311
6312 print line
6313}
6314
6315_ACAWK
mmentovai8c2a4de2006-09-20 16:20:15 +00006316_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00006317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6318if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6319 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6320else
6321 cat
6322fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
ted.mielczareke574a2a2010-10-05 19:38:22 +00006323 || as_fn_error "could not setup config files machinery" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00006324_ACEOF
6325
ted.mielczareke574a2a2010-10-05 19:38:22 +00006326# VPATH may cause trouble with some makes, so we remove $(srcdir),
6327# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
mmentovai8c2a4de2006-09-20 16:20:15 +00006328# trailing colons and then remove the whole line if VPATH becomes empty
6329# (actually we leave an empty line to preserve line numbers).
6330if test "x$srcdir" = x.; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00006331 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6332s/:*\$(srcdir):*/:/
6333s/:*\${srcdir}:*/:/
6334s/:*@srcdir@:*/:/
6335s/^\([^=]*=[ ]*\):*/\1/
mmentovai8c2a4de2006-09-20 16:20:15 +00006336s/:*$//
6337s/^[^=]*=[ ]*$//
6338}'
6339fi
6340
jimblandy92b1f832009-12-23 22:23:49 +00006341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00006342fi # test -n "$CONFIG_FILES"
6343
jimblandy92b1f832009-12-23 22:23:49 +00006344# Set up the scripts for CONFIG_HEADERS section.
6345# No need to generate them if there are no CONFIG_HEADERS.
6346# This happens for instance with `./config.status Makefile'.
6347if test -n "$CONFIG_HEADERS"; then
6348cat >"$tmp/defines.awk" <<\_ACAWK ||
6349BEGIN {
6350_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00006351
jimblandy92b1f832009-12-23 22:23:49 +00006352# Transform confdefs.h into an awk script `defines.awk', embedded as
6353# here-document in config.status, that substitutes the proper values into
6354# config.h.in to produce config.h.
6355
6356# Create a delimiter string that does not exist in confdefs.h, to ease
6357# handling of long lines.
6358ac_delim='%!_!# '
6359for ac_last_try in false false :; do
6360 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6361 if test -z "$ac_t"; then
6362 break
6363 elif $ac_last_try; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00006364 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00006365 else
6366 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6367 fi
6368done
6369
6370# For the awk script, D is an array of macro values keyed by name,
6371# likewise P contains macro parameters if any. Preserve backslash
6372# newline sequences.
6373
6374ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6375sed -n '
6376s/.\{148\}/&'"$ac_delim"'/g
6377t rset
6378:rset
6379s/^[ ]*#[ ]*define[ ][ ]*/ /
6380t def
6381d
6382:def
6383s/\\$//
6384t bsnl
6385s/["\\]/\\&/g
6386s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6387D["\1"]=" \3"/p
6388s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6389d
6390:bsnl
6391s/["\\]/\\&/g
6392s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6393D["\1"]=" \3\\\\\\n"\\/p
6394t cont
6395s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6396t cont
6397d
6398:cont
6399n
6400s/.\{148\}/&'"$ac_delim"'/g
6401t clear
6402:clear
6403s/\\$//
6404t bsnlc
6405s/["\\]/\\&/g; s/^/"/; s/$/"/p
6406d
6407:bsnlc
6408s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6409b cont
6410' <confdefs.h | sed '
6411s/'"$ac_delim"'/"\\\
6412"/g' >>$CONFIG_STATUS || ac_write_fail=1
6413
6414cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6415 for (key in D) D_is_set[key] = 1
6416 FS = ""
6417}
6418/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6419 line = \$ 0
6420 split(line, arg, " ")
6421 if (arg[1] == "#") {
6422 defundef = arg[2]
6423 mac1 = arg[3]
6424 } else {
6425 defundef = substr(arg[1], 2)
6426 mac1 = arg[2]
6427 }
6428 split(mac1, mac2, "(") #)
6429 macro = mac2[1]
6430 prefix = substr(line, 1, index(line, defundef) - 1)
6431 if (D_is_set[macro]) {
6432 # Preserve the white space surrounding the "#".
6433 print prefix "define", macro P[macro] D[macro]
6434 next
6435 } else {
6436 # Replace #undef with comments. This is necessary, for example,
6437 # in the case of _POSIX_SOURCE, which is predefined and required
6438 # on some systems where configure will not decide to define it.
6439 if (defundef == "undef") {
6440 print "/*", prefix defundef, macro, "*/"
6441 next
6442 }
6443 }
6444}
6445{ print }
6446_ACAWK
6447_ACEOF
6448cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ted.mielczareke574a2a2010-10-05 19:38:22 +00006449 as_fn_error "could not setup config headers machinery" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00006450fi # test -n "$CONFIG_HEADERS"
6451
6452
6453eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6454shift
6455for ac_tag
mmentovai8c2a4de2006-09-20 16:20:15 +00006456do
6457 case $ac_tag in
6458 :[FHLC]) ac_mode=$ac_tag; continue;;
6459 esac
6460 case $ac_mode$ac_tag in
6461 :[FHL]*:*);;
ted.mielczareke574a2a2010-10-05 19:38:22 +00006462 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006463 :[FH]-) ac_tag=-:-;;
6464 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6465 esac
6466 ac_save_IFS=$IFS
6467 IFS=:
6468 set x $ac_tag
6469 IFS=$ac_save_IFS
6470 shift
6471 ac_file=$1
6472 shift
6473
6474 case $ac_mode in
6475 :L) ac_source=$1;;
6476 :[FH])
6477 ac_file_inputs=
6478 for ac_f
6479 do
6480 case $ac_f in
6481 -) ac_f="$tmp/stdin";;
6482 *) # Look for the file first in the build tree, then in the source tree
6483 # (if the path is not absolute). The absolute path cannot be DOS-style,
6484 # because $ac_f cannot contain `:'.
6485 test -f "$ac_f" ||
6486 case $ac_f in
6487 [\\/$]*) false;;
6488 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6489 esac ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00006490 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006491 esac
jimblandy92b1f832009-12-23 22:23:49 +00006492 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6493 as_fn_append ac_file_inputs " '$ac_f'"
mmentovai8c2a4de2006-09-20 16:20:15 +00006494 done
6495
6496 # Let's still pretend it is `configure' which instantiates (i.e., don't
6497 # use $as_me), people would be surprised to read:
6498 # /* config.h. Generated by config.status. */
jimblandy92b1f832009-12-23 22:23:49 +00006499 configure_input='Generated from '`
6500 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6501 `' by configure.'
mmentovai8c2a4de2006-09-20 16:20:15 +00006502 if test x"$ac_file" != x-; then
6503 configure_input="$ac_file. $configure_input"
jimblandy92b1f832009-12-23 22:23:49 +00006504 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6505$as_echo "$as_me: creating $ac_file" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +00006506 fi
jimblandy92b1f832009-12-23 22:23:49 +00006507 # Neutralize special characters interpreted by sed in replacement strings.
6508 case $configure_input in #(
6509 *\&* | *\|* | *\\* )
6510 ac_sed_conf_input=`$as_echo "$configure_input" |
6511 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6512 *) ac_sed_conf_input=$configure_input;;
6513 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00006514
6515 case $ac_tag in
jimblandy92b1f832009-12-23 22:23:49 +00006516 *:-:* | *:-) cat >"$tmp/stdin" \
ted.mielczareke574a2a2010-10-05 19:38:22 +00006517 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006518 esac
6519 ;;
brynercb91a2f2006-08-25 21:14:45 +00006520 esac
6521
mmentovai8c2a4de2006-09-20 16:20:15 +00006522 ac_dir=`$as_dirname -- "$ac_file" ||
brynercb91a2f2006-08-25 21:14:45 +00006523$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6524 X"$ac_file" : 'X\(//\)[^/]' \| \
6525 X"$ac_file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +00006526 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +00006527$as_echo X"$ac_file" |
mmentovai8c2a4de2006-09-20 16:20:15 +00006528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6529 s//\1/
6530 q
6531 }
6532 /^X\(\/\/\)[^/].*/{
6533 s//\1/
6534 q
6535 }
6536 /^X\(\/\/\)$/{
6537 s//\1/
6538 q
6539 }
6540 /^X\(\/\).*/{
6541 s//\1/
6542 q
6543 }
6544 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +00006545 as_dir="$ac_dir"; as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +00006546 ac_builddir=.
6547
mmentovai8c2a4de2006-09-20 16:20:15 +00006548case "$ac_dir" in
6549.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6550*)
jimblandy92b1f832009-12-23 22:23:49 +00006551 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00006552 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +00006553 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00006554 case $ac_top_builddir_sub in
6555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6557 esac ;;
6558esac
6559ac_abs_top_builddir=$ac_pwd
6560ac_abs_builddir=$ac_pwd$ac_dir_suffix
6561# for backward compatibility:
6562ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00006563
6564case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00006565 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00006566 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00006567 ac_top_srcdir=$ac_top_builddir_sub
6568 ac_abs_top_srcdir=$ac_pwd ;;
6569 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00006570 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00006571 ac_top_srcdir=$srcdir
6572 ac_abs_top_srcdir=$srcdir ;;
6573 *) # Relative name.
6574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6575 ac_top_srcdir=$ac_top_build_prefix$srcdir
6576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00006577esac
mmentovai8c2a4de2006-09-20 16:20:15 +00006578ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00006579
brynercb91a2f2006-08-25 21:14:45 +00006580
mmentovai8c2a4de2006-09-20 16:20:15 +00006581 case $ac_mode in
6582 :F)
6583 #
6584 # CONFIG_FILE
6585 #
brynercb91a2f2006-08-25 21:14:45 +00006586
6587 case $INSTALL in
6588 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006589 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
brynercb91a2f2006-08-25 21:14:45 +00006590 esac
mmentovaiaf3c43f2007-05-17 18:34:37 +00006591 ac_MKDIR_P=$MKDIR_P
6592 case $MKDIR_P in
6593 [\\/$]* | ?:[\\/]* ) ;;
6594 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6595 esac
brynercb91a2f2006-08-25 21:14:45 +00006596_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00006597
jimblandy92b1f832009-12-23 22:23:49 +00006598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +00006599# If the template does not know about datarootdir, expand it.
6600# FIXME: This hack should be removed a few years after 2.60.
6601ac_datarootdir_hack=; ac_datarootdir_seen=
jimblandy92b1f832009-12-23 22:23:49 +00006602ac_sed_dataroot='
6603/datarootdir/ {
mmentovai8c2a4de2006-09-20 16:20:15 +00006604 p
6605 q
6606}
6607/@datadir@/p
6608/@docdir@/p
6609/@infodir@/p
6610/@localedir@/p
jimblandy92b1f832009-12-23 22:23:49 +00006611/@mandir@/p'
6612case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
mmentovai8c2a4de2006-09-20 16:20:15 +00006613*datarootdir*) ac_datarootdir_seen=yes;;
6614*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
jimblandy92b1f832009-12-23 22:23:49 +00006615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6616$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00006617_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00006618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +00006619 ac_datarootdir_hack='
6620 s&@datadir@&$datadir&g
6621 s&@docdir@&$docdir&g
6622 s&@infodir@&$infodir&g
6623 s&@localedir@&$localedir&g
6624 s&@mandir@&$mandir&g
jimblandy92b1f832009-12-23 22:23:49 +00006625 s&\\\${datarootdir}&$datarootdir&g' ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006626esac
6627_ACEOF
6628
6629# Neutralize VPATH when `$srcdir' = `.'.
6630# Shell code in configure.ac might set extrasub.
6631# FIXME: do we really want to maintain this feature?
jimblandy92b1f832009-12-23 22:23:49 +00006632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6633ac_sed_extra="$ac_vpsub
brynercb91a2f2006-08-25 21:14:45 +00006634$extrasub
6635_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00006636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00006637:t
6638/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jimblandy92b1f832009-12-23 22:23:49 +00006639s|@configure_input@|$ac_sed_conf_input|;t t
mmentovai8c2a4de2006-09-20 16:20:15 +00006640s&@top_builddir@&$ac_top_builddir_sub&;t t
jimblandy92b1f832009-12-23 22:23:49 +00006641s&@top_build_prefix@&$ac_top_build_prefix&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +00006642s&@srcdir@&$ac_srcdir&;t t
6643s&@abs_srcdir@&$ac_abs_srcdir&;t t
6644s&@top_srcdir@&$ac_top_srcdir&;t t
6645s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6646s&@builddir@&$ac_builddir&;t t
6647s&@abs_builddir@&$ac_abs_builddir&;t t
6648s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6649s&@INSTALL@&$ac_INSTALL&;t t
mmentovaiaf3c43f2007-05-17 18:34:37 +00006650s&@MKDIR_P@&$ac_MKDIR_P&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +00006651$ac_datarootdir_hack
jimblandy92b1f832009-12-23 22:23:49 +00006652"
6653eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
ted.mielczareke574a2a2010-10-05 19:38:22 +00006654 || as_fn_error "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00006655
mmentovai8c2a4de2006-09-20 16:20:15 +00006656test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6657 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6658 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
jimblandy92b1f832009-12-23 22:23:49 +00006659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
ted.mielczareke574a2a2010-10-05 19:38:22 +00006660which seems to be undefined. Please make sure it is defined." >&5
jimblandy92b1f832009-12-23 22:23:49 +00006661$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
ted.mielczareke574a2a2010-10-05 19:38:22 +00006662which seems to be undefined. Please make sure it is defined." >&2;}
brynercb91a2f2006-08-25 21:14:45 +00006663
mmentovai8c2a4de2006-09-20 16:20:15 +00006664 rm -f "$tmp/stdin"
brynercb91a2f2006-08-25 21:14:45 +00006665 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00006666 -) cat "$tmp/out" && rm -f "$tmp/out";;
6667 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6668 esac \
ted.mielczareke574a2a2010-10-05 19:38:22 +00006669 || as_fn_error "could not create $ac_file" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00006670 ;;
6671 :H)
6672 #
6673 # CONFIG_HEADER
6674 #
brynercb91a2f2006-08-25 21:14:45 +00006675 if test x"$ac_file" != x-; then
jimblandy92b1f832009-12-23 22:23:49 +00006676 {
6677 $as_echo "/* $configure_input */" \
6678 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6679 } >"$tmp/config.h" \
ted.mielczareke574a2a2010-10-05 19:38:22 +00006680 || as_fn_error "could not create $ac_file" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00006681 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6683$as_echo "$as_me: $ac_file is unchanged" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00006684 else
jimblandy92b1f832009-12-23 22:23:49 +00006685 rm -f "$ac_file"
6686 mv "$tmp/config.h" "$ac_file" \
ted.mielczareke574a2a2010-10-05 19:38:22 +00006687 || as_fn_error "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00006688 fi
6689 else
jimblandy92b1f832009-12-23 22:23:49 +00006690 $as_echo "/* $configure_input */" \
6691 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
ted.mielczareke574a2a2010-10-05 19:38:22 +00006692 || as_fn_error "could not create -" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00006693 fi
jimblandy92b1f832009-12-23 22:23:49 +00006694# Compute "$ac_file"'s index in $config_headers.
6695_am_arg="$ac_file"
brynercb91a2f2006-08-25 21:14:45 +00006696_am_stamp_count=1
6697for _am_header in $config_headers :; do
6698 case $_am_header in
jimblandy92b1f832009-12-23 22:23:49 +00006699 $_am_arg | $_am_arg:* )
brynercb91a2f2006-08-25 21:14:45 +00006700 break ;;
6701 * )
6702 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6703 esac
6704done
jimblandy92b1f832009-12-23 22:23:49 +00006705echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6706$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6707 X"$_am_arg" : 'X\(//\)[^/]' \| \
6708 X"$_am_arg" : 'X\(//\)$' \| \
6709 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6710$as_echo X"$_am_arg" |
mmentovai8c2a4de2006-09-20 16:20:15 +00006711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6712 s//\1/
6713 q
6714 }
6715 /^X\(\/\/\)[^/].*/{
6716 s//\1/
6717 q
6718 }
6719 /^X\(\/\/\)$/{
6720 s//\1/
6721 q
6722 }
6723 /^X\(\/\).*/{
6724 s//\1/
6725 q
6726 }
6727 s/.*/./; q'`/stamp-h$_am_stamp_count
6728 ;;
brynercb91a2f2006-08-25 21:14:45 +00006729
jimblandy92b1f832009-12-23 22:23:49 +00006730 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6731$as_echo "$as_me: executing $ac_file commands" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +00006732 ;;
6733 esac
brynercb91a2f2006-08-25 21:14:45 +00006734
6735
mmentovai8c2a4de2006-09-20 16:20:15 +00006736 case $ac_file$ac_mode in
jimblandy92b1f832009-12-23 22:23:49 +00006737 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6738 # Autoconf 2.62 quotes --file arguments for eval, but not when files
6739 # are listed without --file. Let's play safe and only enable the eval
6740 # if we detect the quoting.
6741 case $CONFIG_FILES in
6742 *\'*) eval set x "$CONFIG_FILES" ;;
6743 *) set x $CONFIG_FILES ;;
6744 esac
6745 shift
6746 for mf
6747 do
6748 # Strip MF so we end up with the name of the file.
6749 mf=`echo "$mf" | sed -e 's/:.*$//'`
6750 # Check whether this is an Automake generated Makefile or not.
6751 # We used to match only the files named `Makefile.in', but
6752 # some people rename them; so instead we look at the file content.
6753 # Grep'ing the first line is not enough: some people post-process
6754 # each Makefile.in and add a new line on top of each file to say so.
6755 # Grep'ing the whole file is not good either: AIX grep has a line
6756 # limit of 2048, but all sed's we know have understand at least 4000.
6757 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6758 dirpart=`$as_dirname -- "$mf" ||
brynercb91a2f2006-08-25 21:14:45 +00006759$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6760 X"$mf" : 'X\(//\)[^/]' \| \
6761 X"$mf" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +00006762 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +00006763$as_echo X"$mf" |
mmentovai8c2a4de2006-09-20 16:20:15 +00006764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6765 s//\1/
6766 q
6767 }
6768 /^X\(\/\/\)[^/].*/{
6769 s//\1/
6770 q
6771 }
6772 /^X\(\/\/\)$/{
6773 s//\1/
6774 q
6775 }
6776 /^X\(\/\).*/{
6777 s//\1/
6778 q
6779 }
6780 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +00006781 else
6782 continue
6783 fi
6784 # Extract the definition of DEPDIR, am__include, and am__quote
6785 # from the Makefile without running `make'.
6786 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6787 test -z "$DEPDIR" && continue
6788 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6789 test -z "am__include" && continue
6790 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6791 # When using ansi2knr, U may be empty or an underscore; expand it
6792 U=`sed -n 's/^U = //p' < "$mf"`
6793 # Find all dependency output files, they are included files with
6794 # $(DEPDIR) in their names. We invoke sed twice because it is the
6795 # simplest approach to changing $(DEPDIR) to its actual value in the
6796 # expansion.
6797 for file in `sed -n "
6798 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6799 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6800 # Make sure the directory exists.
6801 test -f "$dirpart/$file" && continue
6802 fdir=`$as_dirname -- "$file" ||
brynercb91a2f2006-08-25 21:14:45 +00006803$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6804 X"$file" : 'X\(//\)[^/]' \| \
6805 X"$file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +00006806 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +00006807$as_echo X"$file" |
mmentovai8c2a4de2006-09-20 16:20:15 +00006808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6809 s//\1/
6810 q
6811 }
6812 /^X\(\/\/\)[^/].*/{
6813 s//\1/
6814 q
6815 }
6816 /^X\(\/\/\)$/{
6817 s//\1/
6818 q
6819 }
6820 /^X\(\/\).*/{
6821 s//\1/
6822 q
6823 }
6824 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +00006825 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6826 # echo "creating $dirpart/$file"
6827 echo '# dummy' > "$dirpart/$file"
brynercb91a2f2006-08-25 21:14:45 +00006828 done
brynercb91a2f2006-08-25 21:14:45 +00006829 done
jimblandy92b1f832009-12-23 22:23:49 +00006830}
6831 ;;
brynercb91a2f2006-08-25 21:14:45 +00006832
mmentovai8c2a4de2006-09-20 16:20:15 +00006833 esac
6834done # for ac_tag
6835
brynercb91a2f2006-08-25 21:14:45 +00006836
jimblandy92b1f832009-12-23 22:23:49 +00006837as_fn_exit 0
brynercb91a2f2006-08-25 21:14:45 +00006838_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00006839ac_clean_files=$ac_clean_files_save
6840
jimblandy92b1f832009-12-23 22:23:49 +00006841test $ac_write_fail = 0 ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00006842 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00006843
brynercb91a2f2006-08-25 21:14:45 +00006844
6845# configure is writing to config.log, and then calls config.status.
6846# config.status does its own redirection, appending to config.log.
6847# Unfortunately, on DOS this fails, as config.log is still kept open
6848# by configure, so config.status won't be able to write to it; its
6849# output is simply discarded. So we exec the FD to /dev/null,
6850# effectively closing config.log, so it can be properly (re)opened and
6851# appended to by config.status. When coming back to configure, we
6852# need to make the FD available again.
6853if test "$no_create" != yes; then
6854 ac_cs_success=:
6855 ac_config_status_args=
6856 test "$silent" = yes &&
6857 ac_config_status_args="$ac_config_status_args --quiet"
6858 exec 5>/dev/null
6859 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6860 exec 5>>config.log
6861 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6862 # would make configure fail if this is the last instruction.
ted.mielczareke574a2a2010-10-05 19:38:22 +00006863 $ac_cs_success || as_fn_exit $?
jimblandy92b1f832009-12-23 22:23:49 +00006864fi
6865if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6867$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00006868fi
6869