blob: e0187ddc972c5ffc8a5192a8e373f9ed8734c338 [file] [log] [blame]
brynercb91a2f2006-08-25 21:14:45 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
mark@chromium.orge9165f42013-11-23 01:45:20 +00003# Generated by GNU Autoconf 2.69 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#
mark@chromium.orge9165f42013-11-23 01:45:20 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
jimblandydc4029a2010-02-02 17:39:51 +00009#
jimblandy92b1f832009-12-23 22:23:49 +000010#
brynercb91a2f2006-08-25 21:14:45 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
jimblandy92b1f832009-12-23 22:23:49 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
brynercb91a2f2006-08-25 21:14:45 +000016
mmentovaiaf3c43f2007-05-17 18:34:37 +000017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
jimblandy92b1f832009-12-23 22:23:49 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
brynercb91a2f2006-08-25 21:14:45 +000020 emulate sh
21 NULLCMD=:
jimblandy92b1f832009-12-23 22:23:49 +000022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
brynercb91a2f2006-08-25 21:14:45 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000025 setopt NO_GLOB_SUBST
26else
jimblandy92b1f832009-12-23 22:23:49 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
mmentovaiaf3c43f2007-05-17 18:34:37 +000032esac
brynercb91a2f2006-08-25 21:14:45 +000033fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000034
35
jimblandy92b1f832009-12-23 22:23:49 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
brynercb91a2f2006-08-25 21:14:45 +000073
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
jimblandy92b1f832009-12-23 22:23:49 +000076 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
mmentovai8c2a4de2006-09-20 16:20:15 +000081fi
brynercb91a2f2006-08-25 21:14:45 +000082
mmentovai8c2a4de2006-09-20 16:20:15 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
mmentovai8c2a4de2006-09-20 16:20:15 +000089IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
mark@chromium.orge9165f42013-11-23 01:45:20 +000092as_myself=
jimblandy92b1f832009-12-23 22:23:49 +000093case $0 in #((
mmentovai8c2a4de2006-09-20 16:20:15 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000096for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
mmentovai8c2a4de2006-09-20 16:20:15 +0000102IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +0000103
mmentovai8c2a4de2006-09-20 16:20:15 +0000104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
jimblandy92b1f832009-12-23 22:23:49 +0000112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
mmentovai8c2a4de2006-09-20 16:20:15 +0000114fi
115
jimblandy92b1f832009-12-23 22:23:49 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
mmentovai8c2a4de2006-09-20 16:20:15 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
jimblandy92b1f832009-12-23 22:23:49 +0000129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
mmentovai8c2a4de2006-09-20 16:20:15 +0000133
jimblandy92b1f832009-12-23 22:23:49 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
mark@chromium.orge9165f42013-11-23 01:45:20 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
jimblandy92b1f832009-12-23 22:23:49 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
mark@chromium.orge9165f42013-11-23 01:45:20 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
jimblandy92b1f832009-12-23 22:23:49 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
mark@chromium.orge9165f42013-11-23 01:45:20 +0000241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
jimblandy92b1f832009-12-23 22:23:49 +0000260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
ted.mielczarekdbf409c2011-02-28 14:05:22 +0000270$0: google-breakpad-dev@googlegroups.com about your system,
271$0: including any error possibly output before this
272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
jimblandy92b1f832009-12-23 22:23:49 +0000274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
mark@chromium.orge9165f42013-11-23 01:45:20 +0000358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
jimblandy92b1f832009-12-23 22:23:49 +0000359
360
361} # as_fn_mkdir_p
mark@chromium.orge9165f42013-11-23 01:45:20 +0000362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
jimblandy92b1f832009-12-23 22:23:49 +0000370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
mark@chromium.orge9165f42013-11-23 01:45:20 +0000406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
jimblandy92b1f832009-12-23 22:23:49 +0000408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
mark@chromium.orge9165f42013-11-23 01:45:20 +0000410# script with STATUS, using 1 if that was 0.
jimblandy92b1f832009-12-23 22:23:49 +0000411as_fn_error ()
412{
mark@chromium.orge9165f42013-11-23 01:45:20 +0000413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
jimblandy92b1f832009-12-23 22:23:49 +0000417 fi
mark@chromium.orge9165f42013-11-23 01:45:20 +0000418 $as_echo "$as_me: error: $2" >&2
jimblandy92b1f832009-12-23 22:23:49 +0000419 as_fn_exit $as_status
420} # as_fn_error
421
mmentovai8c2a4de2006-09-20 16:20:15 +0000422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425else
426 as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431else
432 as_basename=false
433fi
434
jimblandy92b1f832009-12-23 22:23:49 +0000435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000440
mmentovai8c2a4de2006-09-20 16:20:15 +0000441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +0000445$as_echo X/"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +0000446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
jimblandy92b1f832009-12-23 22:23:49 +0000460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
mmentovai8c2a4de2006-09-20 16:20:15 +0000466
467
jimblandy92b1f832009-12-23 22:23:49 +0000468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
mmentovai8c2a4de2006-09-20 16:20:15 +0000473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
brynercb91a2f2006-08-25 21:14:45 +0000477 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +0000478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
brynercb91a2f2006-08-25 21:14:45 +0000482 N
mmentovai8c2a4de2006-09-20 16:20:15 +0000483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
brynercb91a2f2006-08-25 21:14:45 +0000485 t loop
mmentovai8c2a4de2006-09-20 16:20:15 +0000486 s/-\n.*//
brynercb91a2f2006-08-25 21:14:45 +0000487 ' >$as_me.lineno &&
mmentovai8c2a4de2006-09-20 16:20:15 +0000488 chmod +x "$as_me.lineno" ||
jimblandy92b1f832009-12-23 22:23:49 +0000489 { $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 +0000490
mark@chromium.orge9165f42013-11-23 01:45:20 +0000491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
brynercb91a2f2006-08-25 21:14:45 +0000495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
mmentovai8c2a4de2006-09-20 16:20:15 +0000497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
brynercb91a2f2006-08-25 21:14:45 +0000499 # Exit status is that of the last command.
500 exit
501}
502
mmentovai8c2a4de2006-09-20 16:20:15 +0000503ECHO_C= ECHO_N= ECHO_T=
jimblandy92b1f832009-12-23 22:23:49 +0000504case `echo -n x` in #(((((
mmentovai8c2a4de2006-09-20 16:20:15 +0000505-n*)
jimblandy92b1f832009-12-23 22:23:49 +0000506 case `echo 'xy\c'` in
mmentovai8c2a4de2006-09-20 16:20:15 +0000507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
jimblandy92b1f832009-12-23 22:23:49 +0000508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
mmentovai8c2a4de2006-09-20 16:20:15 +0000511 esac;;
512*)
513 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +0000514esac
515
brynercb91a2f2006-08-25 21:14:45 +0000516rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +0000517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
jimblandy92b1f832009-12-23 22:23:49 +0000521 mkdir conf$$.dir 2>/dev/null
mmentovai8c2a4de2006-09-20 16:20:15 +0000522fi
jimblandy92b1f832009-12-23 22:23:49 +0000523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
mark@chromium.orge9165f42013-11-23 01:45:20 +0000529 # In both cases, we have to default to `cp -pR'.
jimblandy92b1f832009-12-23 22:23:49 +0000530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
mark@chromium.orge9165f42013-11-23 01:45:20 +0000531 as_ln_s='cp -pR'
jimblandy92b1f832009-12-23 22:23:49 +0000532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
mark@chromium.orge9165f42013-11-23 01:45:20 +0000535 as_ln_s='cp -pR'
jimblandy92b1f832009-12-23 22:23:49 +0000536 fi
brynercb91a2f2006-08-25 21:14:45 +0000537else
mark@chromium.orge9165f42013-11-23 01:45:20 +0000538 as_ln_s='cp -pR'
brynercb91a2f2006-08-25 21:14:45 +0000539fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +0000542
543if mkdir -p . 2>/dev/null; then
jimblandy92b1f832009-12-23 22:23:49 +0000544 as_mkdir_p='mkdir -p "$as_dir"'
brynercb91a2f2006-08-25 21:14:45 +0000545else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548fi
549
mark@chromium.orge9165f42013-11-23 01:45:20 +0000550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
brynercb91a2f2006-08-25 21:14:45 +0000552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
jimblandydc4029a2010-02-02 17:39:51 +0000560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
mmentovai8c2a4de2006-09-20 16:20:15 +0000562
brynercb91a2f2006-08-25 21:14:45 +0000563# Name of the host.
mark@chromium.orge9165f42013-11-23 01:45:20 +0000564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
brynercb91a2f2006-08-25 21:14:45 +0000565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
brynercb91a2f2006-08-25 21:14:45 +0000568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
mmentovai8c2a4de2006-09-20 16:20:15 +0000572ac_clean_files=
brynercb91a2f2006-08-25 21:14:45 +0000573ac_config_libobj_dir=.
mmentovai8c2a4de2006-09-20 16:20:15 +0000574LIBOBJS=
brynercb91a2f2006-08-25 21:14:45 +0000575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
brynercb91a2f2006-08-25 21:14:45 +0000579
brynercb91a2f2006-08-25 21:14:45 +0000580# Identity of this package.
mmentovaie5dc6082007-02-14 19:51:05 +0000581PACKAGE_NAME='breakpad'
582PACKAGE_TARNAME='breakpad'
brynercb91a2f2006-08-25 21:14:45 +0000583PACKAGE_VERSION='0.1'
mmentovaie5dc6082007-02-14 19:51:05 +0000584PACKAGE_STRING='breakpad 0.1'
thestig@chromium.org43e6db72010-11-08 19:49:41 +0000585PACKAGE_BUGREPORT='google-breakpad-dev@googlegroups.com'
jimblandy92b1f832009-12-23 22:23:49 +0000586PACKAGE_URL=''
brynercb91a2f2006-08-25 21:14:45 +0000587
Mark Mentovaif74c85d2015-09-23 10:46:55 -0400588ac_unique_file="README.md"
ted.mielczarekdbf409c2011-02-28 14:05:22 +0000589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603# include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608# include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
jimblandy92b1f832009-12-23 22:23:49 +0000625ac_subst_vars='am__EXEEXT_FALSE
626am__EXEEXT_TRUE
627LTLIBOBJS
mmentovai8c2a4de2006-09-20 16:20:15 +0000628LIBOBJS
Lars Volker49907e12018-01-31 13:29:11 -0800629TESTS_AS_ROOT_FALSE
630TESTS_AS_ROOT_TRUE
Ted Mielczarek2ecb2ba2016-10-24 15:16:28 -0400631RUST_DEMANGLE_LIBS
632RUST_DEMANGLE_CFLAGS
jimblandy92b1f832009-12-23 22:23:49 +0000633SELFTEST_FALSE
634SELFTEST_TRUE
Mike Frysingerf820ead2016-01-25 19:27:56 -0500635GTEST_LIBS
636GTEST_CFLAGS
637GTEST_CONFIG
638GMOCK_LIBS
639GMOCK_CFLAGS
640GMOCK_CONFIG
641SYSTEM_TEST_LIBS_FALSE
642SYSTEM_TEST_LIBS_TRUE
ted.mielczarekdbf409c2011-02-28 14:05:22 +0000643DISABLE_TOOLS_FALSE
644DISABLE_TOOLS_TRUE
ted.mielczareke574a2a2010-10-05 19:38:22 +0000645DISABLE_PROCESSOR_FALSE
646DISABLE_PROCESSOR_TRUE
Mike Frysinger3f736ce2016-01-27 16:45:21 -0500647X86_HOST_FALSE
648X86_HOST_TRUE
digit@chromium.org62d486b2012-08-21 14:34:48 +0000649ANDROID_HOST_FALSE
650ANDROID_HOST_TRUE
ted.mielczarek53a8b1a2010-08-31 15:09:01 +0000651LINUX_HOST_FALSE
652LINUX_HOST_TRUE
Mike Frysinger6cc03752017-02-06 15:10:13 -0500653WARN_CXXFLAGS
Lei Zhang728bcdf2016-01-08 00:27:48 -0800654HAVE_CXX11
nealsidde545c02010-03-02 00:39:48 +0000655PTHREAD_CFLAGS
656PTHREAD_LIBS
657PTHREAD_CC
658ax_pthread_config
jimblandy92b1f832009-12-23 22:23:49 +0000659EGREP
660GREP
ted.mielczarekd192a712010-10-05 19:38:51 +0000661RANLIB
jimblandy92b1f832009-12-23 22:23:49 +0000662am__fastdepCXX_FALSE
663am__fastdepCXX_TRUE
664CXXDEPMODE
665ac_ct_CXX
666CXXFLAGS
667CXX
668CPP
digit@chromium.org7e3c5382012-08-31 18:38:29 +0000669am__fastdepCCAS_FALSE
670am__fastdepCCAS_TRUE
671CCASDEPMODE
672CCASFLAGS
673CCAS
jimblandy92b1f832009-12-23 22:23:49 +0000674am__fastdepCC_FALSE
675am__fastdepCC_TRUE
676CCDEPMODE
digit@chromium.org5bce3b42013-09-25 13:47:44 +0000677am__nodep
jimblandy92b1f832009-12-23 22:23:49 +0000678AMDEPBACKSLASH
679AMDEP_FALSE
680AMDEP_TRUE
681am__quote
682am__include
683DEPDIR
684OBJEXT
685EXEEXT
686ac_ct_CC
687CPPFLAGS
688LDFLAGS
689CFLAGS
690CC
Mike Frysingerf217ae42015-11-11 13:43:14 -0500691ac_ct_AR
692AR
ted.mielczarek@gmail.com07bb2312013-12-10 12:28:11 +0000693MAINT
694MAINTAINER_MODE_FALSE
695MAINTAINER_MODE_TRUE
mark@chromium.orge9165f42013-11-23 01:45:20 +0000696AM_BACKSLASH
697AM_DEFAULT_VERBOSITY
698AM_DEFAULT_V
699AM_V
jimblandy92b1f832009-12-23 22:23:49 +0000700am__untar
701am__tar
702AMTAR
703am__leading_dot
704SET_MAKE
705AWK
706mkdir_p
707MKDIR_P
708INSTALL_STRIP_PROGRAM
709STRIP
710install_sh
711MAKEINFO
712AUTOHEADER
713AUTOMAKE
714AUTOCONF
715ACLOCAL
716VERSION
717PACKAGE
718CYGPATH_W
719am__isrc
720INSTALL_DATA
721INSTALL_SCRIPT
722INSTALL_PROGRAM
ted.mielczarek53a8b1a2010-08-31 15:09:01 +0000723host_os
724host_vendor
725host_cpu
726host
727build_os
728build_vendor
729build_cpu
730build
jimblandy92b1f832009-12-23 22:23:49 +0000731target_alias
732host_alias
733build_alias
734LIBS
735ECHO_T
736ECHO_N
737ECHO_C
738DEFS
739mandir
740localedir
741libdir
742psdir
743pdfdir
744dvidir
745htmldir
746infodir
747docdir
748oldincludedir
749includedir
750localstatedir
751sharedstatedir
752sysconfdir
753datadir
754datarootdir
755libexecdir
756sbindir
757bindir
758program_transform_name
759prefix
760exec_prefix
761PACKAGE_URL
762PACKAGE_BUGREPORT
763PACKAGE_STRING
764PACKAGE_VERSION
765PACKAGE_TARNAME
766PACKAGE_NAME
767PATH_SEPARATOR
768SHELL'
brynercb91a2f2006-08-25 21:14:45 +0000769ac_subst_files=''
jimblandy92b1f832009-12-23 22:23:49 +0000770ac_user_opts='
771enable_option_checking
mark@chromium.orge9165f42013-11-23 01:45:20 +0000772enable_silent_rules
ted.mielczarek@gmail.com07bb2312013-12-10 12:28:11 +0000773enable_maintainer_mode
jimblandy92b1f832009-12-23 22:23:49 +0000774enable_dependency_tracking
nealsidde545c02010-03-02 00:39:48 +0000775enable_m32
vapier@chromium.org302124a2013-12-10 06:28:08 +0000776enable_largefile
ted.mielczareke574a2a2010-10-05 19:38:22 +0000777enable_processor
ted.mielczarekdbf409c2011-02-28 14:05:22 +0000778enable_tools
Mike Frysingerf820ead2016-01-25 19:27:56 -0500779enable_system_test_libs
jimblandy92b1f832009-12-23 22:23:49 +0000780enable_selftest
Ted Mielczarek2ecb2ba2016-10-24 15:16:28 -0400781with_rust_demangle
Lars Volker49907e12018-01-31 13:29:11 -0800782with_tests_as_root
jimblandy92b1f832009-12-23 22:23:49 +0000783'
mmentovai8c2a4de2006-09-20 16:20:15 +0000784 ac_precious_vars='build_alias
785host_alias
786target_alias
787CC
788CFLAGS
789LDFLAGS
mmentovaiaf3c43f2007-05-17 18:34:37 +0000790LIBS
mmentovai8c2a4de2006-09-20 16:20:15 +0000791CPPFLAGS
digit@chromium.org7e3c5382012-08-31 18:38:29 +0000792CCAS
793CCASFLAGS
mmentovai8c2a4de2006-09-20 16:20:15 +0000794CPP
795CXX
796CXXFLAGS
Mike Frysingerf820ead2016-01-25 19:27:56 -0500797CCC
798GMOCK_CONFIG
799GMOCK_CFLAGS
800GMOCK_LIBS
801GTEST_CONFIG
802GTEST_CFLAGS
Ted Mielczarek2ecb2ba2016-10-24 15:16:28 -0400803GTEST_LIBS
804RUST_DEMANGLE_CFLAGS
805RUST_DEMANGLE_LIBS'
mmentovai8c2a4de2006-09-20 16:20:15 +0000806
brynercb91a2f2006-08-25 21:14:45 +0000807
808# Initialize some variables set by options.
809ac_init_help=
810ac_init_version=false
jimblandy92b1f832009-12-23 22:23:49 +0000811ac_unrecognized_opts=
812ac_unrecognized_sep=
brynercb91a2f2006-08-25 21:14:45 +0000813# The variables have the same names as the options, with
814# dashes changed to underlines.
815cache_file=/dev/null
816exec_prefix=NONE
817no_create=
818no_recursion=
819prefix=NONE
820program_prefix=NONE
821program_suffix=NONE
822program_transform_name=s,x,x,
823silent=
824site=
825srcdir=
826verbose=
827x_includes=NONE
828x_libraries=NONE
829
830# Installation directory options.
831# These are left unexpanded so users can "make install exec_prefix=/foo"
832# and all the variables that are supposed to be based on exec_prefix
833# by default will actually change.
834# Use braces instead of parens because sh, perl, etc. also accept them.
mmentovai8c2a4de2006-09-20 16:20:15 +0000835# (The list follows the same order as the GNU Coding Standards.)
brynercb91a2f2006-08-25 21:14:45 +0000836bindir='${exec_prefix}/bin'
837sbindir='${exec_prefix}/sbin'
838libexecdir='${exec_prefix}/libexec'
mmentovai8c2a4de2006-09-20 16:20:15 +0000839datarootdir='${prefix}/share'
840datadir='${datarootdir}'
brynercb91a2f2006-08-25 21:14:45 +0000841sysconfdir='${prefix}/etc'
842sharedstatedir='${prefix}/com'
843localstatedir='${prefix}/var'
brynercb91a2f2006-08-25 21:14:45 +0000844includedir='${prefix}/include'
845oldincludedir='/usr/include'
mmentovai8c2a4de2006-09-20 16:20:15 +0000846docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
847infodir='${datarootdir}/info'
848htmldir='${docdir}'
849dvidir='${docdir}'
850pdfdir='${docdir}'
851psdir='${docdir}'
852libdir='${exec_prefix}/lib'
853localedir='${datarootdir}/locale'
854mandir='${datarootdir}/man'
brynercb91a2f2006-08-25 21:14:45 +0000855
856ac_prev=
mmentovai8c2a4de2006-09-20 16:20:15 +0000857ac_dashdash=
brynercb91a2f2006-08-25 21:14:45 +0000858for ac_option
859do
860 # If the previous option needs an argument, assign it.
861 if test -n "$ac_prev"; then
mmentovai8c2a4de2006-09-20 16:20:15 +0000862 eval $ac_prev=\$ac_option
brynercb91a2f2006-08-25 21:14:45 +0000863 ac_prev=
864 continue
865 fi
866
mmentovai8c2a4de2006-09-20 16:20:15 +0000867 case $ac_option in
mark@chromium.orge9165f42013-11-23 01:45:20 +0000868 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869 *=) ac_optarg= ;;
870 *) ac_optarg=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000871 esac
brynercb91a2f2006-08-25 21:14:45 +0000872
873 # Accept the important Cygnus configure options, so we can diagnose typos.
874
mmentovai8c2a4de2006-09-20 16:20:15 +0000875 case $ac_dashdash$ac_option in
876 --)
877 ac_dashdash=yes ;;
brynercb91a2f2006-08-25 21:14:45 +0000878
879 -bindir | --bindir | --bindi | --bind | --bin | --bi)
880 ac_prev=bindir ;;
881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
882 bindir=$ac_optarg ;;
883
884 -build | --build | --buil | --bui | --bu)
885 ac_prev=build_alias ;;
886 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
887 build_alias=$ac_optarg ;;
888
889 -cache-file | --cache-file | --cache-fil | --cache-fi \
890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
891 ac_prev=cache_file ;;
892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
894 cache_file=$ac_optarg ;;
895
896 --config-cache | -C)
897 cache_file=config.cache ;;
898
mmentovai8c2a4de2006-09-20 16:20:15 +0000899 -datadir | --datadir | --datadi | --datad)
brynercb91a2f2006-08-25 21:14:45 +0000900 ac_prev=datadir ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000901 -datadir=* | --datadir=* | --datadi=* | --datad=*)
brynercb91a2f2006-08-25 21:14:45 +0000902 datadir=$ac_optarg ;;
903
mmentovai8c2a4de2006-09-20 16:20:15 +0000904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905 | --dataroo | --dataro | --datar)
906 ac_prev=datarootdir ;;
907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909 datarootdir=$ac_optarg ;;
910
brynercb91a2f2006-08-25 21:14:45 +0000911 -disable-* | --disable-*)
jimblandy92b1f832009-12-23 22:23:49 +0000912 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +0000913 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +0000914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
mark@chromium.orge9165f42013-11-23 01:45:20 +0000915 as_fn_error $? "invalid feature name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +0000916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
919 *"
920"enable_$ac_useropt"
921"*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000926
927 -docdir | --docdir | --docdi | --doc | --do)
928 ac_prev=docdir ;;
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 docdir=$ac_optarg ;;
931
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 ac_prev=dvidir ;;
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 dvidir=$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +0000936
937 -enable-* | --enable-*)
jimblandy92b1f832009-12-23 22:23:49 +0000938 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +0000939 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +0000940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
mark@chromium.orge9165f42013-11-23 01:45:20 +0000941 as_fn_error $? "invalid feature name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +0000942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946"enable_$ac_useropt"
947"*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +0000952
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
960 exec_prefix=$ac_optarg ;;
961
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
964 with_gas=yes ;;
965
966 -help | --help | --hel | --he | -h)
967 ac_init_help=long ;;
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
972
973 -host | --host | --hos | --ho)
974 ac_prev=host_alias ;;
975 -host=* | --host=* | --hos=* | --ho=*)
976 host_alias=$ac_optarg ;;
977
mmentovai8c2a4de2006-09-20 16:20:15 +0000978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979 ac_prev=htmldir ;;
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981 | --ht=*)
982 htmldir=$ac_optarg ;;
983
brynercb91a2f2006-08-25 21:14:45 +0000984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
989 includedir=$ac_optarg ;;
990
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
992 ac_prev=infodir ;;
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994 infodir=$ac_optarg ;;
995
996 -libdir | --libdir | --libdi | --libd)
997 ac_prev=libdir ;;
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 libdir=$ac_optarg ;;
1000
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
1006 libexecdir=$ac_optarg ;;
1007
mmentovai8c2a4de2006-09-20 16:20:15 +00001008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1012
brynercb91a2f2006-08-25 21:14:45 +00001013 -localstatedir | --localstatedir | --localstatedi | --localstated \
mmentovai8c2a4de2006-09-20 16:20:15 +00001014 | --localstate | --localstat | --localsta | --localst | --locals)
brynercb91a2f2006-08-25 21:14:45 +00001015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mmentovai8c2a4de2006-09-20 16:20:15 +00001017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
brynercb91a2f2006-08-25 21:14:45 +00001018 localstatedir=$ac_optarg ;;
1019
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021 ac_prev=mandir ;;
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023 mandir=$ac_optarg ;;
1024
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1027 with_fp=no ;;
1028
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n)
1031 no_create=yes ;;
1032
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 no_recursion=yes ;;
1036
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044 oldincludedir=$ac_optarg ;;
1045
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047 ac_prev=prefix ;;
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049 prefix=$ac_optarg ;;
1050
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056 program_prefix=$ac_optarg ;;
1057
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063 program_suffix=$ac_optarg ;;
1064
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
1080 program_transform_name=$ac_optarg ;;
1081
mmentovai8c2a4de2006-09-20 16:20:15 +00001082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083 ac_prev=pdfdir ;;
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1086
1087 -psdir | --psdir | --psdi | --psd | --ps)
1088 ac_prev=psdir ;;
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 psdir=$ac_optarg ;;
1091
brynercb91a2f2006-08-25 21:14:45 +00001092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1094 silent=yes ;;
1095
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097 ac_prev=sbindir ;;
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099 | --sbi=* | --sb=*)
1100 sbindir=$ac_optarg ;;
1101
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1105 | --sha | --sh)
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110 | --sha=* | --sh=*)
1111 sharedstatedir=$ac_optarg ;;
1112
1113 -site | --site | --sit)
1114 ac_prev=site ;;
1115 -site=* | --site=* | --sit=*)
1116 site=$ac_optarg ;;
1117
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119 ac_prev=srcdir ;;
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121 srcdir=$ac_optarg ;;
1122
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128 sysconfdir=$ac_optarg ;;
1129
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
1131 ac_prev=target_alias ;;
1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133 target_alias=$ac_optarg ;;
1134
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 verbose=yes ;;
1137
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
1140
1141 -with-* | --with-*)
jimblandy92b1f832009-12-23 22:23:49 +00001142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001143 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
mark@chromium.orge9165f42013-11-23 01:45:20 +00001145 as_fn_error $? "invalid package name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +00001146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150"with_$ac_useropt"
1151"*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001156
1157 -without-* | --without-*)
jimblandy92b1f832009-12-23 22:23:49 +00001158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001159 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
mark@chromium.orge9165f42013-11-23 01:45:20 +00001161 as_fn_error $? "invalid package name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +00001162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1165 *"
1166"with_$ac_useropt"
1167"*) ;;
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1170 esac
1171 eval with_$ac_useropt=no ;;
brynercb91a2f2006-08-25 21:14:45 +00001172
1173 --x)
1174 # Obsolete; use --with-x.
1175 with_x=yes ;;
1176
1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1178 | --x-incl | --x-inc | --x-in | --x-i)
1179 ac_prev=x_includes ;;
1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1182 x_includes=$ac_optarg ;;
1183
1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1186 ac_prev=x_libraries ;;
1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1189 x_libraries=$ac_optarg ;;
1190
mark@chromium.orge9165f42013-11-23 01:45:20 +00001191 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1192Try \`$0 --help' for more information"
brynercb91a2f2006-08-25 21:14:45 +00001193 ;;
1194
1195 *=*)
1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1197 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001198 case $ac_envvar in #(
1199 '' | [0-9]* | *[!_$as_cr_alnum]* )
mark@chromium.orge9165f42013-11-23 01:45:20 +00001200 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
jimblandy92b1f832009-12-23 22:23:49 +00001201 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001202 eval $ac_envvar=\$ac_optarg
brynercb91a2f2006-08-25 21:14:45 +00001203 export $ac_envvar ;;
1204
1205 *)
1206 # FIXME: should be removed in autoconf 3.0.
jimblandy92b1f832009-12-23 22:23:49 +00001207 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
brynercb91a2f2006-08-25 21:14:45 +00001208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jimblandy92b1f832009-12-23 22:23:49 +00001209 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
mark@chromium.orge9165f42013-11-23 01:45:20 +00001210 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
brynercb91a2f2006-08-25 21:14:45 +00001211 ;;
1212
1213 esac
1214done
1215
1216if test -n "$ac_prev"; then
1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
mark@chromium.orge9165f42013-11-23 01:45:20 +00001218 as_fn_error $? "missing argument to $ac_option"
brynercb91a2f2006-08-25 21:14:45 +00001219fi
1220
jimblandy92b1f832009-12-23 22:23:49 +00001221if test -n "$ac_unrecognized_opts"; then
1222 case $enable_option_checking in
1223 no) ;;
mark@chromium.orge9165f42013-11-23 01:45:20 +00001224 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
jimblandy92b1f832009-12-23 22:23:49 +00001225 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1226 esac
1227fi
1228
1229# Check all directory arguments for consistency.
mmentovai8c2a4de2006-09-20 16:20:15 +00001230for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1231 datadir sysconfdir sharedstatedir localstatedir includedir \
1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1233 libdir localedir mandir
brynercb91a2f2006-08-25 21:14:45 +00001234do
mmentovai8c2a4de2006-09-20 16:20:15 +00001235 eval ac_val=\$$ac_var
jimblandy92b1f832009-12-23 22:23:49 +00001236 # Remove trailing slashes.
1237 case $ac_val in
1238 */ )
1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1240 eval $ac_var=\$ac_val;;
1241 esac
1242 # Be sure to have absolute directory names.
brynercb91a2f2006-08-25 21:14:45 +00001243 case $ac_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001244 [\\/$]* | ?:[\\/]* ) continue;;
1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
brynercb91a2f2006-08-25 21:14:45 +00001246 esac
mark@chromium.orge9165f42013-11-23 01:45:20 +00001247 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
brynercb91a2f2006-08-25 21:14:45 +00001248done
1249
1250# There might be people who depend on the old broken behavior: `$host'
1251# used to hold the argument of --host etc.
1252# FIXME: To remove some day.
1253build=$build_alias
1254host=$host_alias
1255target=$target_alias
1256
1257# FIXME: To remove some day.
1258if test "x$host_alias" != x; then
1259 if test "x$build_alias" = x; then
1260 cross_compiling=maybe
brynercb91a2f2006-08-25 21:14:45 +00001261 elif test "x$build_alias" != "x$host_alias"; then
1262 cross_compiling=yes
1263 fi
1264fi
1265
1266ac_tool_prefix=
1267test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268
1269test "$silent" = yes && exec 6>/dev/null
1270
1271
mmentovai8c2a4de2006-09-20 16:20:15 +00001272ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273ac_ls_di=`ls -di .` &&
1274ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00001275 as_fn_error $? "working directory cannot be determined"
mmentovai8c2a4de2006-09-20 16:20:15 +00001276test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00001277 as_fn_error $? "pwd does not report name of working directory"
mmentovai8c2a4de2006-09-20 16:20:15 +00001278
1279
brynercb91a2f2006-08-25 21:14:45 +00001280# Find the source files, if location was not specified.
1281if test -z "$srcdir"; then
1282 ac_srcdir_defaulted=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00001283 # Try the directory containing this script, then the parent directory.
jimblandy92b1f832009-12-23 22:23:49 +00001284 ac_confdir=`$as_dirname -- "$as_myself" ||
1285$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286 X"$as_myself" : 'X\(//\)[^/]' \| \
1287 X"$as_myself" : 'X\(//\)$' \| \
1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289$as_echo X"$as_myself" |
mmentovai8c2a4de2006-09-20 16:20:15 +00001290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\/\)[^/].*/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\/\)$/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\).*/{
1303 s//\1/
1304 q
1305 }
1306 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +00001307 srcdir=$ac_confdir
mmentovai8c2a4de2006-09-20 16:20:15 +00001308 if test ! -r "$srcdir/$ac_unique_file"; then
brynercb91a2f2006-08-25 21:14:45 +00001309 srcdir=..
1310 fi
1311else
1312 ac_srcdir_defaulted=no
1313fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001314if test ! -r "$srcdir/$ac_unique_file"; then
1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
mark@chromium.orge9165f42013-11-23 01:45:20 +00001316 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
brynercb91a2f2006-08-25 21:14:45 +00001317fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001318ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1319ac_abs_confdir=`(
mark@chromium.orge9165f42013-11-23 01:45:20 +00001320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
mmentovai8c2a4de2006-09-20 16:20:15 +00001321 pwd)`
1322# When building in place, set srcdir=.
1323if test "$ac_abs_confdir" = "$ac_pwd"; then
1324 srcdir=.
1325fi
1326# Remove unnecessary trailing slashes from srcdir.
1327# Double slashes in file names in object file debugging info
1328# mess up M-x gdb in Emacs.
1329case $srcdir in
1330*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331esac
1332for ac_var in $ac_precious_vars; do
1333 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_env_${ac_var}_value=\$${ac_var}
1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337done
brynercb91a2f2006-08-25 21:14:45 +00001338
1339#
1340# Report the --help message.
1341#
1342if test "$ac_init_help" = "long"; then
1343 # Omit some internal or obsolete options to make the list less imposing.
1344 # This message is too long to be a string in the A/UX 3.1 sh.
1345 cat <<_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001346\`configure' configures breakpad 0.1 to adapt to many kinds of systems.
brynercb91a2f2006-08-25 21:14:45 +00001347
1348Usage: $0 [OPTION]... [VAR=VALUE]...
1349
1350To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351VAR=VALUE. See below for descriptions of some of the useful variables.
1352
1353Defaults for the options are specified in brackets.
1354
1355Configuration:
1356 -h, --help display this help and exit
1357 --help=short display options specific to this package
1358 --help=recursive display the short help of all the included packages
1359 -V, --version display version information and exit
mark@chromium.orge9165f42013-11-23 01:45:20 +00001360 -q, --quiet, --silent do not print \`checking ...' messages
brynercb91a2f2006-08-25 21:14:45 +00001361 --cache-file=FILE cache test results in FILE [disabled]
1362 -C, --config-cache alias for \`--cache-file=config.cache'
1363 -n, --no-create do not create output files
1364 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1365
brynercb91a2f2006-08-25 21:14:45 +00001366Installation directories:
1367 --prefix=PREFIX install architecture-independent files in PREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001368 [$ac_default_prefix]
brynercb91a2f2006-08-25 21:14:45 +00001369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001370 [PREFIX]
brynercb91a2f2006-08-25 21:14:45 +00001371
1372By default, \`make install' will install all the files in
1373\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1374an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1375for instance \`--prefix=\$HOME'.
1376
1377For better control, use the options below.
1378
1379Fine tuning of the installation directories:
jimblandy92b1f832009-12-23 22:23:49 +00001380 --bindir=DIR user executables [EPREFIX/bin]
1381 --sbindir=DIR system admin executables [EPREFIX/sbin]
1382 --libexecdir=DIR program executables [EPREFIX/libexec]
1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1386 --libdir=DIR object code libraries [EPREFIX/lib]
1387 --includedir=DIR C header files [PREFIX/include]
1388 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1391 --infodir=DIR info documentation [DATAROOTDIR/info]
1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1393 --mandir=DIR man documentation [DATAROOTDIR/man]
1394 --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad]
1395 --htmldir=DIR html documentation [DOCDIR]
1396 --dvidir=DIR dvi documentation [DOCDIR]
1397 --pdfdir=DIR pdf documentation [DOCDIR]
1398 --psdir=DIR ps documentation [DOCDIR]
brynercb91a2f2006-08-25 21:14:45 +00001399_ACEOF
1400
1401 cat <<\_ACEOF
1402
1403Program names:
1404 --program-prefix=PREFIX prepend PREFIX to installed program names
1405 --program-suffix=SUFFIX append SUFFIX to installed program names
1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1407
1408System types:
1409 --build=BUILD configure for building on BUILD [guessed]
1410 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1411_ACEOF
1412fi
1413
1414if test -n "$ac_init_help"; then
1415 case $ac_init_help in
mmentovaie5dc6082007-02-14 19:51:05 +00001416 short | recursive ) echo "Configuration of breakpad 0.1:";;
brynercb91a2f2006-08-25 21:14:45 +00001417 esac
1418 cat <<\_ACEOF
1419
1420Optional Features:
jimblandy92b1f832009-12-23 22:23:49 +00001421 --disable-option-checking ignore unrecognized --enable/--with options
brynercb91a2f2006-08-25 21:14:45 +00001422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
mark@chromium.orge9165f42013-11-23 01:45:20 +00001424 --enable-silent-rules less verbose build output (undo: "make V=1")
1425 --disable-silent-rules verbose build output (undo: "make V=0")
ted.mielczarek@gmail.com07bb2312013-12-10 12:28:11 +00001426 --enable-maintainer-mode
1427 enable make rules and dependencies not useful (and
1428 sometimes confusing) to the casual installer
mark@chromium.orge9165f42013-11-23 01:45:20 +00001429 --enable-dependency-tracking
1430 do not reject slow dependency extractors
1431 --disable-dependency-tracking
1432 speeds up one-time build
nealsidde545c02010-03-02 00:39:48 +00001433 --enable-m32 Compile/build with -m32 (default is no)
vapier@chromium.org302124a2013-12-10 06:28:08 +00001434 --disable-largefile omit support for large files
ted.mielczareke574a2a2010-10-05 19:38:22 +00001435 --disable-processor Don't build processor library (default is no)
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001436 --disable-tools Don't build tool binaries (default is no)
Mike Frysingerf820ead2016-01-25 19:27:56 -05001437 --enable-system-test-libs
1438 Use gtest/gmock/etc... from the system instead of
1439 the local copies (default is local)
mmentovai0dbedc92006-09-25 21:16:15 +00001440 --enable-selftest Run extra tests with "make check" (may conflict with
1441 optimizations) (default is no)
brynercb91a2f2006-08-25 21:14:45 +00001442
Ted Mielczarek2ecb2ba2016-10-24 15:16:28 -04001443Optional Packages:
1444 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1445 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1446 --with-rust-demangle=/path/to/rust-demangle-capi
1447 Link against the rust-demangle library to demangle
1448 Rust language symbols during symbol dumping (default
1449 is no) Pass the path to the crate root.
Lars Volker49907e12018-01-31 13:29:11 -08001450 --with-tests-as-root Run the tests as root. Use this on platforms like
1451 travis-ci.org that require root privileges to use
1452 ptrace (default is no)
Ted Mielczarek2ecb2ba2016-10-24 15:16:28 -04001453
brynercb91a2f2006-08-25 21:14:45 +00001454Some influential environment variables:
1455 CC C compiler command
1456 CFLAGS C compiler flags
1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1458 nonstandard directory <lib dir>
mmentovaiaf3c43f2007-05-17 18:34:37 +00001459 LIBS libraries to pass to the linker, e.g. -l<library>
jimblandydc4029a2010-02-02 17:39:51 +00001460 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
mmentovai8c2a4de2006-09-20 16:20:15 +00001461 you have headers in a nonstandard directory <include dir>
digit@chromium.org7e3c5382012-08-31 18:38:29 +00001462 CCAS assembler compiler command (defaults to CC)
1463 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
brynercb91a2f2006-08-25 21:14:45 +00001464 CPP C preprocessor
1465 CXX C++ compiler command
1466 CXXFLAGS C++ compiler flags
Mike Frysingerf820ead2016-01-25 19:27:56 -05001467 GMOCK_CONFIG
1468 Path to gmock-config script
1469 GMOCK_CFLAGS
1470 Compiler flags for gmock
1471 GMOCK_LIBS Linker flags for gmock
1472 GTEST_CONFIG
1473 Path to gtest-config script
1474 GTEST_CFLAGS
1475 Compiler flags for gtest
1476 GTEST_LIBS Linker flags for gtest
Ted Mielczarek2ecb2ba2016-10-24 15:16:28 -04001477 RUST_DEMANGLE_CFLAGS
1478 Compiler flags for rust-demangle
1479 RUST_DEMANGLE_LIBS
1480 Linker flags for rust-demangle
brynercb91a2f2006-08-25 21:14:45 +00001481
1482Use these variables to override the choices made by `configure' or to help
1483it to find libraries and programs with nonstandard names/locations.
1484
thestig@chromium.org43e6db72010-11-08 19:49:41 +00001485Report bugs to <google-breakpad-dev@googlegroups.com>.
brynercb91a2f2006-08-25 21:14:45 +00001486_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001487ac_status=$?
brynercb91a2f2006-08-25 21:14:45 +00001488fi
1489
1490if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
brynercb91a2f2006-08-25 21:14:45 +00001492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jimblandy92b1f832009-12-23 22:23:49 +00001493 test -d "$ac_dir" ||
1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495 continue
brynercb91a2f2006-08-25 21:14:45 +00001496 ac_builddir=.
1497
mmentovai8c2a4de2006-09-20 16:20:15 +00001498case "$ac_dir" in
1499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500*)
jimblandy92b1f832009-12-23 22:23:49 +00001501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001502 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +00001503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 esac ;;
1508esac
1509ac_abs_top_builddir=$ac_pwd
1510ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511# for backward compatibility:
1512ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00001513
1514case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00001515 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00001516 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00001517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00001520 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00001521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1523 *) # Relative name.
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00001527esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00001529
mmentovai8c2a4de2006-09-20 16:20:15 +00001530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure" --help=recursive
brynercb91a2f2006-08-25 21:14:45 +00001538 else
jimblandy92b1f832009-12-23 22:23:49 +00001539 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mmentovai8c2a4de2006-09-20 16:20:15 +00001540 fi || ac_status=$?
1541 cd "$ac_pwd" || { ac_status=$?; break; }
brynercb91a2f2006-08-25 21:14:45 +00001542 done
1543fi
1544
mmentovai8c2a4de2006-09-20 16:20:15 +00001545test -n "$ac_init_help" && exit $ac_status
brynercb91a2f2006-08-25 21:14:45 +00001546if $ac_init_version; then
1547 cat <<\_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001548breakpad configure 0.1
mark@chromium.orge9165f42013-11-23 01:45:20 +00001549generated by GNU Autoconf 2.69
brynercb91a2f2006-08-25 21:14:45 +00001550
mark@chromium.orge9165f42013-11-23 01:45:20 +00001551Copyright (C) 2012 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00001552This configure script is free software; the Free Software Foundation
1553gives unlimited permission to copy, distribute and modify it.
1554_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001555 exit
brynercb91a2f2006-08-25 21:14:45 +00001556fi
jimblandy92b1f832009-12-23 22:23:49 +00001557
1558## ------------------------ ##
1559## Autoconf initialization. ##
1560## ------------------------ ##
1561
1562# ac_fn_c_try_compile LINENO
1563# --------------------------
1564# Try to compile conftest.$ac_ext, and return whether this succeeded.
1565ac_fn_c_try_compile ()
1566{
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext
1569 if { { ac_try="$ac_compile"
1570case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575$as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_compile") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1582 fi
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest.$ac_objext; then :
1588 ac_retval=0
1589else
1590 $as_echo "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
1593 ac_retval=1
1594fi
mark@chromium.orge9165f42013-11-23 01:45:20 +00001595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
jimblandydc4029a2010-02-02 17:39:51 +00001596 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001597
1598} # ac_fn_c_try_compile
1599
1600# ac_fn_c_try_cpp LINENO
1601# ----------------------
1602# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1603ac_fn_c_try_cpp ()
1604{
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if { { ac_try="$ac_cpp conftest.$ac_ext"
1607case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610esac
1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612$as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1614 ac_status=$?
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1619 fi
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
mark@chromium.orge9165f42013-11-23 01:45:20 +00001621 test $ac_status = 0; } > conftest.i && {
jimblandy92b1f832009-12-23 22:23:49 +00001622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 }; then :
1625 ac_retval=0
1626else
1627 $as_echo "$as_me: failed program was:" >&5
1628sed 's/^/| /' conftest.$ac_ext >&5
1629
1630 ac_retval=1
1631fi
mark@chromium.orge9165f42013-11-23 01:45:20 +00001632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
jimblandydc4029a2010-02-02 17:39:51 +00001633 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001634
1635} # ac_fn_c_try_cpp
1636
1637# ac_fn_cxx_try_compile LINENO
1638# ----------------------------
1639# Try to compile conftest.$ac_ext, and return whether this succeeded.
1640ac_fn_cxx_try_compile ()
1641{
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 rm -f conftest.$ac_objext
1644 if { { ac_try="$ac_compile"
1645case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648esac
1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650$as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_compile") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1657 fi
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && {
1660 test -z "$ac_cxx_werror_flag" ||
1661 test ! -s conftest.err
1662 } && test -s conftest.$ac_objext; then :
1663 ac_retval=0
1664else
1665 $as_echo "$as_me: failed program was:" >&5
1666sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1
1669fi
mark@chromium.orge9165f42013-11-23 01:45:20 +00001670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
jimblandydc4029a2010-02-02 17:39:51 +00001671 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001672
1673} # ac_fn_cxx_try_compile
1674
ted.mielczarekd192a712010-10-05 19:38:51 +00001675# ac_fn_c_try_run LINENO
1676# ----------------------
1677# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678# that executables *can* be run.
1679ac_fn_c_try_run ()
1680{
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_link"
1683case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>&5
1690 ac_status=$?
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693 { { case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_try") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; }; }; then :
1703 ac_retval=0
1704else
1705 $as_echo "$as_me: program exited with status $ac_status" >&5
1706 $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=$ac_status
1710fi
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
mark@chromium.orge9165f42013-11-23 01:45:20 +00001712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
ted.mielczarekd192a712010-10-05 19:38:51 +00001713 as_fn_set_status $ac_retval
1714
1715} # ac_fn_c_try_run
1716
jimblandy92b1f832009-12-23 22:23:49 +00001717# ac_fn_c_try_link LINENO
1718# -----------------------
1719# Try to link conftest.$ac_ext, and return whether this succeeded.
1720ac_fn_c_try_link ()
1721{
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext conftest$ac_exeext
1724 if { { ac_try="$ac_link"
1725case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_link") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1737 fi
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest$ac_exeext && {
1743 test "$cross_compiling" = yes ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00001744 test -x conftest$ac_exeext
jimblandy92b1f832009-12-23 22:23:49 +00001745 }; then :
1746 ac_retval=0
1747else
1748 $as_echo "$as_me: failed program was:" >&5
1749sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=1
1752fi
1753 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1754 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1755 # interfere with the next link command; also delete a directory that is
1756 # left behind by Apple's compiler. We do this before executing the actions.
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
mark@chromium.orge9165f42013-11-23 01:45:20 +00001758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
jimblandydc4029a2010-02-02 17:39:51 +00001759 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001760
1761} # ac_fn_c_try_link
1762
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001763# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1764# -------------------------------------------------------
1765# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1766# the include files in INCLUDES and setting the cache variable VAR
1767# accordingly.
1768ac_fn_c_check_header_mongrel ()
1769{
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
mark@chromium.orge9165f42013-11-23 01:45:20 +00001771 if eval \${$3+:} false; then :
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773$as_echo_n "checking for $2... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00001774if eval \${$3+:} false; then :
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001775 $as_echo_n "(cached) " >&6
1776fi
1777eval ac_res=\$$3
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779$as_echo "$ac_res" >&6; }
1780else
1781 # Is the header compilable?
1782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1783$as_echo_n "checking $2 usability... " >&6; }
1784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785/* end confdefs.h. */
1786$4
1787#include <$2>
1788_ACEOF
1789if ac_fn_c_try_compile "$LINENO"; then :
1790 ac_header_compiler=yes
1791else
1792 ac_header_compiler=no
1793fi
1794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1796$as_echo "$ac_header_compiler" >&6; }
1797
1798# Is the header present?
1799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1800$as_echo_n "checking $2 presence... " >&6; }
1801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802/* end confdefs.h. */
1803#include <$2>
1804_ACEOF
1805if ac_fn_c_try_cpp "$LINENO"; then :
1806 ac_header_preproc=yes
1807else
1808 ac_header_preproc=no
1809fi
mark@chromium.orge9165f42013-11-23 01:45:20 +00001810rm -f conftest.err conftest.i conftest.$ac_ext
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1812$as_echo "$ac_header_preproc" >&6; }
1813
1814# So? What about this header?
1815case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1816 yes:no: )
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1818$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1820$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1821 ;;
1822 no:yes:* )
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1824$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1826$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1828$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1830$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
mark@chromium.orge9165f42013-11-23 01:45:20 +00001833( $as_echo "## --------------------------------------------------- ##
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001834## Report this to google-breakpad-dev@googlegroups.com ##
mark@chromium.orge9165f42013-11-23 01:45:20 +00001835## --------------------------------------------------- ##"
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001836 ) | sed "s/^/$as_me: WARNING: /" >&2
1837 ;;
1838esac
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840$as_echo_n "checking for $2... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00001841if eval \${$3+:} false; then :
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001842 $as_echo_n "(cached) " >&6
1843else
1844 eval "$3=\$ac_header_compiler"
1845fi
1846eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848$as_echo "$ac_res" >&6; }
1849fi
mark@chromium.orge9165f42013-11-23 01:45:20 +00001850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001851
1852} # ac_fn_c_check_header_mongrel
1853
1854# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1855# -------------------------------------------------------
1856# Tests whether HEADER exists and can be compiled using the include files in
1857# INCLUDES, setting the cache variable VAR accordingly.
1858ac_fn_c_check_header_compile ()
1859{
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862$as_echo_n "checking for $2... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00001863if eval \${$3+:} false; then :
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001864 $as_echo_n "(cached) " >&6
1865else
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867/* end confdefs.h. */
1868$4
1869#include <$2>
1870_ACEOF
1871if ac_fn_c_try_compile "$LINENO"; then :
1872 eval "$3=yes"
1873else
1874 eval "$3=no"
1875fi
1876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877fi
1878eval ac_res=\$$3
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880$as_echo "$ac_res" >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00001881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001882
1883} # ac_fn_c_check_header_compile
Gabriele Sveltoa9fca582017-04-11 11:51:28 +02001884
1885# ac_fn_c_check_func LINENO FUNC VAR
1886# ----------------------------------
1887# Tests whether FUNC exists, setting the cache variable VAR accordingly
1888ac_fn_c_check_func ()
1889{
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892$as_echo_n "checking for $2... " >&6; }
1893if eval \${$3+:} false; then :
1894 $as_echo_n "(cached) " >&6
1895else
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h. */
1898/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1900#define $2 innocuous_$2
1901
1902/* System header to define __stub macros and hopefully few prototypes,
1903 which can conflict with char $2 (); below.
1904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1905 <limits.h> exists even on freestanding compilers. */
1906
1907#ifdef __STDC__
1908# include <limits.h>
1909#else
1910# include <assert.h>
1911#endif
1912
1913#undef $2
1914
1915/* Override any GCC internal prototype to avoid an error.
1916 Use char because int might match the return type of a GCC
1917 builtin and then its argument prototype would still apply. */
1918#ifdef __cplusplus
1919extern "C"
1920#endif
1921char $2 ();
1922/* The GNU C library defines this for functions which it implements
1923 to always fail with ENOSYS. Some functions are actually named
1924 something starting with __ and the normal name is an alias. */
1925#if defined __stub_$2 || defined __stub___$2
1926choke me
1927#endif
1928
1929int
1930main ()
1931{
1932return $2 ();
1933 ;
1934 return 0;
1935}
1936_ACEOF
1937if ac_fn_c_try_link "$LINENO"; then :
1938 eval "$3=yes"
1939else
1940 eval "$3=no"
1941fi
1942rm -f core conftest.err conftest.$ac_objext \
1943 conftest$ac_exeext conftest.$ac_ext
1944fi
1945eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947$as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949
1950} # ac_fn_c_check_func
mmentovai8c2a4de2006-09-20 16:20:15 +00001951cat >config.log <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00001952This file contains any messages produced by compilers while
1953running configure, to aid debugging if configure makes a mistake.
1954
mmentovaie5dc6082007-02-14 19:51:05 +00001955It was created by breakpad $as_me 0.1, which was
mark@chromium.orge9165f42013-11-23 01:45:20 +00001956generated by GNU Autoconf 2.69. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00001957
1958 $ $0 $@
1959
1960_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001961exec 5>>config.log
brynercb91a2f2006-08-25 21:14:45 +00001962{
1963cat <<_ASUNAME
1964## --------- ##
1965## Platform. ##
1966## --------- ##
1967
1968hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1969uname -m = `(uname -m) 2>/dev/null || echo unknown`
1970uname -r = `(uname -r) 2>/dev/null || echo unknown`
1971uname -s = `(uname -s) 2>/dev/null || echo unknown`
1972uname -v = `(uname -v) 2>/dev/null || echo unknown`
1973
1974/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1975/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1976
1977/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1978/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1979/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mmentovai8c2a4de2006-09-20 16:20:15 +00001980/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
brynercb91a2f2006-08-25 21:14:45 +00001981/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1982/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1983/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1984
1985_ASUNAME
1986
1987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988for as_dir in $PATH
1989do
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00001992 $as_echo "PATH: $as_dir"
1993 done
mmentovai8c2a4de2006-09-20 16:20:15 +00001994IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00001995
1996} >&5
1997
1998cat >&5 <<_ACEOF
1999
2000
2001## ----------- ##
2002## Core tests. ##
2003## ----------- ##
2004
2005_ACEOF
2006
2007
2008# Keep a trace of the command line.
2009# Strip out --no-create and --no-recursion so they do not pile up.
2010# Strip out --silent because we don't want to record it for future runs.
2011# Also quote any args containing shell meta-characters.
2012# Make two passes to allow for proper duplicate-argument suppression.
2013ac_configure_args=
2014ac_configure_args0=
2015ac_configure_args1=
brynercb91a2f2006-08-25 21:14:45 +00002016ac_must_keep_next=false
2017for ac_pass in 1 2
2018do
2019 for ac_arg
2020 do
2021 case $ac_arg in
2022 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2024 | -silent | --silent | --silen | --sile | --sil)
2025 continue ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002026 *\'*)
jimblandy92b1f832009-12-23 22:23:49 +00002027 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00002028 esac
2029 case $ac_pass in
jimblandy92b1f832009-12-23 22:23:49 +00002030 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00002031 2)
jimblandy92b1f832009-12-23 22:23:49 +00002032 as_fn_append ac_configure_args1 " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00002033 if test $ac_must_keep_next = true; then
2034 ac_must_keep_next=false # Got value, back to normal.
2035 else
2036 case $ac_arg in
2037 *=* | --config-cache | -C | -disable-* | --disable-* \
2038 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2039 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2040 | -with-* | --with-* | -without-* | --without-* | --x)
2041 case "$ac_configure_args0 " in
2042 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2043 esac
2044 ;;
2045 -* ) ac_must_keep_next=true ;;
2046 esac
2047 fi
jimblandy92b1f832009-12-23 22:23:49 +00002048 as_fn_append ac_configure_args " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00002049 ;;
2050 esac
2051 done
2052done
jimblandy92b1f832009-12-23 22:23:49 +00002053{ ac_configure_args0=; unset ac_configure_args0;}
2054{ ac_configure_args1=; unset ac_configure_args1;}
brynercb91a2f2006-08-25 21:14:45 +00002055
2056# When interrupted or exit'd, cleanup temporary files, and complete
2057# config.log. We remove comments because anyway the quotes in there
2058# would cause problems or look ugly.
mmentovai8c2a4de2006-09-20 16:20:15 +00002059# WARNING: Use '\'' to represent an apostrophe within the trap.
2060# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
brynercb91a2f2006-08-25 21:14:45 +00002061trap 'exit_status=$?
2062 # Save into config.log some information that might help in debugging.
2063 {
2064 echo
2065
mark@chromium.orge9165f42013-11-23 01:45:20 +00002066 $as_echo "## ---------------- ##
brynercb91a2f2006-08-25 21:14:45 +00002067## Cache variables. ##
mark@chromium.orge9165f42013-11-23 01:45:20 +00002068## ---------------- ##"
brynercb91a2f2006-08-25 21:14:45 +00002069 echo
2070 # The following way of writing the cache mishandles newlines in values,
mmentovai8c2a4de2006-09-20 16:20:15 +00002071(
2072 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2073 eval ac_val=\$$ac_var
2074 case $ac_val in #(
2075 *${as_nl}*)
2076 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +00002077 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2078$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002079 esac
2080 case $ac_var in #(
2081 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +00002082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2083 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002084 esac ;;
2085 esac
2086 done
brynercb91a2f2006-08-25 21:14:45 +00002087 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00002088 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2089 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +00002090 sed -n \
mmentovai8c2a4de2006-09-20 16:20:15 +00002091 "s/'\''/'\''\\\\'\'''\''/g;
2092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2093 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00002094 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00002095 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00002096 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002097 esac |
2098 sort
2099)
brynercb91a2f2006-08-25 21:14:45 +00002100 echo
2101
mark@chromium.orge9165f42013-11-23 01:45:20 +00002102 $as_echo "## ----------------- ##
brynercb91a2f2006-08-25 21:14:45 +00002103## Output variables. ##
mark@chromium.orge9165f42013-11-23 01:45:20 +00002104## ----------------- ##"
brynercb91a2f2006-08-25 21:14:45 +00002105 echo
2106 for ac_var in $ac_subst_vars
2107 do
mmentovai8c2a4de2006-09-20 16:20:15 +00002108 eval ac_val=\$$ac_var
2109 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00002110 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002111 esac
jimblandy92b1f832009-12-23 22:23:49 +00002112 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00002113 done | sort
2114 echo
2115
2116 if test -n "$ac_subst_files"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00002117 $as_echo "## ------------------- ##
mmentovai8c2a4de2006-09-20 16:20:15 +00002118## File substitutions. ##
mark@chromium.orge9165f42013-11-23 01:45:20 +00002119## ------------------- ##"
brynercb91a2f2006-08-25 21:14:45 +00002120 echo
2121 for ac_var in $ac_subst_files
2122 do
mmentovai8c2a4de2006-09-20 16:20:15 +00002123 eval ac_val=\$$ac_var
2124 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00002125 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002126 esac
jimblandy92b1f832009-12-23 22:23:49 +00002127 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00002128 done | sort
2129 echo
2130 fi
2131
2132 if test -s confdefs.h; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00002133 $as_echo "## ----------- ##
brynercb91a2f2006-08-25 21:14:45 +00002134## confdefs.h. ##
mark@chromium.orge9165f42013-11-23 01:45:20 +00002135## ----------- ##"
brynercb91a2f2006-08-25 21:14:45 +00002136 echo
mmentovai8c2a4de2006-09-20 16:20:15 +00002137 cat confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00002138 echo
2139 fi
2140 test "$ac_signal" != 0 &&
jimblandy92b1f832009-12-23 22:23:49 +00002141 $as_echo "$as_me: caught signal $ac_signal"
2142 $as_echo "$as_me: exit $exit_status"
brynercb91a2f2006-08-25 21:14:45 +00002143 } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00002144 rm -f core *.core core.conftest.* &&
2145 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
brynercb91a2f2006-08-25 21:14:45 +00002146 exit $exit_status
mmentovai8c2a4de2006-09-20 16:20:15 +00002147' 0
brynercb91a2f2006-08-25 21:14:45 +00002148for ac_signal in 1 2 13 15; do
jimblandy92b1f832009-12-23 22:23:49 +00002149 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
brynercb91a2f2006-08-25 21:14:45 +00002150done
2151ac_signal=0
2152
2153# confdefs.h avoids OS command line length limits that DEFS can exceed.
mmentovai8c2a4de2006-09-20 16:20:15 +00002154rm -f -r conftest* confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00002155
jimblandy92b1f832009-12-23 22:23:49 +00002156$as_echo "/* confdefs.h */" > confdefs.h
2157
brynercb91a2f2006-08-25 21:14:45 +00002158# Predefined preprocessor variables.
2159
2160cat >>confdefs.h <<_ACEOF
2161#define PACKAGE_NAME "$PACKAGE_NAME"
2162_ACEOF
2163
brynercb91a2f2006-08-25 21:14:45 +00002164cat >>confdefs.h <<_ACEOF
2165#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2166_ACEOF
2167
brynercb91a2f2006-08-25 21:14:45 +00002168cat >>confdefs.h <<_ACEOF
2169#define PACKAGE_VERSION "$PACKAGE_VERSION"
2170_ACEOF
2171
brynercb91a2f2006-08-25 21:14:45 +00002172cat >>confdefs.h <<_ACEOF
2173#define PACKAGE_STRING "$PACKAGE_STRING"
2174_ACEOF
2175
brynercb91a2f2006-08-25 21:14:45 +00002176cat >>confdefs.h <<_ACEOF
2177#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2178_ACEOF
2179
jimblandy92b1f832009-12-23 22:23:49 +00002180cat >>confdefs.h <<_ACEOF
2181#define PACKAGE_URL "$PACKAGE_URL"
2182_ACEOF
2183
brynercb91a2f2006-08-25 21:14:45 +00002184
2185# Let the site file select an alternate cache file if it wants to.
jimblandy92b1f832009-12-23 22:23:49 +00002186# Prefer an explicitly selected file to automatically selected ones.
2187ac_site_file1=NONE
2188ac_site_file2=NONE
mmentovai8c2a4de2006-09-20 16:20:15 +00002189if test -n "$CONFIG_SITE"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00002190 # We do not want a PATH search for config.site.
2191 case $CONFIG_SITE in #((
2192 -*) ac_site_file1=./$CONFIG_SITE;;
2193 */*) ac_site_file1=$CONFIG_SITE;;
2194 *) ac_site_file1=./$CONFIG_SITE;;
2195 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00002196elif test "x$prefix" != xNONE; then
jimblandy92b1f832009-12-23 22:23:49 +00002197 ac_site_file1=$prefix/share/config.site
2198 ac_site_file2=$prefix/etc/config.site
mmentovai8c2a4de2006-09-20 16:20:15 +00002199else
jimblandy92b1f832009-12-23 22:23:49 +00002200 ac_site_file1=$ac_default_prefix/share/config.site
2201 ac_site_file2=$ac_default_prefix/etc/config.site
brynercb91a2f2006-08-25 21:14:45 +00002202fi
jimblandy92b1f832009-12-23 22:23:49 +00002203for ac_site_file in "$ac_site_file1" "$ac_site_file2"
mmentovai8c2a4de2006-09-20 16:20:15 +00002204do
jimblandy92b1f832009-12-23 22:23:49 +00002205 test "x$ac_site_file" = xNONE && continue
jimblandydc4029a2010-02-02 17:39:51 +00002206 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002207 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2208$as_echo "$as_me: loading site script $ac_site_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002209 sed 's/^/| /' "$ac_site_file" >&5
mark@chromium.orge9165f42013-11-23 01:45:20 +00002210 . "$ac_site_file" \
2211 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213as_fn_error $? "failed to load site script $ac_site_file
2214See \`config.log' for more details" "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00002215 fi
2216done
2217
2218if test -r "$cache_file"; then
jimblandydc4029a2010-02-02 17:39:51 +00002219 # Some versions of bash will fail to source /dev/null (special files
2220 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2221 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002222 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2223$as_echo "$as_me: loading cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002224 case $cache_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002225 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2226 *) . "./$cache_file";;
brynercb91a2f2006-08-25 21:14:45 +00002227 esac
2228 fi
2229else
jimblandy92b1f832009-12-23 22:23:49 +00002230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2231$as_echo "$as_me: creating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002232 >$cache_file
2233fi
2234
2235# Check that the precious variables saved in the cache have kept the same
2236# value.
2237ac_cache_corrupted=false
mmentovai8c2a4de2006-09-20 16:20:15 +00002238for ac_var in $ac_precious_vars; do
brynercb91a2f2006-08-25 21:14:45 +00002239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2240 eval ac_new_set=\$ac_env_${ac_var}_set
mmentovai8c2a4de2006-09-20 16:20:15 +00002241 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2242 eval ac_new_val=\$ac_env_${ac_var}_value
brynercb91a2f2006-08-25 21:14:45 +00002243 case $ac_old_set,$ac_new_set in
2244 set,)
jimblandy92b1f832009-12-23 22:23:49 +00002245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2246$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002247 ac_cache_corrupted=: ;;
2248 ,set)
jimblandy92b1f832009-12-23 22:23:49 +00002249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2250$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002251 ac_cache_corrupted=: ;;
2252 ,);;
2253 *)
2254 if test "x$ac_old_val" != "x$ac_new_val"; then
jimblandy92b1f832009-12-23 22:23:49 +00002255 # differences in whitespace do not lead to failure.
2256 ac_old_val_w=`echo x $ac_old_val`
2257 ac_new_val_w=`echo x $ac_new_val`
2258 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2260$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2261 ac_cache_corrupted=:
2262 else
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2264$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2265 eval $ac_var=\$ac_old_val
2266 fi
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2268$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2270$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002271 fi;;
2272 esac
2273 # Pass precious variables to config.status.
2274 if test "$ac_new_set" = set; then
2275 case $ac_new_val in
jimblandy92b1f832009-12-23 22:23:49 +00002276 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00002277 *) ac_arg=$ac_var=$ac_new_val ;;
2278 esac
2279 case " $ac_configure_args " in
2280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jimblandy92b1f832009-12-23 22:23:49 +00002281 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00002282 esac
2283 fi
2284done
2285if $ac_cache_corrupted; then
jimblandy92b1f832009-12-23 22:23:49 +00002286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2289$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
mark@chromium.orge9165f42013-11-23 01:45:20 +00002290 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002291fi
jimblandy92b1f832009-12-23 22:23:49 +00002292## -------------------- ##
2293## Main body of script. ##
2294## -------------------- ##
mmentovai8c2a4de2006-09-20 16:20:15 +00002295
brynercb91a2f2006-08-25 21:14:45 +00002296ac_ext=c
2297ac_cpp='$CPP $CPPFLAGS'
2298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300ac_compiler_gnu=$ac_cv_c_compiler_gnu
2301
2302
2303
brynercb91a2f2006-08-25 21:14:45 +00002304ac_aux_dir=
mmentovai8c2a4de2006-09-20 16:20:15 +00002305for ac_dir in autotools "$srcdir"/autotools; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00002306 if test -f "$ac_dir/install-sh"; then
2307 ac_aux_dir=$ac_dir
2308 ac_install_sh="$ac_aux_dir/install-sh -c"
2309 break
2310 elif test -f "$ac_dir/install.sh"; then
2311 ac_aux_dir=$ac_dir
2312 ac_install_sh="$ac_aux_dir/install.sh -c"
2313 break
2314 elif test -f "$ac_dir/shtool"; then
2315 ac_aux_dir=$ac_dir
2316 ac_install_sh="$ac_aux_dir/shtool install -c"
2317 break
2318 fi
brynercb91a2f2006-08-25 21:14:45 +00002319done
2320if test -z "$ac_aux_dir"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00002321 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002322fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002323
2324# These three variables are undocumented and unsupported,
2325# and are intended to be withdrawn in a future Autoconf release.
2326# They can cause serious problems if a builder's source tree is in a directory
2327# whose full name contains unusual characters.
2328ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2329ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2330ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2331
brynercb91a2f2006-08-25 21:14:45 +00002332
mmentovai425d2562006-08-30 20:05:05 +00002333
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002334# Make sure we can run config.sub.
2335$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00002336 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002337
2338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2339$as_echo_n "checking build system type... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00002340if ${ac_cv_build+:} false; then :
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002341 $as_echo_n "(cached) " >&6
2342else
2343 ac_build_alias=$build_alias
2344test "x$ac_build_alias" = x &&
2345 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2346test "x$ac_build_alias" = x &&
mark@chromium.orge9165f42013-11-23 01:45:20 +00002347 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002348ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00002349 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002350
2351fi
2352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2353$as_echo "$ac_cv_build" >&6; }
2354case $ac_cv_build in
2355*-*-*) ;;
mark@chromium.orge9165f42013-11-23 01:45:20 +00002356*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002357esac
2358build=$ac_cv_build
2359ac_save_IFS=$IFS; IFS='-'
2360set x $ac_cv_build
2361shift
2362build_cpu=$1
2363build_vendor=$2
2364shift; shift
2365# Remember, the first character of IFS is used to create $*,
2366# except with old shells:
2367build_os=$*
2368IFS=$ac_save_IFS
2369case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2370
2371
2372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2373$as_echo_n "checking host system type... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00002374if ${ac_cv_host+:} false; then :
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002375 $as_echo_n "(cached) " >&6
2376else
2377 if test "x$host_alias" = x; then
2378 ac_cv_host=$ac_cv_build
2379else
2380 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00002381 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002382fi
2383
2384fi
2385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2386$as_echo "$ac_cv_host" >&6; }
2387case $ac_cv_host in
2388*-*-*) ;;
mark@chromium.orge9165f42013-11-23 01:45:20 +00002389*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002390esac
2391host=$ac_cv_host
2392ac_save_IFS=$IFS; IFS='-'
2393set x $ac_cv_host
2394shift
2395host_cpu=$1
2396host_vendor=$2
2397shift; shift
2398# Remember, the first character of IFS is used to create $*,
2399# except with old shells:
2400host_os=$*
2401IFS=$ac_save_IFS
2402case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2403
2404
2405
ted.mielczarek@gmail.com591ba322015-08-13 16:38:19 +00002406am__api_version='1.15'
mmentovaiaf3c43f2007-05-17 18:34:37 +00002407
brynercb91a2f2006-08-25 21:14:45 +00002408# Find a good install program. We prefer a C program (faster),
2409# so one script is as good as another. But avoid the broken or
2410# incompatible versions:
2411# SysV /etc/install, /usr/sbin/install
2412# SunOS /usr/etc/install
2413# IRIX /sbin/install
2414# AIX /bin/install
2415# AmigaOS /C/install, which installs bootblocks on floppy discs
2416# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2417# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2418# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2419# OS/2's system install, which has a completely different semantic
2420# ./install, which can be erroneously created by make from ./install.sh.
jimblandy92b1f832009-12-23 22:23:49 +00002421# Reject install programs that cannot install multiple files.
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2423$as_echo_n "checking for a BSD-compatible install... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002424if test -z "$INSTALL"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00002425if ${ac_cv_path_install+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00002426 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002427else
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429for as_dir in $PATH
2430do
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002433 # Account for people who put trailing slashes in PATH elements.
2434case $as_dir/ in #((
2435 ./ | .// | /[cC]/* | \
brynercb91a2f2006-08-25 21:14:45 +00002436 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jimblandy92b1f832009-12-23 22:23:49 +00002437 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
brynercb91a2f2006-08-25 21:14:45 +00002438 /usr/ucb/* ) ;;
2439 *)
2440 # OSF1 and SCO ODT 3.0 have their own names for install.
2441 # Don't use installbsd from OSF since it installs stuff as root
2442 # by default.
2443 for ac_prog in ginstall scoinst install; do
2444 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00002445 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
brynercb91a2f2006-08-25 21:14:45 +00002446 if test $ac_prog = install &&
2447 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2448 # AIX install. It has an incompatible calling convention.
2449 :
2450 elif test $ac_prog = install &&
2451 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2452 # program-specific install script used by HP pwplus--don't use.
2453 :
2454 else
jimblandy92b1f832009-12-23 22:23:49 +00002455 rm -rf conftest.one conftest.two conftest.dir
2456 echo one > conftest.one
2457 echo two > conftest.two
2458 mkdir conftest.dir
2459 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2460 test -s conftest.one && test -s conftest.two &&
2461 test -s conftest.dir/conftest.one &&
2462 test -s conftest.dir/conftest.two
2463 then
2464 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2465 break 3
2466 fi
brynercb91a2f2006-08-25 21:14:45 +00002467 fi
2468 fi
2469 done
2470 done
2471 ;;
2472esac
jimblandy92b1f832009-12-23 22:23:49 +00002473
2474 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002475IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002476
jimblandy92b1f832009-12-23 22:23:49 +00002477rm -rf conftest.one conftest.two conftest.dir
brynercb91a2f2006-08-25 21:14:45 +00002478
2479fi
2480 if test "${ac_cv_path_install+set}" = set; then
2481 INSTALL=$ac_cv_path_install
2482 else
mmentovai8c2a4de2006-09-20 16:20:15 +00002483 # As a last resort, use the slow shell script. Don't cache a
2484 # value for INSTALL within a source directory, because that will
brynercb91a2f2006-08-25 21:14:45 +00002485 # break other packages using the cache if that directory is
mmentovai8c2a4de2006-09-20 16:20:15 +00002486 # removed, or if the value is a relative name.
brynercb91a2f2006-08-25 21:14:45 +00002487 INSTALL=$ac_install_sh
2488 fi
2489fi
jimblandy92b1f832009-12-23 22:23:49 +00002490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2491$as_echo "$INSTALL" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002492
2493# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2494# It thinks the first close brace ends the variable substitution.
2495test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2496
2497test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2498
2499test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2500
jimblandy92b1f832009-12-23 22:23:49 +00002501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2502$as_echo_n "checking whether build environment is sane... " >&6; }
jimblandy92b1f832009-12-23 22:23:49 +00002503# Reject unsafe characters in $srcdir or the absolute working directory
2504# name. Accept space and tab only in the latter.
2505am_lf='
2506'
2507case `pwd` in
2508 *[\\\"\#\$\&\'\`$am_lf]*)
mark@chromium.orge9165f42013-11-23 01:45:20 +00002509 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
jimblandy92b1f832009-12-23 22:23:49 +00002510esac
2511case $srcdir in
2512 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
mark@chromium.orge9165f42013-11-23 01:45:20 +00002513 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
jimblandy92b1f832009-12-23 22:23:49 +00002514esac
2515
mark@chromium.orge9165f42013-11-23 01:45:20 +00002516# Do 'set' in a subshell so we don't clobber the current shell's
brynercb91a2f2006-08-25 21:14:45 +00002517# arguments. Must try -L first in case configure is actually a
2518# symlink; some systems play weird games with the mod time of symlinks
2519# (eg FreeBSD returns the mod time of the symlink's containing
2520# directory).
2521if (
mark@chromium.orge9165f42013-11-23 01:45:20 +00002522 am_has_slept=no
2523 for am_try in 1 2; do
2524 echo "timestamp, slept: $am_has_slept" > conftest.file
2525 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2526 if test "$*" = "X"; then
2527 # -L didn't work.
2528 set X `ls -t "$srcdir/configure" conftest.file`
2529 fi
2530 if test "$*" != "X $srcdir/configure conftest.file" \
2531 && test "$*" != "X conftest.file $srcdir/configure"; then
brynercb91a2f2006-08-25 21:14:45 +00002532
mark@chromium.orge9165f42013-11-23 01:45:20 +00002533 # If neither matched, then we have a broken ls. This can happen
2534 # if, for instance, CONFIG_SHELL is bash and it inherits a
2535 # broken ls alias from the environment. This has actually
2536 # happened. Such a system could not be considered "sane".
2537 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2538 alias in your environment" "$LINENO" 5
2539 fi
2540 if test "$2" = conftest.file || test $am_try -eq 2; then
2541 break
2542 fi
2543 # Just in case.
2544 sleep 1
2545 am_has_slept=yes
2546 done
brynercb91a2f2006-08-25 21:14:45 +00002547 test "$2" = conftest.file
2548 )
2549then
2550 # Ok.
2551 :
2552else
mark@chromium.orge9165f42013-11-23 01:45:20 +00002553 as_fn_error $? "newly created file is older than distributed files!
jimblandy92b1f832009-12-23 22:23:49 +00002554Check your system clock" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002555fi
jimblandy92b1f832009-12-23 22:23:49 +00002556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2557$as_echo "yes" >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00002558# If we didn't sleep, we still need to ensure time stamps of config.status and
2559# generated files are strictly newer.
2560am_sleep_pid=
2561if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2562 ( sleep 1 ) &
2563 am_sleep_pid=$!
2564fi
2565
2566rm -f conftest.file
2567
brynercb91a2f2006-08-25 21:14:45 +00002568test "$program_prefix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002569 program_transform_name="s&^&$program_prefix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002570# Use a double $ so make ignores it.
2571test "$program_suffix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002572 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
jimblandy92b1f832009-12-23 22:23:49 +00002573# Double any \ or $.
brynercb91a2f2006-08-25 21:14:45 +00002574# By default was `s,x,x', remove it if useless.
jimblandy92b1f832009-12-23 22:23:49 +00002575ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2576program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
brynercb91a2f2006-08-25 21:14:45 +00002577
ted.mielczarek@gmail.com591ba322015-08-13 16:38:19 +00002578# Expand $ac_aux_dir to an absolute path.
2579am_aux_dir=`cd "$ac_aux_dir" && pwd`
brynercb91a2f2006-08-25 21:14:45 +00002580
jimblandy92b1f832009-12-23 22:23:49 +00002581if test x"${MISSING+set}" != xset; then
2582 case $am_aux_dir in
2583 *\ * | *\ *)
2584 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2585 *)
2586 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2587 esac
2588fi
brynercb91a2f2006-08-25 21:14:45 +00002589# Use eval to expand $SHELL
mark@chromium.orge9165f42013-11-23 01:45:20 +00002590if eval "$MISSING --is-lightweight"; then
2591 am_missing_run="$MISSING "
brynercb91a2f2006-08-25 21:14:45 +00002592else
2593 am_missing_run=
mark@chromium.orge9165f42013-11-23 01:45:20 +00002594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2595$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002596fi
2597
ted.mielczarek@gmail.com591ba322015-08-13 16:38:19 +00002598if test x"${install_sh+set}" != xset; then
jimblandy92b1f832009-12-23 22:23:49 +00002599 case $am_aux_dir in
2600 *\ * | *\ *)
2601 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2602 *)
2603 install_sh="\${SHELL} $am_aux_dir/install-sh"
2604 esac
2605fi
2606
mark@chromium.orge9165f42013-11-23 01:45:20 +00002607# Installed binaries are usually stripped using 'strip' when the user
2608# run "make install-strip". However 'strip' might not be the right
jimblandy92b1f832009-12-23 22:23:49 +00002609# tool to use in cross-compilation environments, therefore Automake
mark@chromium.orge9165f42013-11-23 01:45:20 +00002610# will honor the 'STRIP' environment variable to overrule this program.
jimblandy92b1f832009-12-23 22:23:49 +00002611if test "$cross_compiling" != no; then
2612 if test -n "$ac_tool_prefix"; then
2613 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2614set dummy ${ac_tool_prefix}strip; ac_word=$2
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00002617if ${ac_cv_prog_STRIP+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00002618 $as_echo_n "(cached) " >&6
2619else
2620 if test -n "$STRIP"; then
2621 ac_cv_prog_STRIP="$STRIP" # 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=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00002629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
jimblandy92b1f832009-12-23 22:23:49 +00002630 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2633 fi
2634done
2635 done
2636IFS=$as_save_IFS
2637
2638fi
2639fi
2640STRIP=$ac_cv_prog_STRIP
2641if test -n "$STRIP"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2643$as_echo "$STRIP" >&6; }
2644else
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646$as_echo "no" >&6; }
2647fi
2648
2649
2650fi
2651if test -z "$ac_cv_prog_STRIP"; then
2652 ac_ct_STRIP=$STRIP
2653 # Extract the first word of "strip", so it can be a program name with args.
2654set dummy strip; ac_word=$2
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00002657if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00002658 $as_echo_n "(cached) " >&6
2659else
2660 if test -n "$ac_ct_STRIP"; then
2661 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2662else
2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664for as_dir in $PATH
2665do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00002669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
jimblandy92b1f832009-12-23 22:23:49 +00002670 ac_cv_prog_ac_ct_STRIP="strip"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674done
2675 done
2676IFS=$as_save_IFS
2677
2678fi
2679fi
2680ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2681if test -n "$ac_ct_STRIP"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2683$as_echo "$ac_ct_STRIP" >&6; }
2684else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686$as_echo "no" >&6; }
2687fi
2688
2689 if test "x$ac_ct_STRIP" = x; then
2690 STRIP=":"
2691 else
2692 case $cross_compiling:$ac_tool_warned in
2693yes:)
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2696ac_tool_warned=yes ;;
2697esac
2698 STRIP=$ac_ct_STRIP
2699 fi
2700else
2701 STRIP="$ac_cv_prog_STRIP"
2702fi
2703
2704fi
2705INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2706
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2708$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002709if test -z "$MKDIR_P"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00002710 if ${ac_cv_path_mkdir+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00002711 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002712else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2715do
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002718 for ac_prog in mkdir gmkdir; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002719 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00002720 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
mmentovaiaf3c43f2007-05-17 18:34:37 +00002721 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2722 'mkdir (GNU coreutils) '* | \
2723 'mkdir (coreutils) '* | \
2724 'mkdir (fileutils) '4.1*)
2725 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2726 break 3;;
2727 esac
2728 done
2729 done
jimblandy92b1f832009-12-23 22:23:49 +00002730 done
mmentovaiaf3c43f2007-05-17 18:34:37 +00002731IFS=$as_save_IFS
2732
2733fi
2734
jimblandydc4029a2010-02-02 17:39:51 +00002735 test -d ./--version && rmdir ./--version
mmentovaiaf3c43f2007-05-17 18:34:37 +00002736 if test "${ac_cv_path_mkdir+set}" = set; then
2737 MKDIR_P="$ac_cv_path_mkdir -p"
brynercb91a2f2006-08-25 21:14:45 +00002738 else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002739 # As a last resort, use the slow shell script. Don't cache a
2740 # value for MKDIR_P within a source directory, because that will
2741 # break other packages using the cache if that directory is
2742 # removed, or if the value is a relative name.
mmentovaiaf3c43f2007-05-17 18:34:37 +00002743 MKDIR_P="$ac_install_sh -d"
brynercb91a2f2006-08-25 21:14:45 +00002744 fi
2745fi
jimblandy92b1f832009-12-23 22:23:49 +00002746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2747$as_echo "$MKDIR_P" >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002748
brynercb91a2f2006-08-25 21:14:45 +00002749for ac_prog in gawk mawk nawk awk
2750do
2751 # Extract the first word of "$ac_prog", so it can be a program name with args.
2752set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00002755if ${ac_cv_prog_AWK+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00002756 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002757else
2758 if test -n "$AWK"; then
2759 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2760else
2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762for as_dir in $PATH
2763do
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002766 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00002767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
brynercb91a2f2006-08-25 21:14:45 +00002768 ac_cv_prog_AWK="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00002769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002770 break 2
2771 fi
2772done
jimblandy92b1f832009-12-23 22:23:49 +00002773 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002774IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002775
2776fi
2777fi
2778AWK=$ac_cv_prog_AWK
2779if test -n "$AWK"; then
jimblandy92b1f832009-12-23 22:23:49 +00002780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2781$as_echo "$AWK" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002782else
jimblandy92b1f832009-12-23 22:23:49 +00002783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002785fi
2786
mmentovai8c2a4de2006-09-20 16:20:15 +00002787
brynercb91a2f2006-08-25 21:14:45 +00002788 test -n "$AWK" && break
2789done
2790
jimblandy92b1f832009-12-23 22:23:49 +00002791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2792$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2793set x ${MAKE-make}
2794ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
mark@chromium.orge9165f42013-11-23 01:45:20 +00002795if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00002796 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002797else
2798 cat >conftest.make <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002799SHELL = /bin/sh
brynercb91a2f2006-08-25 21:14:45 +00002800all:
mmentovai8c2a4de2006-09-20 16:20:15 +00002801 @echo '@@@%%%=$(MAKE)=@@@%%%'
brynercb91a2f2006-08-25 21:14:45 +00002802_ACEOF
mark@chromium.orge9165f42013-11-23 01:45:20 +00002803# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
mmentovai8c2a4de2006-09-20 16:20:15 +00002804case `${MAKE-make} -f conftest.make 2>/dev/null` in
2805 *@@@%%%=?*=@@@%%%*)
2806 eval ac_cv_prog_make_${ac_make}_set=yes;;
2807 *)
2808 eval ac_cv_prog_make_${ac_make}_set=no;;
2809esac
brynercb91a2f2006-08-25 21:14:45 +00002810rm -f conftest.make
2811fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002812if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00002813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2814$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002815 SET_MAKE=
2816else
jimblandy92b1f832009-12-23 22:23:49 +00002817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002819 SET_MAKE="MAKE=${MAKE-make}"
2820fi
2821
2822rm -rf .tst 2>/dev/null
2823mkdir .tst 2>/dev/null
2824if test -d .tst; then
2825 am__leading_dot=.
2826else
2827 am__leading_dot=_
2828fi
2829rmdir .tst 2>/dev/null
2830
mark@chromium.orge9165f42013-11-23 01:45:20 +00002831# Check whether --enable-silent-rules was given.
2832if test "${enable_silent_rules+set}" = set; then :
2833 enableval=$enable_silent_rules;
2834fi
2835
2836case $enable_silent_rules in # (((
2837 yes) AM_DEFAULT_VERBOSITY=0;;
2838 no) AM_DEFAULT_VERBOSITY=1;;
2839 *) AM_DEFAULT_VERBOSITY=1;;
2840esac
2841am_make=${MAKE-make}
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2843$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2844if ${am_cv_make_support_nested_variables+:} false; then :
2845 $as_echo_n "(cached) " >&6
2846else
2847 if $as_echo 'TRUE=$(BAR$(V))
2848BAR0=false
2849BAR1=true
2850V=1
2851am__doit:
2852 @$(TRUE)
2853.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2854 am_cv_make_support_nested_variables=yes
2855else
2856 am_cv_make_support_nested_variables=no
2857fi
2858fi
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2860$as_echo "$am_cv_make_support_nested_variables" >&6; }
2861if test $am_cv_make_support_nested_variables = yes; then
2862 AM_V='$(V)'
2863 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2864else
2865 AM_V=$AM_DEFAULT_VERBOSITY
2866 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2867fi
2868AM_BACKSLASH='\'
2869
mmentovaiaf3c43f2007-05-17 18:34:37 +00002870if test "`cd $srcdir && pwd`" != "`pwd`"; then
2871 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2872 # is not polluted with repeated "-I."
2873 am__isrc=' -I$(srcdir)'
2874 # test to see if srcdir already configured
2875 if test -f $srcdir/config.status; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00002876 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
mmentovaiaf3c43f2007-05-17 18:34:37 +00002877 fi
brynercb91a2f2006-08-25 21:14:45 +00002878fi
2879
2880# test whether we have cygpath
2881if test -z "$CYGPATH_W"; then
2882 if (cygpath --version) >/dev/null 2>/dev/null; then
2883 CYGPATH_W='cygpath -w'
2884 else
2885 CYGPATH_W=echo
2886 fi
2887fi
2888
2889
2890# Define the identity of the package.
mmentovaie5dc6082007-02-14 19:51:05 +00002891 PACKAGE='breakpad'
brynercb91a2f2006-08-25 21:14:45 +00002892 VERSION='0.1'
2893
2894
2895cat >>confdefs.h <<_ACEOF
2896#define PACKAGE "$PACKAGE"
2897_ACEOF
2898
2899
2900cat >>confdefs.h <<_ACEOF
2901#define VERSION "$VERSION"
2902_ACEOF
2903
2904# Some tools Automake needs.
2905
2906ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2907
2908
2909AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2910
2911
2912AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2913
2914
2915AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2916
2917
2918MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2919
mark@chromium.orge9165f42013-11-23 01:45:20 +00002920# For better backward compatibility. To be removed once Automake 1.9.x
2921# dies out for good. For more background, see:
2922# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2923# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2924mkdir_p='$(MKDIR_P)'
2925
ted.mielczarek@gmail.com591ba322015-08-13 16:38:19 +00002926# We need awk for the "check" target (and possibly the TAP driver). The
2927# system "awk" is bad on some platforms.
digit@chromium.org5bce3b42013-09-25 13:47:44 +00002928# Always define AMTAR for backward compatibility. Yes, it's still used
2929# in the wild :-( We should find a proper way to deprecate it ...
2930AMTAR='$${TAR-tar}'
brynercb91a2f2006-08-25 21:14:45 +00002931
mmentovaidb3342a2006-12-05 22:52:28 +00002932
mark@chromium.orge9165f42013-11-23 01:45:20 +00002933# We'll loop over all known methods to create a tar archive until one works.
mmentovaidb3342a2006-12-05 22:52:28 +00002934_am_tools='gnutar plaintar pax cpio none'
mark@chromium.orge9165f42013-11-23 01:45:20 +00002935
2936# The POSIX 1988 'ustar' format is defined with fixed-size fields.
2937 # There is notably a 21 bits limit for the UID and the GID. In fact,
2938 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
2939 # and bug#13588).
2940 am_max_uid=2097151 # 2^21 - 1
2941 am_max_gid=$am_max_uid
2942 # The $UID and $GID variables are not portable, so we need to resort
2943 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
2944 # below are definitely unexpected, so allow the users to see them
2945 # (that is, avoid stderr redirection).
2946 am_uid=`id -u || echo unknown`
2947 am_gid=`id -g || echo unknown`
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
2949$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
2950 if test $am_uid -le $am_max_uid; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2952$as_echo "yes" >&6; }
2953 else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955$as_echo "no" >&6; }
2956 _am_tools=none
2957 fi
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
2959$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
2960 if test $am_gid -le $am_max_gid; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2962$as_echo "yes" >&6; }
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965$as_echo "no" >&6; }
2966 _am_tools=none
2967 fi
2968
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2970$as_echo_n "checking how to create a ustar tar archive... " >&6; }
2971
2972 # Go ahead even if we have the value already cached. We do so because we
2973 # need to set the values for the 'am__tar' and 'am__untar' variables.
2974 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2975
2976 for _am_tool in $_am_tools; do
2977 case $_am_tool in
2978 gnutar)
2979 for _am_tar in tar gnutar gtar; do
2980 { echo "$as_me:$LINENO: $_am_tar --version" >&5
mmentovaidb3342a2006-12-05 22:52:28 +00002981 ($_am_tar --version) >&5 2>&5
2982 ac_status=$?
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } && break
mark@chromium.orge9165f42013-11-23 01:45:20 +00002985 done
2986 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2987 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2988 am__untar="$_am_tar -xf -"
2989 ;;
2990 plaintar)
2991 # Must skip GNU tar: if it does not support --format= it doesn't create
2992 # ustar tarball either.
2993 (tar --version) >/dev/null 2>&1 && continue
2994 am__tar='tar chf - "$$tardir"'
2995 am__tar_='tar chf - "$tardir"'
2996 am__untar='tar xf -'
2997 ;;
2998 pax)
2999 am__tar='pax -L -x ustar -w "$$tardir"'
3000 am__tar_='pax -L -x ustar -w "$tardir"'
3001 am__untar='pax -r'
3002 ;;
3003 cpio)
3004 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3005 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3006 am__untar='cpio -i -H ustar -d'
3007 ;;
3008 none)
3009 am__tar=false
3010 am__tar_=false
3011 am__untar=false
3012 ;;
3013 esac
mmentovaidb3342a2006-12-05 22:52:28 +00003014
mark@chromium.orge9165f42013-11-23 01:45:20 +00003015 # If the value was cached, stop now. We just wanted to have am__tar
3016 # and am__untar set.
3017 test -n "${am_cv_prog_tar_ustar}" && break
mmentovaidb3342a2006-12-05 22:52:28 +00003018
mark@chromium.orge9165f42013-11-23 01:45:20 +00003019 # tar/untar a dummy directory, and stop if the command works.
3020 rm -rf conftest.dir
3021 mkdir conftest.dir
3022 echo GrepMe > conftest.dir/file
3023 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
mmentovaidb3342a2006-12-05 22:52:28 +00003024 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003028 rm -rf conftest.dir
3029 if test -s conftest.tar; then
3030 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
mmentovaidb3342a2006-12-05 22:52:28 +00003031 ($am__untar <conftest.tar) >&5 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003035 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3036 (cat conftest.dir/file) >&5 2>&5
3037 ac_status=$?
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }
3040 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3041 fi
3042 done
3043 rm -rf conftest.dir
mmentovaidb3342a2006-12-05 22:52:28 +00003044
mark@chromium.orge9165f42013-11-23 01:45:20 +00003045 if ${am_cv_prog_tar_ustar+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003046 $as_echo_n "(cached) " >&6
mmentovaidb3342a2006-12-05 22:52:28 +00003047else
3048 am_cv_prog_tar_ustar=$_am_tool
3049fi
3050
mark@chromium.orge9165f42013-11-23 01:45:20 +00003051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
jimblandy92b1f832009-12-23 22:23:49 +00003052$as_echo "$am_cv_prog_tar_ustar" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003053
3054
3055
3056
3057
mark@chromium.orge9165f42013-11-23 01:45:20 +00003058
3059# POSIX will say in a future version that running "rm -f" with no argument
3060# is OK; and we want to be able to make that assumption in our Makefile
3061# recipes. So use an aggressive probe to check that the usage we want is
3062# actually supported "in the wild" to an acceptable degree.
3063# See automake bug#10828.
3064# To make any issue more visible, cause the running configure to be aborted
3065# by default if the 'rm' program in use doesn't match our expectations; the
3066# user can still override this though.
3067if rm -f && rm -fr && rm -rf; then : OK; else
3068 cat >&2 <<'END'
3069Oops!
3070
3071Your 'rm' program seems unable to run without file operands specified
3072on the command line, even when the '-f' option is present. This is contrary
3073to the behaviour of most rm programs out there, and not conforming with
3074the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3075
3076Please tell bug-automake@gnu.org about your system, including the value
3077of your $PATH and any error possibly output before this message. This
3078can help us improve future automake versions.
3079
3080END
3081 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3082 echo 'Configuration will proceed anyway, since you have set the' >&2
3083 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3084 echo >&2
3085 else
3086 cat >&2 <<'END'
3087Aborting the configuration process, to ensure you take notice of the issue.
3088
3089You can download and install GNU coreutils to get an 'rm' implementation
3090that behaves properly: <http://www.gnu.org/software/coreutils/>.
3091
3092If you want to complete the configuration process using your problematic
3093'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3094to "yes", and re-run configure.
3095
3096END
3097 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3098 fi
3099fi
ted.mielczarek@gmail.com591ba322015-08-13 16:38:19 +00003100
mmentovai8c2a4de2006-09-20 16:20:15 +00003101ac_config_headers="$ac_config_headers src/config.h"
brynercb91a2f2006-08-25 21:14:45 +00003102
3103
ted.mielczarek@gmail.com07bb2312013-12-10 12:28:11 +00003104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3105$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3106 # Check whether --enable-maintainer-mode was given.
3107if test "${enable_maintainer_mode+set}" = set; then :
3108 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3109else
3110 USE_MAINTAINER_MODE=no
3111fi
3112
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3114$as_echo "$USE_MAINTAINER_MODE" >&6; }
3115 if test $USE_MAINTAINER_MODE = yes; then
3116 MAINTAINER_MODE_TRUE=
3117 MAINTAINER_MODE_FALSE='#'
3118else
3119 MAINTAINER_MODE_TRUE='#'
3120 MAINTAINER_MODE_FALSE=
3121fi
3122
3123 MAINT=$MAINTAINER_MODE_TRUE
3124
3125
3126
digit@chromium.org7e3c5382012-08-31 18:38:29 +00003127DEPDIR="${am__leading_dot}deps"
3128
3129ac_config_commands="$ac_config_commands depfiles"
3130
3131
3132am_make=${MAKE-make}
3133cat > confinc << 'END'
3134am__doit:
3135 @echo this is the am__doit target
3136.PHONY: am__doit
3137END
3138# If we don't find an include directive, just comment out the code.
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3140$as_echo_n "checking for style of include used by $am_make... " >&6; }
3141am__include="#"
3142am__quote=
3143_am_result=none
3144# First try GNU make style include.
3145echo "include confinc" > confmf
mark@chromium.orge9165f42013-11-23 01:45:20 +00003146# Ignore all kinds of additional output from 'make'.
digit@chromium.org7e3c5382012-08-31 18:38:29 +00003147case `$am_make -s -f confmf 2> /dev/null` in #(
3148*the\ am__doit\ target*)
3149 am__include=include
3150 am__quote=
3151 _am_result=GNU
3152 ;;
3153esac
3154# Now try BSD make style include.
3155if test "$am__include" = "#"; then
3156 echo '.include "confinc"' > confmf
3157 case `$am_make -s -f confmf 2> /dev/null` in #(
3158 *the\ am__doit\ target*)
3159 am__include=.include
3160 am__quote="\""
3161 _am_result=BSD
3162 ;;
3163 esac
3164fi
3165
3166
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3168$as_echo "$_am_result" >&6; }
3169rm -f confinc confmf
3170
3171# Check whether --enable-dependency-tracking was given.
3172if test "${enable_dependency_tracking+set}" = set; then :
3173 enableval=$enable_dependency_tracking;
3174fi
3175
3176if test "x$enable_dependency_tracking" != xno; then
3177 am_depcomp="$ac_aux_dir/depcomp"
3178 AMDEPBACKSLASH='\'
digit@chromium.org5bce3b42013-09-25 13:47:44 +00003179 am__nodep='_no'
digit@chromium.org7e3c5382012-08-31 18:38:29 +00003180fi
3181 if test "x$enable_dependency_tracking" != xno; then
3182 AMDEP_TRUE=
3183 AMDEP_FALSE='#'
3184else
3185 AMDEP_TRUE='#'
3186 AMDEP_FALSE=
3187fi
3188
3189
brynercb91a2f2006-08-25 21:14:45 +00003190ac_ext=c
3191ac_cpp='$CPP $CPPFLAGS'
3192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195if test -n "$ac_tool_prefix"; then
3196 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3197set dummy ${ac_tool_prefix}gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003200if ${ac_cv_prog_CC+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003201 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003202else
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3205else
3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH
3208do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003211 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00003212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
brynercb91a2f2006-08-25 21:14:45 +00003213 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jimblandy92b1f832009-12-23 22:23:49 +00003214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003215 break 2
3216 fi
3217done
jimblandy92b1f832009-12-23 22:23:49 +00003218 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003219IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003220
3221fi
3222fi
3223CC=$ac_cv_prog_CC
3224if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3226$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003227else
jimblandy92b1f832009-12-23 22:23:49 +00003228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003230fi
3231
mmentovai8c2a4de2006-09-20 16:20:15 +00003232
brynercb91a2f2006-08-25 21:14:45 +00003233fi
3234if test -z "$ac_cv_prog_CC"; then
3235 ac_ct_CC=$CC
3236 # Extract the first word of "gcc", so it can be a program name with args.
3237set dummy gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003240if ${ac_cv_prog_ac_ct_CC+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003241 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003242else
3243 if test -n "$ac_ct_CC"; then
3244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3245else
3246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247for as_dir in $PATH
3248do
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003251 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00003252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
brynercb91a2f2006-08-25 21:14:45 +00003253 ac_cv_prog_ac_ct_CC="gcc"
jimblandy92b1f832009-12-23 22:23:49 +00003254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003255 break 2
3256 fi
3257done
jimblandy92b1f832009-12-23 22:23:49 +00003258 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003259IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003260
3261fi
3262fi
3263ac_ct_CC=$ac_cv_prog_ac_ct_CC
3264if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3266$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003267else
jimblandy92b1f832009-12-23 22:23:49 +00003268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003270fi
3271
mmentovai8c2a4de2006-09-20 16:20:15 +00003272 if test "x$ac_ct_CC" = x; then
3273 CC=""
3274 else
3275 case $cross_compiling:$ac_tool_warned in
3276yes:)
jimblandy92b1f832009-12-23 22:23:49 +00003277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00003279ac_tool_warned=yes ;;
3280esac
3281 CC=$ac_ct_CC
3282 fi
brynercb91a2f2006-08-25 21:14:45 +00003283else
3284 CC="$ac_cv_prog_CC"
3285fi
3286
3287if test -z "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003288 if test -n "$ac_tool_prefix"; then
3289 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
brynercb91a2f2006-08-25 21:14:45 +00003290set dummy ${ac_tool_prefix}cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003293if ${ac_cv_prog_CC+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003294 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003295else
3296 if test -n "$CC"; then
3297 ac_cv_prog_CC="$CC" # Let the user override the test.
3298else
3299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH
3301do
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003304 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00003305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
brynercb91a2f2006-08-25 21:14:45 +00003306 ac_cv_prog_CC="${ac_tool_prefix}cc"
jimblandy92b1f832009-12-23 22:23:49 +00003307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003308 break 2
3309 fi
3310done
jimblandy92b1f832009-12-23 22:23:49 +00003311 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003312IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003313
3314fi
3315fi
3316CC=$ac_cv_prog_CC
3317if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3319$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003320else
jimblandy92b1f832009-12-23 22:23:49 +00003321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003323fi
3324
mmentovai8c2a4de2006-09-20 16:20:15 +00003325
brynercb91a2f2006-08-25 21:14:45 +00003326 fi
brynercb91a2f2006-08-25 21:14:45 +00003327fi
3328if test -z "$CC"; then
3329 # Extract the first word of "cc", so it can be a program name with args.
3330set dummy cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003333if ${ac_cv_prog_CC+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003334 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003335else
3336 if test -n "$CC"; then
3337 ac_cv_prog_CC="$CC" # Let the user override the test.
3338else
3339 ac_prog_rejected=no
3340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341for as_dir in $PATH
3342do
3343 IFS=$as_save_IFS
3344 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003345 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00003346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
brynercb91a2f2006-08-25 21:14:45 +00003347 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3348 ac_prog_rejected=yes
3349 continue
3350 fi
3351 ac_cv_prog_CC="cc"
jimblandy92b1f832009-12-23 22:23:49 +00003352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003353 break 2
3354 fi
3355done
jimblandy92b1f832009-12-23 22:23:49 +00003356 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003357IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003358
3359if test $ac_prog_rejected = yes; then
3360 # We found a bogon in the path, so make sure we never use it.
3361 set dummy $ac_cv_prog_CC
3362 shift
3363 if test $# != 0; then
3364 # We chose a different compiler from the bogus one.
3365 # However, it has the same basename, so the bogon will be chosen
3366 # first if we set CC to just the basename; use the full file name.
3367 shift
3368 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3369 fi
3370fi
3371fi
3372fi
3373CC=$ac_cv_prog_CC
3374if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3376$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003377else
jimblandy92b1f832009-12-23 22:23:49 +00003378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003380fi
3381
mmentovai8c2a4de2006-09-20 16:20:15 +00003382
brynercb91a2f2006-08-25 21:14:45 +00003383fi
3384if test -z "$CC"; then
3385 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003386 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003387 do
3388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3389set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003392if ${ac_cv_prog_CC+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003393 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003394else
3395 if test -n "$CC"; then
3396 ac_cv_prog_CC="$CC" # Let the user override the test.
3397else
3398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399for as_dir in $PATH
3400do
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003403 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00003404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
brynercb91a2f2006-08-25 21:14:45 +00003405 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003407 break 2
3408 fi
3409done
jimblandy92b1f832009-12-23 22:23:49 +00003410 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003411IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003412
3413fi
3414fi
3415CC=$ac_cv_prog_CC
3416if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3418$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003419else
jimblandy92b1f832009-12-23 22:23:49 +00003420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003422fi
3423
mmentovai8c2a4de2006-09-20 16:20:15 +00003424
brynercb91a2f2006-08-25 21:14:45 +00003425 test -n "$CC" && break
3426 done
3427fi
3428if test -z "$CC"; then
3429 ac_ct_CC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00003430 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003431do
3432 # Extract the first word of "$ac_prog", so it can be a program name with args.
3433set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003436if ${ac_cv_prog_ac_ct_CC+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003437 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003438else
3439 if test -n "$ac_ct_CC"; then
3440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3441else
3442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443for as_dir in $PATH
3444do
3445 IFS=$as_save_IFS
3446 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003447 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00003448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
brynercb91a2f2006-08-25 21:14:45 +00003449 ac_cv_prog_ac_ct_CC="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003451 break 2
3452 fi
3453done
jimblandy92b1f832009-12-23 22:23:49 +00003454 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003455IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003456
3457fi
3458fi
3459ac_ct_CC=$ac_cv_prog_ac_ct_CC
3460if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3462$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003463else
jimblandy92b1f832009-12-23 22:23:49 +00003464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003466fi
3467
mmentovai8c2a4de2006-09-20 16:20:15 +00003468
brynercb91a2f2006-08-25 21:14:45 +00003469 test -n "$ac_ct_CC" && break
3470done
3471
mmentovai8c2a4de2006-09-20 16:20:15 +00003472 if test "x$ac_ct_CC" = x; then
3473 CC=""
3474 else
3475 case $cross_compiling:$ac_tool_warned in
3476yes:)
jimblandy92b1f832009-12-23 22:23:49 +00003477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00003479ac_tool_warned=yes ;;
3480esac
3481 CC=$ac_ct_CC
3482 fi
brynercb91a2f2006-08-25 21:14:45 +00003483fi
3484
3485fi
3486
3487
jimblandy92b1f832009-12-23 22:23:49 +00003488test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
mark@chromium.orge9165f42013-11-23 01:45:20 +00003490as_fn_error $? "no acceptable C compiler found in \$PATH
3491See \`config.log' for more details" "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003492
3493# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00003494$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3495set X $ac_compile
3496ac_compiler=$2
3497for ac_option in --version -v -V -qversion; do
3498 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00003499case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502esac
jimblandy92b1f832009-12-23 22:23:49 +00003503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504$as_echo "$ac_try_echo"; } >&5
3505 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00003506 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003507 if test -s conftest.err; then
3508 sed '10a\
3509... rest of stderr output deleted ...
3510 10q' conftest.err >conftest.er1
3511 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00003512 fi
jimblandydc4029a2010-02-02 17:39:51 +00003513 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00003514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }
3516done
brynercb91a2f2006-08-25 21:14:45 +00003517
jimblandy92b1f832009-12-23 22:23:49 +00003518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003519/* end confdefs.h. */
jimblandydc4029a2010-02-02 17:39:51 +00003520
brynercb91a2f2006-08-25 21:14:45 +00003521int
3522main ()
3523{
3524
3525 ;
3526 return 0;
3527}
3528_ACEOF
3529ac_clean_files_save=$ac_clean_files
jimblandydc4029a2010-02-02 17:39:51 +00003530ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
brynercb91a2f2006-08-25 21:14:45 +00003531# Try to create an executable without -o first, disregard a.out.
3532# It will help us diagnose broken compilers, and finding out an intuition
3533# of exeext.
jimblandydc4029a2010-02-02 17:39:51 +00003534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3535$as_echo_n "checking whether the C compiler works... " >&6; }
jimblandy92b1f832009-12-23 22:23:49 +00003536ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3537
3538# The possible output files:
3539ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3540
mmentovai8c2a4de2006-09-20 16:20:15 +00003541ac_rmfiles=
3542for ac_file in $ac_files
3543do
3544 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003546 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3547 esac
3548done
3549rm -f $ac_rmfiles
3550
jimblandy92b1f832009-12-23 22:23:49 +00003551if { { ac_try="$ac_link_default"
mmentovai8c2a4de2006-09-20 16:20:15 +00003552case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555esac
jimblandy92b1f832009-12-23 22:23:49 +00003556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003558 (eval "$ac_link_default") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003559 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003562 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3563# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3564# in a Makefile. We should not override ac_cv_exeext if it was cached,
3565# so that the user can short-circuit this test for compilers unknown to
3566# Autoconf.
mmentovaiaf3c43f2007-05-17 18:34:37 +00003567for ac_file in $ac_files ''
brynercb91a2f2006-08-25 21:14:45 +00003568do
3569 test -f "$ac_file" || continue
3570 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
brynercb91a2f2006-08-25 21:14:45 +00003572 ;;
3573 [ab].out )
3574 # We found the default executable, but exeext='' is most
3575 # certainly right.
3576 break;;
3577 *.* )
jimblandy92b1f832009-12-23 22:23:49 +00003578 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
mmentovai8c2a4de2006-09-20 16:20:15 +00003579 then :; else
3580 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3581 fi
3582 # We set ac_cv_exeext here because the later test for it is not
3583 # safe: cross compilers may not add the suffix if given an `-o'
3584 # argument, so we may need to know it at that point already.
3585 # Even if this section looks crufty: it has the advantage of
3586 # actually working.
brynercb91a2f2006-08-25 21:14:45 +00003587 break;;
3588 * )
3589 break;;
3590 esac
3591done
mmentovai8c2a4de2006-09-20 16:20:15 +00003592test "$ac_cv_exeext" = no && ac_cv_exeext=
3593
brynercb91a2f2006-08-25 21:14:45 +00003594else
mmentovaiaf3c43f2007-05-17 18:34:37 +00003595 ac_file=''
3596fi
jimblandy92b1f832009-12-23 22:23:49 +00003597if test -z "$ac_file"; then :
jimblandydc4029a2010-02-02 17:39:51 +00003598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599$as_echo "no" >&6; }
3600$as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003601sed 's/^/| /' conftest.$ac_ext >&5
3602
jimblandy92b1f832009-12-23 22:23:49 +00003603{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
mark@chromium.orge9165f42013-11-23 01:45:20 +00003605as_fn_error 77 "C compiler cannot create executables
3606See \`config.log' for more details" "$LINENO" 5; }
jimblandydc4029a2010-02-02 17:39:51 +00003607else
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3609$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003610fi
jimblandydc4029a2010-02-02 17:39:51 +00003611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3612$as_echo_n "checking for C compiler default output file name... " >&6; }
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3614$as_echo "$ac_file" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003615ac_exeext=$ac_cv_exeext
brynercb91a2f2006-08-25 21:14:45 +00003616
jimblandydc4029a2010-02-02 17:39:51 +00003617rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
brynercb91a2f2006-08-25 21:14:45 +00003618ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3620$as_echo_n "checking for suffix of executables... " >&6; }
3621if { { ac_try="$ac_link"
mmentovai8c2a4de2006-09-20 16:20:15 +00003622case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3625esac
jimblandy92b1f832009-12-23 22:23:49 +00003626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003628 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003629 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3631 test $ac_status = 0; }; then :
brynercb91a2f2006-08-25 21:14:45 +00003632 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3633# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3634# work properly (i.e., refer to `conftest.exe'), while it won't with
3635# `rm'.
3636for ac_file in conftest.exe conftest conftest.*; do
3637 test -f "$ac_file" || continue
3638 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003640 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
brynercb91a2f2006-08-25 21:14:45 +00003641 break;;
3642 * ) break;;
3643 esac
3644done
3645else
jimblandy92b1f832009-12-23 22:23:49 +00003646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
mark@chromium.orge9165f42013-11-23 01:45:20 +00003648as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3649See \`config.log' for more details" "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003650fi
jimblandydc4029a2010-02-02 17:39:51 +00003651rm -f conftest conftest$ac_cv_exeext
jimblandy92b1f832009-12-23 22:23:49 +00003652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3653$as_echo "$ac_cv_exeext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003654
3655rm -f conftest.$ac_ext
3656EXEEXT=$ac_cv_exeext
3657ac_exeext=$EXEEXT
jimblandydc4029a2010-02-02 17:39:51 +00003658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659/* end confdefs.h. */
3660#include <stdio.h>
3661int
3662main ()
3663{
3664FILE *f = fopen ("conftest.out", "w");
3665 return ferror (f) || fclose (f) != 0;
3666
3667 ;
3668 return 0;
3669}
3670_ACEOF
3671ac_clean_files="$ac_clean_files conftest.out"
3672# Check that the compiler produces executables we can run. If not, either
3673# the compiler is broken, or we cross compile.
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3675$as_echo_n "checking whether we are cross compiling... " >&6; }
3676if test "$cross_compiling" != yes; then
3677 { { ac_try="$ac_link"
3678case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681esac
3682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683$as_echo "$ac_try_echo"; } >&5
3684 (eval "$ac_link") 2>&5
3685 ac_status=$?
3686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687 test $ac_status = 0; }
3688 if { ac_try='./conftest$ac_cv_exeext'
3689 { { case "(($ac_try" in
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3692esac
3693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694$as_echo "$ac_try_echo"; } >&5
3695 (eval "$ac_try") 2>&5
3696 ac_status=$?
3697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698 test $ac_status = 0; }; }; then
3699 cross_compiling=no
3700 else
3701 if test "$cross_compiling" = maybe; then
3702 cross_compiling=yes
3703 else
3704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
mark@chromium.orge9165f42013-11-23 01:45:20 +00003706as_fn_error $? "cannot run C compiled programs.
jimblandydc4029a2010-02-02 17:39:51 +00003707If you meant to cross compile, use \`--host'.
mark@chromium.orge9165f42013-11-23 01:45:20 +00003708See \`config.log' for more details" "$LINENO" 5; }
jimblandydc4029a2010-02-02 17:39:51 +00003709 fi
3710 fi
3711fi
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3713$as_echo "$cross_compiling" >&6; }
3714
3715rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3716ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3718$as_echo_n "checking for suffix of object files... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003719if ${ac_cv_objext+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003720 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003721else
jimblandy92b1f832009-12-23 22:23:49 +00003722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003723/* end confdefs.h. */
3724
3725int
3726main ()
3727{
3728
3729 ;
3730 return 0;
3731}
3732_ACEOF
3733rm -f conftest.o conftest.obj
jimblandy92b1f832009-12-23 22:23:49 +00003734if { { ac_try="$ac_compile"
mmentovai8c2a4de2006-09-20 16:20:15 +00003735case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3738esac
jimblandy92b1f832009-12-23 22:23:49 +00003739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003741 (eval "$ac_compile") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003742 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003745 for ac_file in conftest.o conftest.obj conftest.*; do
3746 test -f "$ac_file" || continue;
brynercb91a2f2006-08-25 21:14:45 +00003747 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003749 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3750 break;;
3751 esac
3752done
3753else
jimblandy92b1f832009-12-23 22:23:49 +00003754 $as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003755sed 's/^/| /' conftest.$ac_ext >&5
3756
jimblandy92b1f832009-12-23 22:23:49 +00003757{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3758$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
mark@chromium.orge9165f42013-11-23 01:45:20 +00003759as_fn_error $? "cannot compute suffix of object files: cannot compile
3760See \`config.log' for more details" "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003761fi
brynercb91a2f2006-08-25 21:14:45 +00003762rm -f conftest.$ac_cv_objext conftest.$ac_ext
3763fi
jimblandy92b1f832009-12-23 22:23:49 +00003764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3765$as_echo "$ac_cv_objext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003766OBJEXT=$ac_cv_objext
3767ac_objext=$OBJEXT
jimblandy92b1f832009-12-23 22:23:49 +00003768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3769$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003770if ${ac_cv_c_compiler_gnu+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003771 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003772else
jimblandy92b1f832009-12-23 22:23:49 +00003773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003774/* end confdefs.h. */
3775
3776int
3777main ()
3778{
3779#ifndef __GNUC__
3780 choke me
3781#endif
3782
3783 ;
3784 return 0;
3785}
3786_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003787if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003788 ac_compiler_gnu=yes
3789else
jimblandy92b1f832009-12-23 22:23:49 +00003790 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00003791fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003793ac_cv_c_compiler_gnu=$ac_compiler_gnu
3794
3795fi
jimblandy92b1f832009-12-23 22:23:49 +00003796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3797$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3798if test $ac_compiler_gnu = yes; then
3799 GCC=yes
3800else
3801 GCC=
3802fi
brynercb91a2f2006-08-25 21:14:45 +00003803ac_test_CFLAGS=${CFLAGS+set}
3804ac_save_CFLAGS=$CFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00003805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3806$as_echo_n "checking whether $CC accepts -g... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003807if ${ac_cv_prog_cc_g+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003808 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003809else
mmentovai8c2a4de2006-09-20 16:20:15 +00003810 ac_save_c_werror_flag=$ac_c_werror_flag
3811 ac_c_werror_flag=yes
3812 ac_cv_prog_cc_g=no
3813 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003815/* end confdefs.h. */
3816
3817int
3818main ()
3819{
3820
3821 ;
3822 return 0;
3823}
3824_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003825if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003826 ac_cv_prog_cc_g=yes
3827else
jimblandy92b1f832009-12-23 22:23:49 +00003828 CFLAGS=""
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003830/* end confdefs.h. */
3831
3832int
3833main ()
3834{
3835
3836 ;
3837 return 0;
3838}
3839_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003840if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003841
jimblandy92b1f832009-12-23 22:23:49 +00003842else
3843 ac_c_werror_flag=$ac_save_c_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00003844 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003846/* end confdefs.h. */
3847
3848int
3849main ()
3850{
3851
3852 ;
3853 return 0;
3854}
3855_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003856if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003857 ac_cv_prog_cc_g=yes
brynercb91a2f2006-08-25 21:14:45 +00003858fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003860fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864 ac_c_werror_flag=$ac_save_c_werror_flag
3865fi
jimblandy92b1f832009-12-23 22:23:49 +00003866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3867$as_echo "$ac_cv_prog_cc_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003868if test "$ac_test_CFLAGS" = set; then
3869 CFLAGS=$ac_save_CFLAGS
3870elif test $ac_cv_prog_cc_g = yes; then
3871 if test "$GCC" = yes; then
3872 CFLAGS="-g -O2"
3873 else
3874 CFLAGS="-g"
3875 fi
3876else
3877 if test "$GCC" = yes; then
3878 CFLAGS="-O2"
3879 else
3880 CFLAGS=
3881 fi
3882fi
jimblandy92b1f832009-12-23 22:23:49 +00003883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3884$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00003885if ${ac_cv_prog_cc_c89+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00003886 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003887else
mmentovai8c2a4de2006-09-20 16:20:15 +00003888 ac_cv_prog_cc_c89=no
brynercb91a2f2006-08-25 21:14:45 +00003889ac_save_CC=$CC
jimblandy92b1f832009-12-23 22:23:49 +00003890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003891/* end confdefs.h. */
3892#include <stdarg.h>
3893#include <stdio.h>
mark@chromium.orge9165f42013-11-23 01:45:20 +00003894struct stat;
brynercb91a2f2006-08-25 21:14:45 +00003895/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3896struct buf { int x; };
3897FILE * (*rcsopen) (struct buf *, struct stat *, int);
3898static char *e (p, i)
3899 char **p;
3900 int i;
3901{
3902 return p[i];
3903}
3904static char *f (char * (*g) (char **, int), char **p, ...)
3905{
3906 char *s;
3907 va_list v;
3908 va_start (v,p);
3909 s = g (p, va_arg (v,int));
3910 va_end (v);
3911 return s;
3912}
3913
3914/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3915 function prototypes and stuff, but not '\xHH' hex character constants.
3916 These don't provoke an error unfortunately, instead are silently treated
mmentovai8c2a4de2006-09-20 16:20:15 +00003917 as 'x'. The following induces an error, until -std is added to get
brynercb91a2f2006-08-25 21:14:45 +00003918 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3919 array size at least. It's necessary to write '\x00'==0 to get something
mmentovai8c2a4de2006-09-20 16:20:15 +00003920 that's true only with -std. */
brynercb91a2f2006-08-25 21:14:45 +00003921int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3922
mmentovai8c2a4de2006-09-20 16:20:15 +00003923/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3924 inside strings and character constants. */
3925#define FOO(x) 'x'
3926int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3927
brynercb91a2f2006-08-25 21:14:45 +00003928int test (int i, double x);
3929struct s1 {int (*f) (int a);};
3930struct s2 {int (*f) (double a);};
3931int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3932int argc;
3933char **argv;
3934int
3935main ()
3936{
3937return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3938 ;
3939 return 0;
3940}
3941_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003942for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3943 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
brynercb91a2f2006-08-25 21:14:45 +00003944do
3945 CC="$ac_save_CC $ac_arg"
jimblandy92b1f832009-12-23 22:23:49 +00003946 if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003947 ac_cv_prog_cc_c89=$ac_arg
brynercb91a2f2006-08-25 21:14:45 +00003948fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003949rm -f core conftest.err conftest.$ac_objext
3950 test "x$ac_cv_prog_cc_c89" != "xno" && break
brynercb91a2f2006-08-25 21:14:45 +00003951done
mmentovai8c2a4de2006-09-20 16:20:15 +00003952rm -f conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003953CC=$ac_save_CC
3954
3955fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003956# AC_CACHE_VAL
3957case "x$ac_cv_prog_cc_c89" in
3958 x)
jimblandy92b1f832009-12-23 22:23:49 +00003959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3960$as_echo "none needed" >&6; } ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003961 xno)
jimblandy92b1f832009-12-23 22:23:49 +00003962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3963$as_echo "unsupported" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003964 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00003965 CC="$CC $ac_cv_prog_cc_c89"
jimblandy92b1f832009-12-23 22:23:49 +00003966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3967$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003968esac
jimblandy92b1f832009-12-23 22:23:49 +00003969if test "x$ac_cv_prog_cc_c89" != xno; then :
brynercb91a2f2006-08-25 21:14:45 +00003970
jimblandy92b1f832009-12-23 22:23:49 +00003971fi
brynercb91a2f2006-08-25 21:14:45 +00003972
brynercb91a2f2006-08-25 21:14:45 +00003973ac_ext=c
3974ac_cpp='$CPP $CPPFLAGS'
3975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977ac_compiler_gnu=$ac_cv_c_compiler_gnu
brynercb91a2f2006-08-25 21:14:45 +00003978
mark@chromium.orge9165f42013-11-23 01:45:20 +00003979ac_ext=c
3980ac_cpp='$CPP $CPPFLAGS'
3981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983ac_compiler_gnu=$ac_cv_c_compiler_gnu
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3985$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3986if ${am_cv_prog_cc_c_o+:} false; then :
3987 $as_echo_n "(cached) " >&6
3988else
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990/* end confdefs.h. */
3991
3992int
3993main ()
3994{
3995
3996 ;
3997 return 0;
3998}
3999_ACEOF
4000 # Make sure it works both with $CC and with simple cc.
4001 # Following AC_PROG_CC_C_O, we do the test twice because some
4002 # compilers refuse to overwrite an existing .o file with -o,
4003 # though they will create one.
4004 am_cv_prog_cc_c_o=yes
4005 for am_i in 1 2; do
4006 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4007 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } \
4011 && test -f conftest2.$ac_objext; then
4012 : OK
4013 else
4014 am_cv_prog_cc_c_o=no
4015 break
4016 fi
4017 done
4018 rm -f core conftest*
4019 unset am_i
4020fi
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4022$as_echo "$am_cv_prog_cc_c_o" >&6; }
4023if test "$am_cv_prog_cc_c_o" != yes; then
4024 # Losing compiler, so override with the script.
4025 # FIXME: It is wrong to rewrite CC.
4026 # But if we don't then we get into trouble of one sort or another.
4027 # A longer-term fix would be to have automake use am__CC in this case,
4028 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4029 CC="$am_aux_dir/compile $CC"
4030fi
4031ac_ext=c
4032ac_cpp='$CPP $CPPFLAGS'
4033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036
4037
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004038depcc="$CC" am_compiler_list=
brynercb91a2f2006-08-25 21:14:45 +00004039
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4041$as_echo_n "checking dependency style of $depcc... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004042if ${am_cv_CC_dependencies_compiler_type+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004043 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004044else
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004045 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4046 # We make a subdir and do the tests there. Otherwise we can end up
4047 # making bogus files that we don't know about and never remove. For
4048 # instance it was reported that on HP-UX the gcc test will end up
mark@chromium.orge9165f42013-11-23 01:45:20 +00004049 # making a dummy file named 'D' -- because '-MD' means "put the output
4050 # in D".
digit@chromium.org5bce3b42013-09-25 13:47:44 +00004051 rm -rf conftest.dir
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004052 mkdir conftest.dir
4053 # Copy depcomp to subdir because otherwise we won't find it if we're
4054 # using a relative directory.
4055 cp "$am_depcomp" conftest.dir
4056 cd conftest.dir
4057 # We will build objects and dependencies in a subdirectory because
4058 # it helps to detect inapplicable dependency modes. For instance
4059 # both Tru64's cc and ICC support -MD to output dependencies as a
4060 # side effect of compilation, but ICC will put the dependencies in
4061 # the current directory while Tru64 will put them in the object
4062 # directory.
4063 mkdir sub
4064
4065 am_cv_CC_dependencies_compiler_type=none
4066 if test "$am_compiler_list" = ""; then
4067 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4068 fi
4069 am__universal=false
4070 case " $depcc " in #(
4071 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4072 esac
4073
4074 for depmode in $am_compiler_list; do
4075 # Setup a source with many dependencies, because some compilers
4076 # like to wrap large dependency lists on column 80 (with \), and
4077 # we should not choose a depcomp mode which is confused by this.
4078 #
4079 # We need to recreate these files for each test, as the compiler may
4080 # overwrite some of them when testing with obscure command lines.
4081 # This happens at least with the AIX C compiler.
4082 : > sub/conftest.c
4083 for i in 1 2 3 4 5 6; do
4084 echo '#include "conftst'$i'.h"' >> sub/conftest.c
mark@chromium.orge9165f42013-11-23 01:45:20 +00004085 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4086 # Solaris 10 /bin/sh.
4087 echo '/* dummy */' > sub/conftst$i.h
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004088 done
4089 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4090
mark@chromium.orge9165f42013-11-23 01:45:20 +00004091 # We check with '-c' and '-o' for the sake of the "dashmstdout"
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004092 # mode. It turns out that the SunPro C++ compiler does not properly
mark@chromium.orge9165f42013-11-23 01:45:20 +00004093 # handle '-M -o', and we need to detect this. Also, some Intel
4094 # versions had trouble with output in subdirs.
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004095 am__obj=sub/conftest.${OBJEXT-o}
4096 am__minus_obj="-o $am__obj"
4097 case $depmode in
4098 gcc)
4099 # This depmode causes a compiler race in universal mode.
4100 test "$am__universal" = false || continue
4101 ;;
4102 nosideeffect)
mark@chromium.orge9165f42013-11-23 01:45:20 +00004103 # After this tag, mechanisms are not by side-effect, so they'll
4104 # only be used when explicitly requested.
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004105 if test "x$enable_dependency_tracking" = xyes; then
4106 continue
4107 else
4108 break
4109 fi
4110 ;;
digit@chromium.org5bce3b42013-09-25 13:47:44 +00004111 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
mark@chromium.orge9165f42013-11-23 01:45:20 +00004112 # This compiler won't grok '-c -o', but also, the minuso test has
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004113 # not run yet. These depmodes are late enough in the game, and
4114 # so weak that their functioning should not be impacted.
4115 am__obj=conftest.${OBJEXT-o}
4116 am__minus_obj=
4117 ;;
4118 none) break ;;
4119 esac
4120 if depmode=$depmode \
4121 source=sub/conftest.c object=$am__obj \
4122 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4123 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4124 >/dev/null 2>conftest.err &&
4125 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4126 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4127 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4128 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4129 # icc doesn't choke on unknown options, it will just issue warnings
4130 # or remarks (even with -Werror). So we grep stderr for any message
4131 # that says an option was ignored or not supported.
4132 # When given -MP, icc 7.0 and 7.1 complain thusly:
4133 # icc: Command line warning: ignoring option '-M'; no argument required
4134 # The diagnosis changed in icc 8.0:
4135 # icc: Command line remark: option '-MP' not supported
4136 if (grep 'ignoring option' conftest.err ||
4137 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4138 am_cv_CC_dependencies_compiler_type=$depmode
4139 break
4140 fi
4141 fi
4142 done
4143
4144 cd ..
4145 rm -rf conftest.dir
4146else
4147 am_cv_CC_dependencies_compiler_type=none
4148fi
4149
4150fi
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4152$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4153CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4154
4155 if
4156 test "x$enable_dependency_tracking" != xno \
4157 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4158 am__fastdepCC_TRUE=
4159 am__fastdepCC_FALSE='#'
4160else
4161 am__fastdepCC_TRUE='#'
4162 am__fastdepCC_FALSE=
brynercb91a2f2006-08-25 21:14:45 +00004163fi
4164
4165
Mike Frysingerf217ae42015-11-11 13:43:14 -05004166
4167if test -n "$ac_tool_prefix"; then
4168 for ac_prog in ar lib "link -lib"
4169 do
4170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4171set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173$as_echo_n "checking for $ac_word... " >&6; }
4174if ${ac_cv_prog_AR+:} false; then :
4175 $as_echo_n "(cached) " >&6
4176else
4177 if test -n "$AR"; then
4178 ac_cv_prog_AR="$AR" # Let the user override the test.
4179else
4180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181for as_dir in $PATH
4182do
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 break 2
4190 fi
4191done
4192 done
4193IFS=$as_save_IFS
4194
4195fi
4196fi
4197AR=$ac_cv_prog_AR
4198if test -n "$AR"; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4200$as_echo "$AR" >&6; }
4201else
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203$as_echo "no" >&6; }
4204fi
4205
4206
4207 test -n "$AR" && break
4208 done
4209fi
4210if test -z "$AR"; then
4211 ac_ct_AR=$AR
4212 for ac_prog in ar lib "link -lib"
4213do
4214 # Extract the first word of "$ac_prog", so it can be a program name with args.
4215set dummy $ac_prog; ac_word=$2
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217$as_echo_n "checking for $ac_word... " >&6; }
4218if ${ac_cv_prog_ac_ct_AR+:} false; then :
4219 $as_echo_n "(cached) " >&6
4220else
4221 if test -n "$ac_ct_AR"; then
4222 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4223else
4224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225for as_dir in $PATH
4226do
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_ac_ct_AR="$ac_prog"
4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 break 2
4234 fi
4235done
4236 done
4237IFS=$as_save_IFS
4238
4239fi
4240fi
4241ac_ct_AR=$ac_cv_prog_ac_ct_AR
4242if test -n "$ac_ct_AR"; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4244$as_echo "$ac_ct_AR" >&6; }
4245else
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247$as_echo "no" >&6; }
4248fi
4249
4250
4251 test -n "$ac_ct_AR" && break
4252done
4253
4254 if test "x$ac_ct_AR" = x; then
4255 AR="false"
4256 else
4257 case $cross_compiling:$ac_tool_warned in
4258yes:)
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4261ac_tool_warned=yes ;;
4262esac
4263 AR=$ac_ct_AR
4264 fi
4265fi
4266
4267: ${AR=ar}
4268
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4270$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4271if ${am_cv_ar_interface+:} false; then :
4272 $as_echo_n "(cached) " >&6
4273else
4274 ac_ext=c
4275ac_cpp='$CPP $CPPFLAGS'
4276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278ac_compiler_gnu=$ac_cv_c_compiler_gnu
4279
4280 am_cv_ar_interface=ar
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282/* end confdefs.h. */
4283int some_variable = 0;
4284_ACEOF
4285if ac_fn_c_try_compile "$LINENO"; then :
4286 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4288 (eval $am_ar_try) 2>&5
4289 ac_status=$?
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; }
4292 if test "$ac_status" -eq 0; then
4293 am_cv_ar_interface=ar
4294 else
4295 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4297 (eval $am_ar_try) 2>&5
4298 ac_status=$?
4299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300 test $ac_status = 0; }
4301 if test "$ac_status" -eq 0; then
4302 am_cv_ar_interface=lib
4303 else
4304 am_cv_ar_interface=unknown
4305 fi
4306 fi
4307 rm -f conftest.lib libconftest.a
4308
4309fi
4310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 ac_ext=c
4312ac_cpp='$CPP $CPPFLAGS'
4313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315ac_compiler_gnu=$ac_cv_c_compiler_gnu
4316
4317fi
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4319$as_echo "$am_cv_ar_interface" >&6; }
4320
4321case $am_cv_ar_interface in
4322ar)
4323 ;;
4324lib)
4325 # Microsoft lib, so override with the ar-lib wrapper script.
4326 # FIXME: It is wrong to rewrite AR.
4327 # But if we don't then we get into trouble of one sort or another.
4328 # A longer-term fix would be to have automake use am__AR in this case,
4329 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4330 # similar.
4331 AR="$am_aux_dir/ar-lib $AR"
4332 ;;
4333unknown)
4334 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4335 ;;
4336esac
4337
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004338# By default we simply use the C compiler to build assembly code.
4339
4340test "${CCAS+set}" = set || CCAS=$CC
4341test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4342
4343
4344
4345depcc="$CCAS" am_compiler_list=
4346
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4348$as_echo_n "checking dependency style of $depcc... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004349if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004350 $as_echo_n "(cached) " >&6
4351else
4352 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4353 # We make a subdir and do the tests there. Otherwise we can end up
4354 # making bogus files that we don't know about and never remove. For
4355 # instance it was reported that on HP-UX the gcc test will end up
mark@chromium.orge9165f42013-11-23 01:45:20 +00004356 # making a dummy file named 'D' -- because '-MD' means "put the output
4357 # in D".
digit@chromium.org5bce3b42013-09-25 13:47:44 +00004358 rm -rf conftest.dir
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004359 mkdir conftest.dir
4360 # Copy depcomp to subdir because otherwise we won't find it if we're
4361 # using a relative directory.
4362 cp "$am_depcomp" conftest.dir
4363 cd conftest.dir
4364 # We will build objects and dependencies in a subdirectory because
4365 # it helps to detect inapplicable dependency modes. For instance
4366 # both Tru64's cc and ICC support -MD to output dependencies as a
4367 # side effect of compilation, but ICC will put the dependencies in
4368 # the current directory while Tru64 will put them in the object
4369 # directory.
4370 mkdir sub
4371
4372 am_cv_CCAS_dependencies_compiler_type=none
4373 if test "$am_compiler_list" = ""; then
4374 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4375 fi
4376 am__universal=false
4377
4378
4379 for depmode in $am_compiler_list; do
4380 # Setup a source with many dependencies, because some compilers
4381 # like to wrap large dependency lists on column 80 (with \), and
4382 # we should not choose a depcomp mode which is confused by this.
4383 #
4384 # We need to recreate these files for each test, as the compiler may
4385 # overwrite some of them when testing with obscure command lines.
4386 # This happens at least with the AIX C compiler.
4387 : > sub/conftest.c
4388 for i in 1 2 3 4 5 6; do
4389 echo '#include "conftst'$i'.h"' >> sub/conftest.c
mark@chromium.orge9165f42013-11-23 01:45:20 +00004390 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4391 # Solaris 10 /bin/sh.
4392 echo '/* dummy */' > sub/conftst$i.h
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004393 done
4394 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4395
mark@chromium.orge9165f42013-11-23 01:45:20 +00004396 # We check with '-c' and '-o' for the sake of the "dashmstdout"
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004397 # mode. It turns out that the SunPro C++ compiler does not properly
mark@chromium.orge9165f42013-11-23 01:45:20 +00004398 # handle '-M -o', and we need to detect this. Also, some Intel
4399 # versions had trouble with output in subdirs.
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004400 am__obj=sub/conftest.${OBJEXT-o}
4401 am__minus_obj="-o $am__obj"
4402 case $depmode in
4403 gcc)
4404 # This depmode causes a compiler race in universal mode.
4405 test "$am__universal" = false || continue
4406 ;;
4407 nosideeffect)
mark@chromium.orge9165f42013-11-23 01:45:20 +00004408 # After this tag, mechanisms are not by side-effect, so they'll
4409 # only be used when explicitly requested.
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004410 if test "x$enable_dependency_tracking" = xyes; then
4411 continue
4412 else
4413 break
4414 fi
4415 ;;
digit@chromium.org5bce3b42013-09-25 13:47:44 +00004416 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
mark@chromium.orge9165f42013-11-23 01:45:20 +00004417 # This compiler won't grok '-c -o', but also, the minuso test has
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004418 # not run yet. These depmodes are late enough in the game, and
4419 # so weak that their functioning should not be impacted.
4420 am__obj=conftest.${OBJEXT-o}
4421 am__minus_obj=
4422 ;;
4423 none) break ;;
4424 esac
4425 if depmode=$depmode \
4426 source=sub/conftest.c object=$am__obj \
4427 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4428 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4429 >/dev/null 2>conftest.err &&
4430 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4431 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4432 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4433 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4434 # icc doesn't choke on unknown options, it will just issue warnings
4435 # or remarks (even with -Werror). So we grep stderr for any message
4436 # that says an option was ignored or not supported.
4437 # When given -MP, icc 7.0 and 7.1 complain thusly:
4438 # icc: Command line warning: ignoring option '-M'; no argument required
4439 # The diagnosis changed in icc 8.0:
4440 # icc: Command line remark: option '-MP' not supported
4441 if (grep 'ignoring option' conftest.err ||
4442 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4443 am_cv_CCAS_dependencies_compiler_type=$depmode
4444 break
4445 fi
4446 fi
4447 done
4448
4449 cd ..
4450 rm -rf conftest.dir
4451else
4452 am_cv_CCAS_dependencies_compiler_type=none
4453fi
4454
4455fi
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4457$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4458CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4459
4460 if
4461 test "x$enable_dependency_tracking" != xno \
4462 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4463 am__fastdepCCAS_TRUE=
4464 am__fastdepCCAS_FALSE='#'
4465else
4466 am__fastdepCCAS_TRUE='#'
4467 am__fastdepCCAS_FALSE=
4468fi
4469
4470
4471ac_ext=c
4472ac_cpp='$CPP $CPPFLAGS'
4473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4475ac_compiler_gnu=$ac_cv_c_compiler_gnu
4476if test -n "$ac_tool_prefix"; then
4477 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4478set dummy ${ac_tool_prefix}gcc; ac_word=$2
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4480$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004481if ${ac_cv_prog_CC+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004482 $as_echo_n "(cached) " >&6
4483else
4484 if test -n "$CC"; then
4485 ac_cv_prog_CC="$CC" # Let the user override the test.
4486else
4487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488for as_dir in $PATH
4489do
4490 IFS=$as_save_IFS
4491 test -z "$as_dir" && as_dir=.
4492 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00004493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004494 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 break 2
4497 fi
4498done
4499 done
4500IFS=$as_save_IFS
4501
4502fi
4503fi
4504CC=$ac_cv_prog_CC
4505if test -n "$CC"; then
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4507$as_echo "$CC" >&6; }
4508else
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510$as_echo "no" >&6; }
4511fi
4512
4513
4514fi
4515if test -z "$ac_cv_prog_CC"; then
4516 ac_ct_CC=$CC
4517 # Extract the first word of "gcc", so it can be a program name with args.
4518set dummy gcc; ac_word=$2
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4520$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004521if ${ac_cv_prog_ac_ct_CC+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004522 $as_echo_n "(cached) " >&6
4523else
4524 if test -n "$ac_ct_CC"; then
4525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4526else
4527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528for as_dir in $PATH
4529do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00004533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004534 ac_cv_prog_ac_ct_CC="gcc"
4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 break 2
4537 fi
4538done
4539 done
4540IFS=$as_save_IFS
4541
4542fi
4543fi
4544ac_ct_CC=$ac_cv_prog_ac_ct_CC
4545if test -n "$ac_ct_CC"; then
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4547$as_echo "$ac_ct_CC" >&6; }
4548else
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550$as_echo "no" >&6; }
4551fi
4552
4553 if test "x$ac_ct_CC" = x; then
4554 CC=""
4555 else
4556 case $cross_compiling:$ac_tool_warned in
4557yes:)
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4560ac_tool_warned=yes ;;
4561esac
4562 CC=$ac_ct_CC
4563 fi
4564else
4565 CC="$ac_cv_prog_CC"
4566fi
4567
4568if test -z "$CC"; then
4569 if test -n "$ac_tool_prefix"; then
4570 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4571set dummy ${ac_tool_prefix}cc; ac_word=$2
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004574if ${ac_cv_prog_CC+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004575 $as_echo_n "(cached) " >&6
4576else
4577 if test -n "$CC"; then
4578 ac_cv_prog_CC="$CC" # Let the user override the test.
4579else
4580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00004586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004587 ac_cv_prog_CC="${ac_tool_prefix}cc"
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591done
4592 done
4593IFS=$as_save_IFS
4594
4595fi
4596fi
4597CC=$ac_cv_prog_CC
4598if test -n "$CC"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4600$as_echo "$CC" >&6; }
4601else
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603$as_echo "no" >&6; }
4604fi
4605
4606
4607 fi
4608fi
4609if test -z "$CC"; then
4610 # Extract the first word of "cc", so it can be a program name with args.
4611set dummy cc; ac_word=$2
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4613$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004614if ${ac_cv_prog_CC+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004615 $as_echo_n "(cached) " >&6
4616else
4617 if test -n "$CC"; then
4618 ac_cv_prog_CC="$CC" # Let the user override the test.
4619else
4620 ac_prog_rejected=no
4621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH
4623do
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00004627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004628 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4629 ac_prog_rejected=yes
4630 continue
4631 fi
4632 ac_cv_prog_CC="cc"
4633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 break 2
4635 fi
4636done
4637 done
4638IFS=$as_save_IFS
4639
4640if test $ac_prog_rejected = yes; then
4641 # We found a bogon in the path, so make sure we never use it.
4642 set dummy $ac_cv_prog_CC
4643 shift
4644 if test $# != 0; then
4645 # We chose a different compiler from the bogus one.
4646 # However, it has the same basename, so the bogon will be chosen
4647 # first if we set CC to just the basename; use the full file name.
4648 shift
4649 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4650 fi
4651fi
4652fi
4653fi
4654CC=$ac_cv_prog_CC
4655if test -n "$CC"; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4657$as_echo "$CC" >&6; }
4658else
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660$as_echo "no" >&6; }
4661fi
4662
4663
4664fi
4665if test -z "$CC"; then
4666 if test -n "$ac_tool_prefix"; then
4667 for ac_prog in cl.exe
4668 do
4669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4670set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4672$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004673if ${ac_cv_prog_CC+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004674 $as_echo_n "(cached) " >&6
4675else
4676 if test -n "$CC"; then
4677 ac_cv_prog_CC="$CC" # Let the user override the test.
4678else
4679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680for as_dir in $PATH
4681do
4682 IFS=$as_save_IFS
4683 test -z "$as_dir" && as_dir=.
4684 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00004685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004686 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 break 2
4689 fi
4690done
4691 done
4692IFS=$as_save_IFS
4693
4694fi
4695fi
4696CC=$ac_cv_prog_CC
4697if test -n "$CC"; then
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4699$as_echo "$CC" >&6; }
4700else
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4702$as_echo "no" >&6; }
4703fi
4704
4705
4706 test -n "$CC" && break
4707 done
4708fi
4709if test -z "$CC"; then
4710 ac_ct_CC=$CC
4711 for ac_prog in cl.exe
4712do
4713 # Extract the first word of "$ac_prog", so it can be a program name with args.
4714set dummy $ac_prog; ac_word=$2
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004717if ${ac_cv_prog_ac_ct_CC+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004718 $as_echo_n "(cached) " >&6
4719else
4720 if test -n "$ac_ct_CC"; then
4721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4722else
4723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724for as_dir in $PATH
4725do
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00004729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004730 ac_cv_prog_ac_ct_CC="$ac_prog"
4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4733 fi
4734done
4735 done
4736IFS=$as_save_IFS
4737
4738fi
4739fi
4740ac_ct_CC=$ac_cv_prog_ac_ct_CC
4741if test -n "$ac_ct_CC"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4743$as_echo "$ac_ct_CC" >&6; }
4744else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746$as_echo "no" >&6; }
4747fi
4748
4749
4750 test -n "$ac_ct_CC" && break
4751done
4752
4753 if test "x$ac_ct_CC" = x; then
4754 CC=""
4755 else
4756 case $cross_compiling:$ac_tool_warned in
4757yes:)
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4760ac_tool_warned=yes ;;
4761esac
4762 CC=$ac_ct_CC
4763 fi
4764fi
4765
4766fi
4767
4768
4769test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
mark@chromium.orge9165f42013-11-23 01:45:20 +00004771as_fn_error $? "no acceptable C compiler found in \$PATH
4772See \`config.log' for more details" "$LINENO" 5; }
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004773
4774# Provide some information about the compiler.
4775$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4776set X $ac_compile
4777ac_compiler=$2
4778for ac_option in --version -v -V -qversion; do
4779 { { ac_try="$ac_compiler $ac_option >&5"
4780case "(($ac_try" in
4781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782 *) ac_try_echo=$ac_try;;
4783esac
4784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4785$as_echo "$ac_try_echo"; } >&5
4786 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4787 ac_status=$?
4788 if test -s conftest.err; then
4789 sed '10a\
4790... rest of stderr output deleted ...
4791 10q' conftest.err >conftest.er1
4792 cat conftest.er1 >&5
4793 fi
4794 rm -f conftest.er1 conftest.err
4795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4796 test $ac_status = 0; }
4797done
4798
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4800$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004801if ${ac_cv_c_compiler_gnu+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004802 $as_echo_n "(cached) " >&6
4803else
4804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805/* end confdefs.h. */
4806
4807int
4808main ()
4809{
4810#ifndef __GNUC__
4811 choke me
4812#endif
4813
4814 ;
4815 return 0;
4816}
4817_ACEOF
4818if ac_fn_c_try_compile "$LINENO"; then :
4819 ac_compiler_gnu=yes
4820else
4821 ac_compiler_gnu=no
4822fi
4823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824ac_cv_c_compiler_gnu=$ac_compiler_gnu
4825
4826fi
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4828$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4829if test $ac_compiler_gnu = yes; then
4830 GCC=yes
4831else
4832 GCC=
4833fi
4834ac_test_CFLAGS=${CFLAGS+set}
4835ac_save_CFLAGS=$CFLAGS
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4837$as_echo_n "checking whether $CC accepts -g... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004838if ${ac_cv_prog_cc_g+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004839 $as_echo_n "(cached) " >&6
4840else
4841 ac_save_c_werror_flag=$ac_c_werror_flag
4842 ac_c_werror_flag=yes
4843 ac_cv_prog_cc_g=no
4844 CFLAGS="-g"
4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846/* end confdefs.h. */
4847
4848int
4849main ()
4850{
4851
4852 ;
4853 return 0;
4854}
4855_ACEOF
4856if ac_fn_c_try_compile "$LINENO"; then :
4857 ac_cv_prog_cc_g=yes
4858else
4859 CFLAGS=""
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861/* end confdefs.h. */
4862
4863int
4864main ()
4865{
4866
4867 ;
4868 return 0;
4869}
4870_ACEOF
4871if ac_fn_c_try_compile "$LINENO"; then :
4872
4873else
4874 ac_c_werror_flag=$ac_save_c_werror_flag
4875 CFLAGS="-g"
4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877/* end confdefs.h. */
4878
4879int
4880main ()
4881{
4882
4883 ;
4884 return 0;
4885}
4886_ACEOF
4887if ac_fn_c_try_compile "$LINENO"; then :
4888 ac_cv_prog_cc_g=yes
4889fi
4890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891fi
4892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893fi
4894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 ac_c_werror_flag=$ac_save_c_werror_flag
4896fi
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4898$as_echo "$ac_cv_prog_cc_g" >&6; }
4899if test "$ac_test_CFLAGS" = set; then
4900 CFLAGS=$ac_save_CFLAGS
4901elif test $ac_cv_prog_cc_g = yes; then
4902 if test "$GCC" = yes; then
4903 CFLAGS="-g -O2"
4904 else
4905 CFLAGS="-g"
4906 fi
4907else
4908 if test "$GCC" = yes; then
4909 CFLAGS="-O2"
4910 else
4911 CFLAGS=
4912 fi
4913fi
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4915$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00004916if ${ac_cv_prog_cc_c89+:} false; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004917 $as_echo_n "(cached) " >&6
4918else
4919 ac_cv_prog_cc_c89=no
4920ac_save_CC=$CC
4921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922/* end confdefs.h. */
4923#include <stdarg.h>
4924#include <stdio.h>
mark@chromium.orge9165f42013-11-23 01:45:20 +00004925struct stat;
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004926/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4927struct buf { int x; };
4928FILE * (*rcsopen) (struct buf *, struct stat *, int);
4929static char *e (p, i)
4930 char **p;
4931 int i;
4932{
4933 return p[i];
4934}
4935static char *f (char * (*g) (char **, int), char **p, ...)
4936{
4937 char *s;
4938 va_list v;
4939 va_start (v,p);
4940 s = g (p, va_arg (v,int));
4941 va_end (v);
4942 return s;
4943}
4944
4945/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4946 function prototypes and stuff, but not '\xHH' hex character constants.
4947 These don't provoke an error unfortunately, instead are silently treated
4948 as 'x'. The following induces an error, until -std is added to get
4949 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4950 array size at least. It's necessary to write '\x00'==0 to get something
4951 that's true only with -std. */
4952int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4953
4954/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4955 inside strings and character constants. */
4956#define FOO(x) 'x'
4957int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4958
4959int test (int i, double x);
4960struct s1 {int (*f) (int a);};
4961struct s2 {int (*f) (double a);};
4962int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4963int argc;
4964char **argv;
4965int
4966main ()
4967{
4968return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4969 ;
4970 return 0;
4971}
4972_ACEOF
4973for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4974 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4975do
4976 CC="$ac_save_CC $ac_arg"
4977 if ac_fn_c_try_compile "$LINENO"; then :
4978 ac_cv_prog_cc_c89=$ac_arg
4979fi
4980rm -f core conftest.err conftest.$ac_objext
4981 test "x$ac_cv_prog_cc_c89" != "xno" && break
4982done
4983rm -f conftest.$ac_ext
4984CC=$ac_save_CC
4985
4986fi
4987# AC_CACHE_VAL
4988case "x$ac_cv_prog_cc_c89" in
4989 x)
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4991$as_echo "none needed" >&6; } ;;
4992 xno)
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4994$as_echo "unsupported" >&6; } ;;
4995 *)
4996 CC="$CC $ac_cv_prog_cc_c89"
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4998$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4999esac
5000if test "x$ac_cv_prog_cc_c89" != xno; then :
5001
5002fi
5003
5004ac_ext=c
5005ac_cpp='$CPP $CPPFLAGS'
5006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008ac_compiler_gnu=$ac_cv_c_compiler_gnu
brynercb91a2f2006-08-25 21:14:45 +00005009
mark@chromium.orge9165f42013-11-23 01:45:20 +00005010ac_ext=c
5011ac_cpp='$CPP $CPPFLAGS'
5012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5016$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5017if ${am_cv_prog_cc_c_o+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019else
5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021/* end confdefs.h. */
5022
5023int
5024main ()
5025{
5026
5027 ;
5028 return 0;
5029}
5030_ACEOF
5031 # Make sure it works both with $CC and with simple cc.
5032 # Following AC_PROG_CC_C_O, we do the test twice because some
5033 # compilers refuse to overwrite an existing .o file with -o,
5034 # though they will create one.
5035 am_cv_prog_cc_c_o=yes
5036 for am_i in 1 2; do
5037 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5038 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } \
5042 && test -f conftest2.$ac_objext; then
5043 : OK
5044 else
5045 am_cv_prog_cc_c_o=no
5046 break
5047 fi
5048 done
5049 rm -f core conftest*
5050 unset am_i
5051fi
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5053$as_echo "$am_cv_prog_cc_c_o" >&6; }
5054if test "$am_cv_prog_cc_c_o" != yes; then
5055 # Losing compiler, so override with the script.
5056 # FIXME: It is wrong to rewrite CC.
5057 # But if we don't then we get into trouble of one sort or another.
5058 # A longer-term fix would be to have automake use am__CC in this case,
5059 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5060 CC="$am_aux_dir/compile $CC"
5061fi
5062ac_ext=c
5063ac_cpp='$CPP $CPPFLAGS'
5064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5066ac_compiler_gnu=$ac_cv_c_compiler_gnu
5067
5068
brynercb91a2f2006-08-25 21:14:45 +00005069depcc="$CC" am_compiler_list=
5070
jimblandy92b1f832009-12-23 22:23:49 +00005071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5072$as_echo_n "checking dependency style of $depcc... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005073if ${am_cv_CC_dependencies_compiler_type+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005074 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005075else
5076 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5077 # We make a subdir and do the tests there. Otherwise we can end up
5078 # making bogus files that we don't know about and never remove. For
5079 # instance it was reported that on HP-UX the gcc test will end up
mark@chromium.orge9165f42013-11-23 01:45:20 +00005080 # making a dummy file named 'D' -- because '-MD' means "put the output
5081 # in D".
digit@chromium.org5bce3b42013-09-25 13:47:44 +00005082 rm -rf conftest.dir
brynercb91a2f2006-08-25 21:14:45 +00005083 mkdir conftest.dir
5084 # Copy depcomp to subdir because otherwise we won't find it if we're
5085 # using a relative directory.
5086 cp "$am_depcomp" conftest.dir
5087 cd conftest.dir
5088 # We will build objects and dependencies in a subdirectory because
5089 # it helps to detect inapplicable dependency modes. For instance
5090 # both Tru64's cc and ICC support -MD to output dependencies as a
5091 # side effect of compilation, but ICC will put the dependencies in
5092 # the current directory while Tru64 will put them in the object
5093 # directory.
5094 mkdir sub
5095
5096 am_cv_CC_dependencies_compiler_type=none
5097 if test "$am_compiler_list" = ""; then
5098 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5099 fi
jimblandy92b1f832009-12-23 22:23:49 +00005100 am__universal=false
5101 case " $depcc " in #(
5102 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5103 esac
5104
brynercb91a2f2006-08-25 21:14:45 +00005105 for depmode in $am_compiler_list; do
5106 # Setup a source with many dependencies, because some compilers
5107 # like to wrap large dependency lists on column 80 (with \), and
5108 # we should not choose a depcomp mode which is confused by this.
5109 #
5110 # We need to recreate these files for each test, as the compiler may
5111 # overwrite some of them when testing with obscure command lines.
5112 # This happens at least with the AIX C compiler.
5113 : > sub/conftest.c
5114 for i in 1 2 3 4 5 6; do
5115 echo '#include "conftst'$i'.h"' >> sub/conftest.c
mark@chromium.orge9165f42013-11-23 01:45:20 +00005116 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5117 # Solaris 10 /bin/sh.
5118 echo '/* dummy */' > sub/conftst$i.h
brynercb91a2f2006-08-25 21:14:45 +00005119 done
5120 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5121
mark@chromium.orge9165f42013-11-23 01:45:20 +00005122 # We check with '-c' and '-o' for the sake of the "dashmstdout"
jimblandy92b1f832009-12-23 22:23:49 +00005123 # mode. It turns out that the SunPro C++ compiler does not properly
mark@chromium.orge9165f42013-11-23 01:45:20 +00005124 # handle '-M -o', and we need to detect this. Also, some Intel
5125 # versions had trouble with output in subdirs.
jimblandy92b1f832009-12-23 22:23:49 +00005126 am__obj=sub/conftest.${OBJEXT-o}
5127 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00005128 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00005129 gcc)
5130 # This depmode causes a compiler race in universal mode.
5131 test "$am__universal" = false || continue
5132 ;;
brynercb91a2f2006-08-25 21:14:45 +00005133 nosideeffect)
mark@chromium.orge9165f42013-11-23 01:45:20 +00005134 # After this tag, mechanisms are not by side-effect, so they'll
5135 # only be used when explicitly requested.
brynercb91a2f2006-08-25 21:14:45 +00005136 if test "x$enable_dependency_tracking" = xyes; then
5137 continue
5138 else
5139 break
5140 fi
5141 ;;
digit@chromium.org5bce3b42013-09-25 13:47:44 +00005142 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
mark@chromium.orge9165f42013-11-23 01:45:20 +00005143 # This compiler won't grok '-c -o', but also, the minuso test has
jimblandy92b1f832009-12-23 22:23:49 +00005144 # not run yet. These depmodes are late enough in the game, and
5145 # so weak that their functioning should not be impacted.
5146 am__obj=conftest.${OBJEXT-o}
5147 am__minus_obj=
5148 ;;
brynercb91a2f2006-08-25 21:14:45 +00005149 none) break ;;
5150 esac
brynercb91a2f2006-08-25 21:14:45 +00005151 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00005152 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00005153 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00005154 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00005155 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00005156 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00005157 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00005158 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00005159 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5160 # icc doesn't choke on unknown options, it will just issue warnings
5161 # or remarks (even with -Werror). So we grep stderr for any message
5162 # that says an option was ignored or not supported.
5163 # When given -MP, icc 7.0 and 7.1 complain thusly:
5164 # icc: Command line warning: ignoring option '-M'; no argument required
5165 # The diagnosis changed in icc 8.0:
5166 # icc: Command line remark: option '-MP' not supported
5167 if (grep 'ignoring option' conftest.err ||
5168 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5169 am_cv_CC_dependencies_compiler_type=$depmode
5170 break
5171 fi
5172 fi
5173 done
5174
5175 cd ..
5176 rm -rf conftest.dir
5177else
5178 am_cv_CC_dependencies_compiler_type=none
5179fi
5180
5181fi
jimblandy92b1f832009-12-23 22:23:49 +00005182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5183$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005184CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5185
mmentovaiaf3c43f2007-05-17 18:34:37 +00005186 if
brynercb91a2f2006-08-25 21:14:45 +00005187 test "x$enable_dependency_tracking" != xno \
5188 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5189 am__fastdepCC_TRUE=
5190 am__fastdepCC_FALSE='#'
5191else
5192 am__fastdepCC_TRUE='#'
5193 am__fastdepCC_FALSE=
5194fi
5195
5196
ted.mielczarekd192a712010-10-05 19:38:51 +00005197
brynercb91a2f2006-08-25 21:14:45 +00005198ac_ext=c
5199ac_cpp='$CPP $CPPFLAGS'
5200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202ac_compiler_gnu=$ac_cv_c_compiler_gnu
jimblandy92b1f832009-12-23 22:23:49 +00005203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5204$as_echo_n "checking how to run the C preprocessor... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005205# On Suns, sometimes $CPP names a directory.
5206if test -n "$CPP" && test -d "$CPP"; then
5207 CPP=
5208fi
5209if test -z "$CPP"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00005210 if ${ac_cv_prog_CPP+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005211 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005212else
5213 # Double quotes because CPP needs to be expanded
5214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5215 do
5216 ac_preproc_ok=false
5217for ac_c_preproc_warn_flag in '' yes
5218do
5219 # Use a header file that comes with gcc, so configuring glibc
5220 # with a fresh cross-compiler works.
5221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5222 # <limits.h> exists even on freestanding compilers.
5223 # On the NeXT, cc -E runs the code through the compiler's parser,
5224 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00005225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005226/* end confdefs.h. */
5227#ifdef __STDC__
5228# include <limits.h>
5229#else
5230# include <assert.h>
5231#endif
5232 Syntax error
5233_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005234if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00005235
jimblandy92b1f832009-12-23 22:23:49 +00005236else
brynercb91a2f2006-08-25 21:14:45 +00005237 # Broken: fails on valid input.
5238continue
5239fi
mark@chromium.orge9165f42013-11-23 01:45:20 +00005240rm -f conftest.err conftest.i conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005241
mmentovai8c2a4de2006-09-20 16:20:15 +00005242 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00005243 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00005244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005245/* end confdefs.h. */
5246#include <ac_nonexistent.h>
5247_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005248if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00005249 # Broken: success on invalid input.
5250continue
5251else
brynercb91a2f2006-08-25 21:14:45 +00005252 # Passes both tests.
5253ac_preproc_ok=:
5254break
5255fi
mark@chromium.orge9165f42013-11-23 01:45:20 +00005256rm -f conftest.err conftest.i conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005257
5258done
5259# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
mark@chromium.orge9165f42013-11-23 01:45:20 +00005260rm -f conftest.i conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00005261if $ac_preproc_ok; then :
brynercb91a2f2006-08-25 21:14:45 +00005262 break
5263fi
5264
5265 done
5266 ac_cv_prog_CPP=$CPP
5267
5268fi
5269 CPP=$ac_cv_prog_CPP
5270else
5271 ac_cv_prog_CPP=$CPP
5272fi
jimblandy92b1f832009-12-23 22:23:49 +00005273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5274$as_echo "$CPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005275ac_preproc_ok=false
5276for ac_c_preproc_warn_flag in '' yes
5277do
5278 # Use a header file that comes with gcc, so configuring glibc
5279 # with a fresh cross-compiler works.
5280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5281 # <limits.h> exists even on freestanding compilers.
5282 # On the NeXT, cc -E runs the code through the compiler's parser,
5283 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00005284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005285/* end confdefs.h. */
5286#ifdef __STDC__
5287# include <limits.h>
5288#else
5289# include <assert.h>
5290#endif
5291 Syntax error
5292_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005293if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00005294
jimblandy92b1f832009-12-23 22:23:49 +00005295else
brynercb91a2f2006-08-25 21:14:45 +00005296 # Broken: fails on valid input.
5297continue
5298fi
mark@chromium.orge9165f42013-11-23 01:45:20 +00005299rm -f conftest.err conftest.i conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005300
mmentovai8c2a4de2006-09-20 16:20:15 +00005301 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00005302 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00005303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005304/* end confdefs.h. */
5305#include <ac_nonexistent.h>
5306_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005307if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00005308 # Broken: success on invalid input.
5309continue
5310else
brynercb91a2f2006-08-25 21:14:45 +00005311 # Passes both tests.
5312ac_preproc_ok=:
5313break
5314fi
mark@chromium.orge9165f42013-11-23 01:45:20 +00005315rm -f conftest.err conftest.i conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005316
5317done
5318# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
mark@chromium.orge9165f42013-11-23 01:45:20 +00005319rm -f conftest.i conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00005320if $ac_preproc_ok; then :
5321
brynercb91a2f2006-08-25 21:14:45 +00005322else
jimblandy92b1f832009-12-23 22:23:49 +00005323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
mark@chromium.orge9165f42013-11-23 01:45:20 +00005325as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5326See \`config.log' for more details" "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00005327fi
5328
5329ac_ext=c
5330ac_cpp='$CPP $CPPFLAGS'
5331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5333ac_compiler_gnu=$ac_cv_c_compiler_gnu
5334
mmentovai8c2a4de2006-09-20 16:20:15 +00005335ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00005336ac_cpp='$CXXCPP $CPPFLAGS'
5337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00005340if test -z "$CXX"; then
5341 if test -n "$CCC"; then
5342 CXX=$CCC
5343 else
5344 if test -n "$ac_tool_prefix"; then
5345 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 +00005346 do
5347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5348set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00005349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005351if ${ac_cv_prog_CXX+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005352 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005353else
5354 if test -n "$CXX"; then
5355 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5356else
5357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358for as_dir in $PATH
5359do
5360 IFS=$as_save_IFS
5361 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00005362 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00005363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
brynercb91a2f2006-08-25 21:14:45 +00005364 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00005365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00005366 break 2
5367 fi
5368done
jimblandy92b1f832009-12-23 22:23:49 +00005369 done
mmentovai8c2a4de2006-09-20 16:20:15 +00005370IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00005371
5372fi
5373fi
5374CXX=$ac_cv_prog_CXX
5375if test -n "$CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00005376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5377$as_echo "$CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005378else
jimblandy92b1f832009-12-23 22:23:49 +00005379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005381fi
5382
mmentovai8c2a4de2006-09-20 16:20:15 +00005383
brynercb91a2f2006-08-25 21:14:45 +00005384 test -n "$CXX" && break
5385 done
5386fi
5387if test -z "$CXX"; then
5388 ac_ct_CXX=$CXX
mmentovai8c2a4de2006-09-20 16:20:15 +00005389 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 +00005390do
5391 # Extract the first word of "$ac_prog", so it can be a program name with args.
5392set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00005393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005395if ${ac_cv_prog_ac_ct_CXX+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005396 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005397else
5398 if test -n "$ac_ct_CXX"; then
5399 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5400else
5401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402for as_dir in $PATH
5403do
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00005406 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00005407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
brynercb91a2f2006-08-25 21:14:45 +00005408 ac_cv_prog_ac_ct_CXX="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00005409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00005410 break 2
5411 fi
5412done
jimblandy92b1f832009-12-23 22:23:49 +00005413 done
mmentovai8c2a4de2006-09-20 16:20:15 +00005414IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00005415
5416fi
5417fi
5418ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5419if test -n "$ac_ct_CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00005420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5421$as_echo "$ac_ct_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005422else
jimblandy92b1f832009-12-23 22:23:49 +00005423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005425fi
5426
mmentovai8c2a4de2006-09-20 16:20:15 +00005427
brynercb91a2f2006-08-25 21:14:45 +00005428 test -n "$ac_ct_CXX" && break
5429done
brynercb91a2f2006-08-25 21:14:45 +00005430
mmentovai8c2a4de2006-09-20 16:20:15 +00005431 if test "x$ac_ct_CXX" = x; then
5432 CXX="g++"
5433 else
5434 case $cross_compiling:$ac_tool_warned in
5435yes:)
jimblandy92b1f832009-12-23 22:23:49 +00005436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00005438ac_tool_warned=yes ;;
5439esac
5440 CXX=$ac_ct_CXX
5441 fi
brynercb91a2f2006-08-25 21:14:45 +00005442fi
5443
mmentovai8c2a4de2006-09-20 16:20:15 +00005444 fi
5445fi
brynercb91a2f2006-08-25 21:14:45 +00005446# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00005447$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5448set X $ac_compile
5449ac_compiler=$2
5450for ac_option in --version -v -V -qversion; do
5451 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00005452case "(($ac_try" in
5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5455esac
jimblandy92b1f832009-12-23 22:23:49 +00005456eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5457$as_echo "$ac_try_echo"; } >&5
5458 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00005459 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00005460 if test -s conftest.err; then
5461 sed '10a\
5462... rest of stderr output deleted ...
5463 10q' conftest.err >conftest.er1
5464 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00005465 fi
jimblandydc4029a2010-02-02 17:39:51 +00005466 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00005467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5468 test $ac_status = 0; }
5469done
brynercb91a2f2006-08-25 21:14:45 +00005470
jimblandy92b1f832009-12-23 22:23:49 +00005471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5472$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005473if ${ac_cv_cxx_compiler_gnu+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005474 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005475else
jimblandy92b1f832009-12-23 22:23:49 +00005476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005477/* end confdefs.h. */
5478
5479int
5480main ()
5481{
5482#ifndef __GNUC__
5483 choke me
5484#endif
5485
5486 ;
5487 return 0;
5488}
5489_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005490if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00005491 ac_compiler_gnu=yes
5492else
jimblandy92b1f832009-12-23 22:23:49 +00005493 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00005494fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005496ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5497
5498fi
jimblandy92b1f832009-12-23 22:23:49 +00005499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5500$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5501if test $ac_compiler_gnu = yes; then
5502 GXX=yes
5503else
5504 GXX=
5505fi
brynercb91a2f2006-08-25 21:14:45 +00005506ac_test_CXXFLAGS=${CXXFLAGS+set}
5507ac_save_CXXFLAGS=$CXXFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00005508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5509$as_echo_n "checking whether $CXX accepts -g... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005510if ${ac_cv_prog_cxx_g+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005511 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005512else
mmentovai8c2a4de2006-09-20 16:20:15 +00005513 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5514 ac_cxx_werror_flag=yes
5515 ac_cv_prog_cxx_g=no
5516 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00005517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005518/* end confdefs.h. */
5519
5520int
5521main ()
5522{
5523
5524 ;
5525 return 0;
5526}
5527_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005528if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00005529 ac_cv_prog_cxx_g=yes
5530else
jimblandy92b1f832009-12-23 22:23:49 +00005531 CXXFLAGS=""
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00005533/* end confdefs.h. */
5534
5535int
5536main ()
5537{
5538
5539 ;
5540 return 0;
5541}
5542_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005543if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00005544
jimblandy92b1f832009-12-23 22:23:49 +00005545else
5546 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00005547 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00005548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00005549/* end confdefs.h. */
5550
5551int
5552main ()
5553{
5554
5555 ;
5556 return 0;
5557}
5558_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005559if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00005560 ac_cv_prog_cxx_g=yes
brynercb91a2f2006-08-25 21:14:45 +00005561fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005563fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5568fi
jimblandy92b1f832009-12-23 22:23:49 +00005569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5570$as_echo "$ac_cv_prog_cxx_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005571if test "$ac_test_CXXFLAGS" = set; then
5572 CXXFLAGS=$ac_save_CXXFLAGS
5573elif test $ac_cv_prog_cxx_g = yes; then
5574 if test "$GXX" = yes; then
5575 CXXFLAGS="-g -O2"
5576 else
5577 CXXFLAGS="-g"
5578 fi
5579else
5580 if test "$GXX" = yes; then
5581 CXXFLAGS="-O2"
5582 else
5583 CXXFLAGS=
5584 fi
5585fi
brynercb91a2f2006-08-25 21:14:45 +00005586ac_ext=c
5587ac_cpp='$CPP $CPPFLAGS'
5588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5590ac_compiler_gnu=$ac_cv_c_compiler_gnu
5591
5592depcc="$CXX" am_compiler_list=
5593
jimblandy92b1f832009-12-23 22:23:49 +00005594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5595$as_echo_n "checking dependency style of $depcc... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005596if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005597 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005598else
5599 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5600 # We make a subdir and do the tests there. Otherwise we can end up
5601 # making bogus files that we don't know about and never remove. For
5602 # instance it was reported that on HP-UX the gcc test will end up
mark@chromium.orge9165f42013-11-23 01:45:20 +00005603 # making a dummy file named 'D' -- because '-MD' means "put the output
5604 # in D".
digit@chromium.org5bce3b42013-09-25 13:47:44 +00005605 rm -rf conftest.dir
brynercb91a2f2006-08-25 21:14:45 +00005606 mkdir conftest.dir
5607 # Copy depcomp to subdir because otherwise we won't find it if we're
5608 # using a relative directory.
5609 cp "$am_depcomp" conftest.dir
5610 cd conftest.dir
5611 # We will build objects and dependencies in a subdirectory because
5612 # it helps to detect inapplicable dependency modes. For instance
5613 # both Tru64's cc and ICC support -MD to output dependencies as a
5614 # side effect of compilation, but ICC will put the dependencies in
5615 # the current directory while Tru64 will put them in the object
5616 # directory.
5617 mkdir sub
5618
5619 am_cv_CXX_dependencies_compiler_type=none
5620 if test "$am_compiler_list" = ""; then
5621 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5622 fi
jimblandy92b1f832009-12-23 22:23:49 +00005623 am__universal=false
5624 case " $depcc " in #(
5625 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5626 esac
5627
brynercb91a2f2006-08-25 21:14:45 +00005628 for depmode in $am_compiler_list; do
5629 # Setup a source with many dependencies, because some compilers
5630 # like to wrap large dependency lists on column 80 (with \), and
5631 # we should not choose a depcomp mode which is confused by this.
5632 #
5633 # We need to recreate these files for each test, as the compiler may
5634 # overwrite some of them when testing with obscure command lines.
5635 # This happens at least with the AIX C compiler.
5636 : > sub/conftest.c
5637 for i in 1 2 3 4 5 6; do
5638 echo '#include "conftst'$i'.h"' >> sub/conftest.c
mark@chromium.orge9165f42013-11-23 01:45:20 +00005639 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5640 # Solaris 10 /bin/sh.
5641 echo '/* dummy */' > sub/conftst$i.h
brynercb91a2f2006-08-25 21:14:45 +00005642 done
5643 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5644
mark@chromium.orge9165f42013-11-23 01:45:20 +00005645 # We check with '-c' and '-o' for the sake of the "dashmstdout"
jimblandy92b1f832009-12-23 22:23:49 +00005646 # mode. It turns out that the SunPro C++ compiler does not properly
mark@chromium.orge9165f42013-11-23 01:45:20 +00005647 # handle '-M -o', and we need to detect this. Also, some Intel
5648 # versions had trouble with output in subdirs.
jimblandy92b1f832009-12-23 22:23:49 +00005649 am__obj=sub/conftest.${OBJEXT-o}
5650 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00005651 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00005652 gcc)
5653 # This depmode causes a compiler race in universal mode.
5654 test "$am__universal" = false || continue
5655 ;;
brynercb91a2f2006-08-25 21:14:45 +00005656 nosideeffect)
mark@chromium.orge9165f42013-11-23 01:45:20 +00005657 # After this tag, mechanisms are not by side-effect, so they'll
5658 # only be used when explicitly requested.
brynercb91a2f2006-08-25 21:14:45 +00005659 if test "x$enable_dependency_tracking" = xyes; then
5660 continue
5661 else
5662 break
5663 fi
5664 ;;
digit@chromium.org5bce3b42013-09-25 13:47:44 +00005665 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
mark@chromium.orge9165f42013-11-23 01:45:20 +00005666 # This compiler won't grok '-c -o', but also, the minuso test has
jimblandy92b1f832009-12-23 22:23:49 +00005667 # not run yet. These depmodes are late enough in the game, and
5668 # so weak that their functioning should not be impacted.
5669 am__obj=conftest.${OBJEXT-o}
5670 am__minus_obj=
5671 ;;
brynercb91a2f2006-08-25 21:14:45 +00005672 none) break ;;
5673 esac
brynercb91a2f2006-08-25 21:14:45 +00005674 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00005675 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00005676 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00005677 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00005678 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00005679 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00005680 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00005681 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00005682 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5683 # icc doesn't choke on unknown options, it will just issue warnings
5684 # or remarks (even with -Werror). So we grep stderr for any message
5685 # that says an option was ignored or not supported.
5686 # When given -MP, icc 7.0 and 7.1 complain thusly:
5687 # icc: Command line warning: ignoring option '-M'; no argument required
5688 # The diagnosis changed in icc 8.0:
5689 # icc: Command line remark: option '-MP' not supported
5690 if (grep 'ignoring option' conftest.err ||
5691 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5692 am_cv_CXX_dependencies_compiler_type=$depmode
5693 break
5694 fi
5695 fi
5696 done
5697
5698 cd ..
5699 rm -rf conftest.dir
5700else
5701 am_cv_CXX_dependencies_compiler_type=none
5702fi
5703
5704fi
jimblandy92b1f832009-12-23 22:23:49 +00005705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5706$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005707CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5708
mmentovaiaf3c43f2007-05-17 18:34:37 +00005709 if
brynercb91a2f2006-08-25 21:14:45 +00005710 test "x$enable_dependency_tracking" != xno \
5711 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5712 am__fastdepCXX_TRUE=
5713 am__fastdepCXX_FALSE='#'
5714else
5715 am__fastdepCXX_TRUE='#'
5716 am__fastdepCXX_FALSE=
5717fi
5718
5719
ted.mielczarekd192a712010-10-05 19:38:51 +00005720if test -n "$ac_tool_prefix"; then
5721 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5722set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005725if ${ac_cv_prog_RANLIB+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005726 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005727else
ted.mielczarekd192a712010-10-05 19:38:51 +00005728 if test -n "$RANLIB"; then
5729 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5730else
5731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +00005732for as_dir in $PATH
5733do
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
brynercb91a2f2006-08-25 21:14:45 +00005736 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00005737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ted.mielczarekd192a712010-10-05 19:38:51 +00005738 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 break 2
5741 fi
5742done
brynercb91a2f2006-08-25 21:14:45 +00005743 done
jimblandy92b1f832009-12-23 22:23:49 +00005744IFS=$as_save_IFS
ted.mielczarekd192a712010-10-05 19:38:51 +00005745
5746fi
5747fi
5748RANLIB=$ac_cv_prog_RANLIB
5749if test -n "$RANLIB"; then
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5751$as_echo "$RANLIB" >&6; }
5752else
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754$as_echo "no" >&6; }
5755fi
5756
5757
5758fi
5759if test -z "$ac_cv_prog_RANLIB"; then
5760 ac_ct_RANLIB=$RANLIB
5761 # Extract the first word of "ranlib", so it can be a program name with args.
5762set dummy ranlib; ac_word=$2
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005765if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
ted.mielczarekd192a712010-10-05 19:38:51 +00005766 $as_echo_n "(cached) " >&6
5767else
5768 if test -n "$ac_ct_RANLIB"; then
5769 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5770else
5771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772for as_dir in $PATH
5773do
5774 IFS=$as_save_IFS
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00005777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ted.mielczarekd192a712010-10-05 19:38:51 +00005778 ac_cv_prog_ac_ct_RANLIB="ranlib"
5779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 break 2
5781 fi
5782done
5783 done
5784IFS=$as_save_IFS
5785
5786fi
5787fi
5788ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5789if test -n "$ac_ct_RANLIB"; then
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5791$as_echo "$ac_ct_RANLIB" >&6; }
5792else
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794$as_echo "no" >&6; }
5795fi
5796
5797 if test "x$ac_ct_RANLIB" = x; then
5798 RANLIB=":"
5799 else
5800 case $cross_compiling:$ac_tool_warned in
5801yes:)
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5804ac_tool_warned=yes ;;
5805esac
5806 RANLIB=$ac_ct_RANLIB
jimblandy92b1f832009-12-23 22:23:49 +00005807 fi
5808else
ted.mielczarekd192a712010-10-05 19:38:51 +00005809 RANLIB="$ac_cv_prog_RANLIB"
brynercb91a2f2006-08-25 21:14:45 +00005810fi
5811
jimblandy92b1f832009-12-23 22:23:49 +00005812
vapier@chromium.org302124a2013-12-10 06:28:08 +00005813# Check whether --enable-m32 was given.
5814if test "${enable_m32+set}" = set; then :
5815 enableval=$enable_m32; case "${enableval}" in
5816 yes)
5817 CFLAGS="${CFLAGS} -m32"
5818 CXXFLAGS="${CXXFLAGS} -m32"
5819 usem32=true
5820 ;;
5821 no)
5822 usem32=false
5823 ;;
5824 *)
5825 as_fn_error $? "bad value ${enableval} for --enable-m32" "$LINENO" 5
5826 ;;
5827 esac
5828else
5829 usem32=false
5830fi
5831
5832
jimblandy92b1f832009-12-23 22:23:49 +00005833
jimblandy92b1f832009-12-23 22:23:49 +00005834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5835$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005836if ${ac_cv_path_GREP+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005837 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005838else
jimblandy92b1f832009-12-23 22:23:49 +00005839 if test -z "$GREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005840 ac_path_GREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00005841 # Loop through the user's path and test for each of PROGNAME-LIST
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00005843for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5844do
5845 IFS=$as_save_IFS
5846 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00005847 for ac_prog in grep ggrep; do
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
mark@chromium.orge9165f42013-11-23 01:45:20 +00005850 as_fn_executable_p "$ac_path_GREP" || continue
jimblandy92b1f832009-12-23 22:23:49 +00005851# Check for GNU ac_path_GREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00005852 # Check for GNU $ac_path_GREP
5853case `"$ac_path_GREP" --version 2>&1` in
5854*GNU*)
5855 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5856*)
5857 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00005858 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00005859 while :
5860 do
5861 cat "conftest.in" "conftest.in" >"conftest.tmp"
5862 mv "conftest.tmp" "conftest.in"
5863 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00005864 $as_echo 'GREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00005865 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5866 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00005867 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00005868 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5869 # Best one so far, save it but keep looking for a better one
5870 ac_cv_path_GREP="$ac_path_GREP"
5871 ac_path_GREP_max=$ac_count
brynercb91a2f2006-08-25 21:14:45 +00005872 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005873 # 10*(2^10) chars as input seems more than enough
5874 test $ac_count -gt 10 && break
5875 done
5876 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5877esac
5878
jimblandy92b1f832009-12-23 22:23:49 +00005879 $ac_path_GREP_found && break 3
5880 done
mmentovai8c2a4de2006-09-20 16:20:15 +00005881 done
jimblandy92b1f832009-12-23 22:23:49 +00005882 done
mmentovai8c2a4de2006-09-20 16:20:15 +00005883IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00005884 if test -z "$ac_cv_path_GREP"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00005885 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00005886 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005887else
5888 ac_cv_path_GREP=$GREP
5889fi
5890
mmentovai8c2a4de2006-09-20 16:20:15 +00005891fi
jimblandy92b1f832009-12-23 22:23:49 +00005892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5893$as_echo "$ac_cv_path_GREP" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00005894 GREP="$ac_cv_path_GREP"
5895
5896
jimblandy92b1f832009-12-23 22:23:49 +00005897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5898$as_echo_n "checking for egrep... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005899if ${ac_cv_path_EGREP+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005900 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +00005901else
5902 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5903 then ac_cv_path_EGREP="$GREP -E"
5904 else
jimblandy92b1f832009-12-23 22:23:49 +00005905 if test -z "$EGREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005906 ac_path_EGREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00005907 # Loop through the user's path and test for each of PROGNAME-LIST
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00005909for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5910do
5911 IFS=$as_save_IFS
5912 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00005913 for ac_prog in egrep; do
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
mark@chromium.orge9165f42013-11-23 01:45:20 +00005916 as_fn_executable_p "$ac_path_EGREP" || continue
jimblandy92b1f832009-12-23 22:23:49 +00005917# Check for GNU ac_path_EGREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00005918 # Check for GNU $ac_path_EGREP
5919case `"$ac_path_EGREP" --version 2>&1` in
5920*GNU*)
5921 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5922*)
5923 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00005924 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00005925 while :
5926 do
5927 cat "conftest.in" "conftest.in" >"conftest.tmp"
5928 mv "conftest.tmp" "conftest.in"
5929 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00005930 $as_echo 'EGREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00005931 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00005933 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00005934 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5935 # Best one so far, save it but keep looking for a better one
5936 ac_cv_path_EGREP="$ac_path_EGREP"
5937 ac_path_EGREP_max=$ac_count
5938 fi
5939 # 10*(2^10) chars as input seems more than enough
5940 test $ac_count -gt 10 && break
5941 done
5942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5943esac
5944
jimblandy92b1f832009-12-23 22:23:49 +00005945 $ac_path_EGREP_found && break 3
5946 done
mmentovai8c2a4de2006-09-20 16:20:15 +00005947 done
jimblandy92b1f832009-12-23 22:23:49 +00005948 done
mmentovai8c2a4de2006-09-20 16:20:15 +00005949IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00005950 if test -z "$ac_cv_path_EGREP"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00005951 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00005952 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005953else
5954 ac_cv_path_EGREP=$EGREP
5955fi
5956
jimblandy92b1f832009-12-23 22:23:49 +00005957 fi
5958fi
5959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5960$as_echo "$ac_cv_path_EGREP" >&6; }
5961 EGREP="$ac_cv_path_EGREP"
5962
5963
jimblandy92b1f832009-12-23 22:23:49 +00005964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5965$as_echo_n "checking for ANSI C header files... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00005966if ${ac_cv_header_stdc+:} false; then :
jimblandy92b1f832009-12-23 22:23:49 +00005967 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005968else
jimblandy92b1f832009-12-23 22:23:49 +00005969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005970/* end confdefs.h. */
5971#include <stdlib.h>
5972#include <stdarg.h>
5973#include <string.h>
5974#include <float.h>
5975
5976int
5977main ()
5978{
5979
5980 ;
5981 return 0;
5982}
5983_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005984if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00005985 ac_cv_header_stdc=yes
5986else
jimblandy92b1f832009-12-23 22:23:49 +00005987 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +00005988fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005990
5991if test $ac_cv_header_stdc = yes; then
5992 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +00005993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005994/* end confdefs.h. */
5995#include <string.h>
5996
5997_ACEOF
5998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +00005999 $EGREP "memchr" >/dev/null 2>&1; then :
6000
brynercb91a2f2006-08-25 21:14:45 +00006001else
6002 ac_cv_header_stdc=no
6003fi
6004rm -f conftest*
6005
6006fi
6007
6008if test $ac_cv_header_stdc = yes; then
6009 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +00006010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00006011/* end confdefs.h. */
6012#include <stdlib.h>
6013
6014_ACEOF
6015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +00006016 $EGREP "free" >/dev/null 2>&1; then :
6017
brynercb91a2f2006-08-25 21:14:45 +00006018else
6019 ac_cv_header_stdc=no
6020fi
6021rm -f conftest*
6022
6023fi
6024
6025if test $ac_cv_header_stdc = yes; then
6026 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jimblandy92b1f832009-12-23 22:23:49 +00006027 if test "$cross_compiling" = yes; then :
brynercb91a2f2006-08-25 21:14:45 +00006028 :
6029else
jimblandy92b1f832009-12-23 22:23:49 +00006030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00006031/* end confdefs.h. */
6032#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +00006033#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +00006034#if ((' ' & 0x0FF) == 0x020)
6035# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6036# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6037#else
6038# define ISLOWER(c) \
6039 (('a' <= (c) && (c) <= 'i') \
6040 || ('j' <= (c) && (c) <= 'r') \
6041 || ('s' <= (c) && (c) <= 'z'))
6042# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6043#endif
6044
6045#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6046int
6047main ()
6048{
6049 int i;
6050 for (i = 0; i < 256; i++)
6051 if (XOR (islower (i), ISLOWER (i))
6052 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +00006053 return 2;
6054 return 0;
brynercb91a2f2006-08-25 21:14:45 +00006055}
6056_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00006057if ac_fn_c_try_run "$LINENO"; then :
6058
brynercb91a2f2006-08-25 21:14:45 +00006059else
jimblandy92b1f832009-12-23 22:23:49 +00006060 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +00006061fi
jimblandy92b1f832009-12-23 22:23:49 +00006062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6063 conftest.$ac_objext conftest.beam conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00006064fi
6065
brynercb91a2f2006-08-25 21:14:45 +00006066fi
6067fi
jimblandy92b1f832009-12-23 22:23:49 +00006068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6069$as_echo "$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006070if test $ac_cv_header_stdc = yes; then
6071
jimblandy92b1f832009-12-23 22:23:49 +00006072$as_echo "#define STDC_HEADERS 1" >>confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00006073
6074fi
6075
vapier@chromium.org302124a2013-12-10 06:28:08 +00006076# Check whether --enable-largefile was given.
6077if test "${enable_largefile+set}" = set; then :
6078 enableval=$enable_largefile;
6079fi
6080
6081if test "$enable_largefile" != no; then
6082
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6084$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6085if ${ac_cv_sys_largefile_CC+:} false; then :
6086 $as_echo_n "(cached) " >&6
6087else
6088 ac_cv_sys_largefile_CC=no
6089 if test "$GCC" != yes; then
6090 ac_save_CC=$CC
6091 while :; do
6092 # IRIX 6.2 and later do not support large files by default,
6093 # so use the C compiler's -n32 option if that helps.
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095/* end confdefs.h. */
6096#include <sys/types.h>
6097 /* Check that off_t can represent 2**63 - 1 correctly.
6098 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6099 since some C++ compilers masquerading as C compilers
6100 incorrectly reject 9223372036854775807. */
Lei Zhang728bcdf2016-01-08 00:27:48 -08006101#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
vapier@chromium.org302124a2013-12-10 06:28:08 +00006102 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6103 && LARGE_OFF_T % 2147483647 == 1)
6104 ? 1 : -1];
6105int
6106main ()
6107{
6108
6109 ;
6110 return 0;
6111}
6112_ACEOF
6113 if ac_fn_c_try_compile "$LINENO"; then :
6114 break
6115fi
6116rm -f core conftest.err conftest.$ac_objext
6117 CC="$CC -n32"
6118 if ac_fn_c_try_compile "$LINENO"; then :
6119 ac_cv_sys_largefile_CC=' -n32'; break
6120fi
6121rm -f core conftest.err conftest.$ac_objext
6122 break
6123 done
6124 CC=$ac_save_CC
6125 rm -f conftest.$ac_ext
6126 fi
6127fi
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6129$as_echo "$ac_cv_sys_largefile_CC" >&6; }
6130 if test "$ac_cv_sys_largefile_CC" != no; then
6131 CC=$CC$ac_cv_sys_largefile_CC
6132 fi
6133
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6135$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6136if ${ac_cv_sys_file_offset_bits+:} false; then :
6137 $as_echo_n "(cached) " >&6
6138else
6139 while :; do
6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141/* end confdefs.h. */
6142#include <sys/types.h>
6143 /* Check that off_t can represent 2**63 - 1 correctly.
6144 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6145 since some C++ compilers masquerading as C compilers
6146 incorrectly reject 9223372036854775807. */
Lei Zhang728bcdf2016-01-08 00:27:48 -08006147#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
vapier@chromium.org302124a2013-12-10 06:28:08 +00006148 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6149 && LARGE_OFF_T % 2147483647 == 1)
6150 ? 1 : -1];
6151int
6152main ()
6153{
6154
6155 ;
6156 return 0;
6157}
6158_ACEOF
6159if ac_fn_c_try_compile "$LINENO"; then :
6160 ac_cv_sys_file_offset_bits=no; break
6161fi
6162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164/* end confdefs.h. */
6165#define _FILE_OFFSET_BITS 64
6166#include <sys/types.h>
6167 /* Check that off_t can represent 2**63 - 1 correctly.
6168 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6169 since some C++ compilers masquerading as C compilers
6170 incorrectly reject 9223372036854775807. */
Lei Zhang728bcdf2016-01-08 00:27:48 -08006171#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
vapier@chromium.org302124a2013-12-10 06:28:08 +00006172 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6173 && LARGE_OFF_T % 2147483647 == 1)
6174 ? 1 : -1];
6175int
6176main ()
6177{
6178
6179 ;
6180 return 0;
6181}
6182_ACEOF
6183if ac_fn_c_try_compile "$LINENO"; then :
6184 ac_cv_sys_file_offset_bits=64; break
6185fi
6186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 ac_cv_sys_file_offset_bits=unknown
6188 break
6189done
6190fi
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6192$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6193case $ac_cv_sys_file_offset_bits in #(
6194 no | unknown) ;;
6195 *)
6196cat >>confdefs.h <<_ACEOF
6197#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6198_ACEOF
6199;;
6200esac
6201rm -rf conftest*
6202 if test $ac_cv_sys_file_offset_bits = unknown; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6204$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6205if ${ac_cv_sys_large_files+:} false; then :
6206 $as_echo_n "(cached) " >&6
6207else
6208 while :; do
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210/* end confdefs.h. */
6211#include <sys/types.h>
6212 /* Check that off_t can represent 2**63 - 1 correctly.
6213 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6214 since some C++ compilers masquerading as C compilers
6215 incorrectly reject 9223372036854775807. */
Lei Zhang728bcdf2016-01-08 00:27:48 -08006216#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
vapier@chromium.org302124a2013-12-10 06:28:08 +00006217 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6218 && LARGE_OFF_T % 2147483647 == 1)
6219 ? 1 : -1];
6220int
6221main ()
6222{
6223
6224 ;
6225 return 0;
6226}
6227_ACEOF
6228if ac_fn_c_try_compile "$LINENO"; then :
6229 ac_cv_sys_large_files=no; break
6230fi
6231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233/* end confdefs.h. */
6234#define _LARGE_FILES 1
6235#include <sys/types.h>
6236 /* Check that off_t can represent 2**63 - 1 correctly.
6237 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6238 since some C++ compilers masquerading as C compilers
6239 incorrectly reject 9223372036854775807. */
Lei Zhang728bcdf2016-01-08 00:27:48 -08006240#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
vapier@chromium.org302124a2013-12-10 06:28:08 +00006241 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6242 && LARGE_OFF_T % 2147483647 == 1)
6243 ? 1 : -1];
6244int
6245main ()
6246{
6247
6248 ;
6249 return 0;
6250}
6251_ACEOF
6252if ac_fn_c_try_compile "$LINENO"; then :
6253 ac_cv_sys_large_files=1; break
6254fi
6255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 ac_cv_sys_large_files=unknown
6257 break
6258done
6259fi
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6261$as_echo "$ac_cv_sys_large_files" >&6; }
6262case $ac_cv_sys_large_files in #(
6263 no | unknown) ;;
6264 *)
6265cat >>confdefs.h <<_ACEOF
6266#define _LARGE_FILES $ac_cv_sys_large_files
6267_ACEOF
6268;;
6269esac
6270rm -rf conftest*
6271 fi
6272
6273
6274fi
6275
nealsidde545c02010-03-02 00:39:48 +00006276
6277
6278
6279ac_ext=c
6280ac_cpp='$CPP $CPPFLAGS'
6281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6283ac_compiler_gnu=$ac_cv_c_compiler_gnu
6284
6285ax_pthread_ok=no
6286
6287# We used to check for pthread.h first, but this fails if pthread.h
6288# requires special compiler flags (e.g. on True64 or Sequent).
6289# It gets checked for in the link test anyway.
6290
6291# First of all, check if the user has set any of the PTHREAD_LIBS,
6292# etcetera environment variables, and if threads linking works using
6293# them:
6294if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
6295 save_CFLAGS="$CFLAGS"
6296 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6297 save_LIBS="$LIBS"
6298 LIBS="$PTHREAD_LIBS $LIBS"
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
6300$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302/* end confdefs.h. */
6303
6304/* Override any GCC internal prototype to avoid an error.
6305 Use char because int might match the return type of a GCC
6306 builtin and then its argument prototype would still apply. */
6307#ifdef __cplusplus
6308extern "C"
6309#endif
6310char pthread_join ();
6311int
6312main ()
6313{
6314return pthread_join ();
6315 ;
6316 return 0;
6317}
6318_ACEOF
6319if ac_fn_c_try_link "$LINENO"; then :
6320 ax_pthread_ok=yes
6321fi
6322rm -f core conftest.err conftest.$ac_objext \
6323 conftest$ac_exeext conftest.$ac_ext
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6325$as_echo "$ax_pthread_ok" >&6; }
6326 if test x"$ax_pthread_ok" = xno; then
6327 PTHREAD_LIBS=""
6328 PTHREAD_CFLAGS=""
6329 fi
6330 LIBS="$save_LIBS"
6331 CFLAGS="$save_CFLAGS"
6332fi
6333
6334# We must check for the threads library under a number of different
6335# names; the ordering is very important because some systems
6336# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
6337# libraries is broken (non-POSIX).
6338
6339# Create a list of thread flags to try. Items starting with a "-" are
6340# C compiler flags, and other items are library names, except for "none"
6341# which indicates that we try without any flags at all, and "pthread-config"
6342# which is a program returning the flags for the Pth emulation library.
6343
6344ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
6345
6346# The ordering *is* (sometimes) important. Some notes on the
6347# individual items follow:
6348
6349# pthreads: AIX (must check this before -lpthread)
6350# none: in case threads are in libc; should be tried before -Kthread and
6351# other compiler flags to prevent continual compiler warnings
6352# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
6353# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
6354# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
6355# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
6356# -pthreads: Solaris/gcc
6357# -mthreads: Mingw32/gcc, Lynx/gcc
6358# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
6359# doesn't hurt to check since this sometimes defines pthreads too;
6360# also defines -D_REENTRANT)
6361# ... -mt is also the pthreads flag for HP/aCC
6362# pthread: Linux, etcetera
6363# --thread-safe: KAI C++
6364# pthread-config: use pthread-config program (for GNU Pth library)
6365
6366case "${host_cpu}-${host_os}" in
6367 *solaris*)
6368
6369 # On Solaris (at least, for some versions), libc contains stubbed
6370 # (non-functional) versions of the pthreads routines, so link-based
6371 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
6372 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
6373 # a function called by this macro, so we could check for that, but
6374 # who knows whether they'll stub that too in a future libc.) So,
6375 # we'll just look for -pthreads and -lpthread first:
6376
6377 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
6378 ;;
6379
6380 *-darwin*)
6381 acx_pthread_flags="-pthread $acx_pthread_flags"
6382 ;;
6383esac
6384
6385if test x"$ax_pthread_ok" = xno; then
6386for flag in $ax_pthread_flags; do
6387
6388 case $flag in
6389 none)
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
6391$as_echo_n "checking whether pthreads work without any flags... " >&6; }
6392 ;;
6393
6394 -*)
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
6396$as_echo_n "checking whether pthreads work with $flag... " >&6; }
6397 PTHREAD_CFLAGS="$flag"
6398 ;;
6399
6400 pthread-config)
6401 # Extract the first word of "pthread-config", so it can be a program name with args.
6402set dummy pthread-config; ac_word=$2
6403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6404$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00006405if ${ac_cv_prog_ax_pthread_config+:} false; then :
nealsidde545c02010-03-02 00:39:48 +00006406 $as_echo_n "(cached) " >&6
6407else
6408 if test -n "$ax_pthread_config"; then
6409 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
6410else
6411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412for as_dir in $PATH
6413do
6414 IFS=$as_save_IFS
6415 test -z "$as_dir" && as_dir=.
6416 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00006417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
nealsidde545c02010-03-02 00:39:48 +00006418 ac_cv_prog_ax_pthread_config="yes"
6419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 break 2
6421 fi
6422done
6423 done
6424IFS=$as_save_IFS
6425
6426 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
6427fi
6428fi
6429ax_pthread_config=$ac_cv_prog_ax_pthread_config
6430if test -n "$ax_pthread_config"; then
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
6432$as_echo "$ax_pthread_config" >&6; }
6433else
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435$as_echo "no" >&6; }
6436fi
6437
6438
6439 if test x"$ax_pthread_config" = xno; then continue; fi
6440 PTHREAD_CFLAGS="`pthread-config --cflags`"
6441 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
6442 ;;
6443
6444 *)
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
6446$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
6447 PTHREAD_LIBS="-l$flag"
6448 ;;
6449 esac
6450
6451 save_LIBS="$LIBS"
6452 save_CFLAGS="$CFLAGS"
6453 LIBS="$PTHREAD_LIBS $LIBS"
6454 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6455
6456 # Check for various functions. We must include pthread.h,
6457 # since some functions may be macros. (On the Sequent, we
6458 # need a special flag -Kthread to make this header compile.)
6459 # We check for pthread_join because it is in -lpthread on IRIX
6460 # while pthread_create is in libc. We check for pthread_attr_init
6461 # due to DEC craziness with -lpthreads. We check for
6462 # pthread_cleanup_push because it is one of the few pthread
6463 # functions on Solaris that doesn't have a non-functional libc stub.
6464 # We try pthread_create on general principles.
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466/* end confdefs.h. */
6467#include <pthread.h>
6468 static void routine(void* a) {a=0;}
6469 static void* start_routine(void* a) {return a;}
6470int
6471main ()
6472{
6473pthread_t th; pthread_attr_t attr;
6474 pthread_join(th, 0);
6475 pthread_attr_init(&attr);
6476 pthread_cleanup_push(routine, 0);
6477 pthread_create(&th,0,start_routine,0);
6478 pthread_cleanup_pop(0);
6479 ;
6480 return 0;
6481}
6482_ACEOF
6483if ac_fn_c_try_link "$LINENO"; then :
6484 ax_pthread_ok=yes
6485fi
6486rm -f core conftest.err conftest.$ac_objext \
6487 conftest$ac_exeext conftest.$ac_ext
6488
6489 LIBS="$save_LIBS"
6490 CFLAGS="$save_CFLAGS"
6491
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6493$as_echo "$ax_pthread_ok" >&6; }
6494 if test "x$ax_pthread_ok" = xyes; then
6495 break;
6496 fi
6497
6498 PTHREAD_LIBS=""
6499 PTHREAD_CFLAGS=""
6500done
6501fi
6502
6503# Various other checks:
6504if test "x$ax_pthread_ok" = xyes; then
6505 save_LIBS="$LIBS"
6506 LIBS="$PTHREAD_LIBS $LIBS"
6507 save_CFLAGS="$CFLAGS"
6508 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6509
6510 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
6512$as_echo_n "checking for joinable pthread attribute... " >&6; }
6513 attr_name=unknown
6514 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516/* end confdefs.h. */
6517#include <pthread.h>
6518int
6519main ()
6520{
6521int attr=$attr; return attr;
6522 ;
6523 return 0;
6524}
6525_ACEOF
6526if ac_fn_c_try_link "$LINENO"; then :
6527 attr_name=$attr; break
6528fi
6529rm -f core conftest.err conftest.$ac_objext \
6530 conftest$ac_exeext conftest.$ac_ext
6531 done
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
6533$as_echo "$attr_name" >&6; }
6534 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
6535
6536cat >>confdefs.h <<_ACEOF
6537#define PTHREAD_CREATE_JOINABLE $attr_name
6538_ACEOF
6539
6540 fi
6541
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
6543$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
6544 flag=no
6545 case "${host_cpu}-${host_os}" in
6546 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
6547 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
6548 esac
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
6550$as_echo "${flag}" >&6; }
6551 if test "x$flag" != xno; then
6552 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
6553 fi
6554
6555 LIBS="$save_LIBS"
6556 CFLAGS="$save_CFLAGS"
6557
6558 # More AIX lossage: must compile with xlc_r or cc_r
6559 if test x"$GCC" != xyes; then
6560 for ac_prog in xlc_r cc_r
6561do
6562 # Extract the first word of "$ac_prog", so it can be a program name with args.
6563set dummy $ac_prog; ac_word=$2
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565$as_echo_n "checking for $ac_word... " >&6; }
mark@chromium.orge9165f42013-11-23 01:45:20 +00006566if ${ac_cv_prog_PTHREAD_CC+:} false; then :
nealsidde545c02010-03-02 00:39:48 +00006567 $as_echo_n "(cached) " >&6
6568else
6569 if test -n "$PTHREAD_CC"; then
6570 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
6571else
6572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573for as_dir in $PATH
6574do
6575 IFS=$as_save_IFS
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00006578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
nealsidde545c02010-03-02 00:39:48 +00006579 ac_cv_prog_PTHREAD_CC="$ac_prog"
6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 break 2
6582 fi
6583done
6584 done
6585IFS=$as_save_IFS
6586
6587fi
6588fi
6589PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
6590if test -n "$PTHREAD_CC"; then
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
6592$as_echo "$PTHREAD_CC" >&6; }
6593else
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595$as_echo "no" >&6; }
6596fi
6597
6598
6599 test -n "$PTHREAD_CC" && break
6600done
6601test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
6602
6603 else
6604 PTHREAD_CC=$CC
6605 fi
6606else
6607 PTHREAD_CC="$CC"
6608fi
6609
6610
6611
6612
6613
6614# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6615if test x"$ax_pthread_ok" = xyes; then
6616
6617$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
6618
6619 :
6620else
6621 ax_pthread_ok=no
6622
6623fi
6624ac_ext=c
6625ac_cpp='$CPP $CPPFLAGS'
6626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6628ac_compiler_gnu=$ac_cv_c_compiler_gnu
6629
6630
ted.mielczarekdbf409c2011-02-28 14:05:22 +00006631# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6632for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6633 inttypes.h stdint.h unistd.h
6634do :
6635 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6636ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6637"
mark@chromium.orge9165f42013-11-23 01:45:20 +00006638if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ted.mielczarekdbf409c2011-02-28 14:05:22 +00006639 cat >>confdefs.h <<_ACEOF
6640#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6641_ACEOF
6642
6643fi
6644
6645done
6646
6647
Gabriele Sveltoa9fca582017-04-11 11:51:28 +02006648for ac_header in a.out.h sys/random.h
ted.mielczarekdbf409c2011-02-28 14:05:22 +00006649do :
Gabriele Sveltoa9fca582017-04-11 11:51:28 +02006650 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6651ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6652if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ted.mielczarekdbf409c2011-02-28 14:05:22 +00006653 cat >>confdefs.h <<_ACEOF
Gabriele Sveltoa9fca582017-04-11 11:51:28 +02006654#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ted.mielczarekdbf409c2011-02-28 14:05:22 +00006655_ACEOF
6656
6657fi
6658
6659done
6660
Gabriele Sveltoa9fca582017-04-11 11:51:28 +02006661for ac_func in arc4random getrandom
6662do :
6663 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6664ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6665if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6666 cat >>confdefs.h <<_ACEOF
6667#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6668_ACEOF
6669
6670fi
6671done
6672
nealsidde545c02010-03-02 00:39:48 +00006673
Lei Zhang728bcdf2016-01-08 00:27:48 -08006674
6675 ax_cxx_compile_cxx11_required=true
6676 ac_ext=cpp
6677ac_cpp='$CXXCPP $CPPFLAGS'
6678ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6679ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6680ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6681 ac_success=no
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6683$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6684if ${ax_cv_cxx_compile_cxx11+:} false; then :
6685 $as_echo_n "(cached) " >&6
6686else
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688/* end confdefs.h. */
6689
6690
6691// If the compiler admits that it is not ready for C++11, why torture it?
6692// Hopefully, this will speed up the test.
6693
6694#ifndef __cplusplus
6695
6696#error "This is not a C++ compiler"
6697
6698#elif __cplusplus < 201103L
6699
6700#error "This is not a C++11 compiler"
6701
6702#else
6703
6704namespace cxx11
6705{
6706
6707 namespace test_static_assert
6708 {
6709
6710 template <typename T>
6711 struct check
6712 {
6713 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6714 };
6715
6716 }
6717
6718 namespace test_final_override
6719 {
6720
6721 struct Base
6722 {
6723 virtual void f() {}
6724 };
6725
6726 struct Derived : public Base
6727 {
6728 virtual void f() override {}
6729 };
6730
6731 }
6732
6733 namespace test_double_right_angle_brackets
6734 {
6735
6736 template < typename T >
6737 struct check {};
6738
6739 typedef check<void> single_type;
6740 typedef check<check<void>> double_type;
6741 typedef check<check<check<void>>> triple_type;
6742 typedef check<check<check<check<void>>>> quadruple_type;
6743
6744 }
6745
6746 namespace test_decltype
6747 {
6748
6749 int
6750 f()
6751 {
6752 int a = 1;
6753 decltype(a) b = 2;
6754 return a + b;
6755 }
6756
6757 }
6758
6759 namespace test_type_deduction
6760 {
6761
6762 template < typename T1, typename T2 >
6763 struct is_same
6764 {
6765 static const bool value = false;
6766 };
6767
6768 template < typename T >
6769 struct is_same<T, T>
6770 {
6771 static const bool value = true;
6772 };
6773
6774 template < typename T1, typename T2 >
6775 auto
6776 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6777 {
6778 return a1 + a2;
6779 }
6780
6781 int
6782 test(const int c, volatile int v)
6783 {
6784 static_assert(is_same<int, decltype(0)>::value == true, "");
6785 static_assert(is_same<int, decltype(c)>::value == false, "");
6786 static_assert(is_same<int, decltype(v)>::value == false, "");
6787 auto ac = c;
6788 auto av = v;
6789 auto sumi = ac + av + 'x';
6790 auto sumf = ac + av + 1.0;
6791 static_assert(is_same<int, decltype(ac)>::value == true, "");
6792 static_assert(is_same<int, decltype(av)>::value == true, "");
6793 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6794 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6795 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6796 return (sumf > 0.0) ? sumi : add(c, v);
6797 }
6798
6799 }
6800
6801 namespace test_noexcept
6802 {
6803
6804 int f() { return 0; }
6805 int g() noexcept { return 0; }
6806
6807 static_assert(noexcept(f()) == false, "");
6808 static_assert(noexcept(g()) == true, "");
6809
6810 }
6811
6812 namespace test_constexpr
6813 {
6814
6815 template < typename CharT >
6816 unsigned long constexpr
6817 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6818 {
6819 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6820 }
6821
6822 template < typename CharT >
6823 unsigned long constexpr
6824 strlen_c(const CharT *const s) noexcept
6825 {
6826 return strlen_c_r(s, 0UL);
6827 }
6828
6829 static_assert(strlen_c("") == 0UL, "");
6830 static_assert(strlen_c("1") == 1UL, "");
6831 static_assert(strlen_c("example") == 7UL, "");
6832 static_assert(strlen_c("another\0example") == 7UL, "");
6833
6834 }
6835
6836 namespace test_rvalue_references
6837 {
6838
6839 template < int N >
6840 struct answer
6841 {
6842 static constexpr int value = N;
6843 };
6844
6845 answer<1> f(int&) { return answer<1>(); }
6846 answer<2> f(const int&) { return answer<2>(); }
6847 answer<3> f(int&&) { return answer<3>(); }
6848
6849 void
6850 test()
6851 {
6852 int i = 0;
6853 const int c = 0;
6854 static_assert(decltype(f(i))::value == 1, "");
6855 static_assert(decltype(f(c))::value == 2, "");
6856 static_assert(decltype(f(0))::value == 3, "");
6857 }
6858
6859 }
6860
6861 namespace test_uniform_initialization
6862 {
6863
6864 struct test
6865 {
6866 static const int zero {};
6867 static const int one {1};
6868 };
6869
6870 static_assert(test::zero == 0, "");
6871 static_assert(test::one == 1, "");
6872
6873 }
6874
6875 namespace test_lambdas
6876 {
6877
6878 void
6879 test1()
6880 {
6881 auto lambda1 = [](){};
6882 auto lambda2 = lambda1;
6883 lambda1();
6884 lambda2();
6885 }
6886
6887 int
6888 test2()
6889 {
6890 auto a = [](int i, int j){ return i + j; }(1, 2);
6891 auto b = []() -> int { return '0'; }();
6892 auto c = [=](){ return a + b; }();
6893 auto d = [&](){ return c; }();
6894 auto e = [a, &b](int x) mutable {
6895 const auto identity = [](int y){ return y; };
6896 for (auto i = 0; i < a; ++i)
6897 a += b--;
6898 return x + identity(a + b);
6899 }(0);
6900 return a + b + c + d + e;
6901 }
6902
6903 int
6904 test3()
6905 {
6906 const auto nullary = [](){ return 0; };
6907 const auto unary = [](int x){ return x; };
6908 using nullary_t = decltype(nullary);
6909 using unary_t = decltype(unary);
6910 const auto higher1st = [](nullary_t f){ return f(); };
6911 const auto higher2nd = [unary](nullary_t f1){
6912 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6913 };
6914 return higher1st(nullary) + higher2nd(nullary)(unary);
6915 }
6916
6917 }
6918
6919 namespace test_variadic_templates
6920 {
6921
6922 template <int...>
6923 struct sum;
6924
6925 template <int N0, int... N1toN>
6926 struct sum<N0, N1toN...>
6927 {
6928 static constexpr auto value = N0 + sum<N1toN...>::value;
6929 };
6930
6931 template <>
6932 struct sum<>
6933 {
6934 static constexpr auto value = 0;
6935 };
6936
6937 static_assert(sum<>::value == 0, "");
6938 static_assert(sum<1>::value == 1, "");
6939 static_assert(sum<23>::value == 23, "");
6940 static_assert(sum<1, 2>::value == 3, "");
6941 static_assert(sum<5, 5, 11>::value == 21, "");
6942 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6943
6944 }
6945
6946 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6947 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6948 // because of this.
6949 namespace test_template_alias_sfinae
6950 {
6951
6952 struct foo {};
6953
6954 template<typename T>
6955 using member = typename T::member_type;
6956
6957 template<typename T>
6958 void func(...) {}
6959
6960 template<typename T>
6961 void func(member<T>*) {}
6962
6963 void test();
6964
6965 void test() { func<foo>(0); }
6966
6967 }
6968
6969} // namespace cxx11
6970
6971#endif // __cplusplus >= 201103L
6972
6973
6974
6975_ACEOF
6976if ac_fn_cxx_try_compile "$LINENO"; then :
6977 ax_cv_cxx_compile_cxx11=yes
6978else
6979 ax_cv_cxx_compile_cxx11=no
6980fi
6981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982fi
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6984$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6985 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6986 ac_success=yes
6987 fi
6988
6989
6990
6991 if test x$ac_success = xno; then
6992 for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
6993 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6995$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6996if eval \${$cachevar+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998else
6999 ac_save_CXXFLAGS="$CXXFLAGS"
7000 CXXFLAGS="$CXXFLAGS $switch"
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002/* end confdefs.h. */
7003
7004
7005// If the compiler admits that it is not ready for C++11, why torture it?
7006// Hopefully, this will speed up the test.
7007
7008#ifndef __cplusplus
7009
7010#error "This is not a C++ compiler"
7011
7012#elif __cplusplus < 201103L
7013
7014#error "This is not a C++11 compiler"
7015
7016#else
7017
7018namespace cxx11
7019{
7020
7021 namespace test_static_assert
7022 {
7023
7024 template <typename T>
7025 struct check
7026 {
7027 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7028 };
7029
7030 }
7031
7032 namespace test_final_override
7033 {
7034
7035 struct Base
7036 {
7037 virtual void f() {}
7038 };
7039
7040 struct Derived : public Base
7041 {
7042 virtual void f() override {}
7043 };
7044
7045 }
7046
7047 namespace test_double_right_angle_brackets
7048 {
7049
7050 template < typename T >
7051 struct check {};
7052
7053 typedef check<void> single_type;
7054 typedef check<check<void>> double_type;
7055 typedef check<check<check<void>>> triple_type;
7056 typedef check<check<check<check<void>>>> quadruple_type;
7057
7058 }
7059
7060 namespace test_decltype
7061 {
7062
7063 int
7064 f()
7065 {
7066 int a = 1;
7067 decltype(a) b = 2;
7068 return a + b;
7069 }
7070
7071 }
7072
7073 namespace test_type_deduction
7074 {
7075
7076 template < typename T1, typename T2 >
7077 struct is_same
7078 {
7079 static const bool value = false;
7080 };
7081
7082 template < typename T >
7083 struct is_same<T, T>
7084 {
7085 static const bool value = true;
7086 };
7087
7088 template < typename T1, typename T2 >
7089 auto
7090 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7091 {
7092 return a1 + a2;
7093 }
7094
7095 int
7096 test(const int c, volatile int v)
7097 {
7098 static_assert(is_same<int, decltype(0)>::value == true, "");
7099 static_assert(is_same<int, decltype(c)>::value == false, "");
7100 static_assert(is_same<int, decltype(v)>::value == false, "");
7101 auto ac = c;
7102 auto av = v;
7103 auto sumi = ac + av + 'x';
7104 auto sumf = ac + av + 1.0;
7105 static_assert(is_same<int, decltype(ac)>::value == true, "");
7106 static_assert(is_same<int, decltype(av)>::value == true, "");
7107 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7108 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7109 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7110 return (sumf > 0.0) ? sumi : add(c, v);
7111 }
7112
7113 }
7114
7115 namespace test_noexcept
7116 {
7117
7118 int f() { return 0; }
7119 int g() noexcept { return 0; }
7120
7121 static_assert(noexcept(f()) == false, "");
7122 static_assert(noexcept(g()) == true, "");
7123
7124 }
7125
7126 namespace test_constexpr
7127 {
7128
7129 template < typename CharT >
7130 unsigned long constexpr
7131 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7132 {
7133 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7134 }
7135
7136 template < typename CharT >
7137 unsigned long constexpr
7138 strlen_c(const CharT *const s) noexcept
7139 {
7140 return strlen_c_r(s, 0UL);
7141 }
7142
7143 static_assert(strlen_c("") == 0UL, "");
7144 static_assert(strlen_c("1") == 1UL, "");
7145 static_assert(strlen_c("example") == 7UL, "");
7146 static_assert(strlen_c("another\0example") == 7UL, "");
7147
7148 }
7149
7150 namespace test_rvalue_references
7151 {
7152
7153 template < int N >
7154 struct answer
7155 {
7156 static constexpr int value = N;
7157 };
7158
7159 answer<1> f(int&) { return answer<1>(); }
7160 answer<2> f(const int&) { return answer<2>(); }
7161 answer<3> f(int&&) { return answer<3>(); }
7162
7163 void
7164 test()
7165 {
7166 int i = 0;
7167 const int c = 0;
7168 static_assert(decltype(f(i))::value == 1, "");
7169 static_assert(decltype(f(c))::value == 2, "");
7170 static_assert(decltype(f(0))::value == 3, "");
7171 }
7172
7173 }
7174
7175 namespace test_uniform_initialization
7176 {
7177
7178 struct test
7179 {
7180 static const int zero {};
7181 static const int one {1};
7182 };
7183
7184 static_assert(test::zero == 0, "");
7185 static_assert(test::one == 1, "");
7186
7187 }
7188
7189 namespace test_lambdas
7190 {
7191
7192 void
7193 test1()
7194 {
7195 auto lambda1 = [](){};
7196 auto lambda2 = lambda1;
7197 lambda1();
7198 lambda2();
7199 }
7200
7201 int
7202 test2()
7203 {
7204 auto a = [](int i, int j){ return i + j; }(1, 2);
7205 auto b = []() -> int { return '0'; }();
7206 auto c = [=](){ return a + b; }();
7207 auto d = [&](){ return c; }();
7208 auto e = [a, &b](int x) mutable {
7209 const auto identity = [](int y){ return y; };
7210 for (auto i = 0; i < a; ++i)
7211 a += b--;
7212 return x + identity(a + b);
7213 }(0);
7214 return a + b + c + d + e;
7215 }
7216
7217 int
7218 test3()
7219 {
7220 const auto nullary = [](){ return 0; };
7221 const auto unary = [](int x){ return x; };
7222 using nullary_t = decltype(nullary);
7223 using unary_t = decltype(unary);
7224 const auto higher1st = [](nullary_t f){ return f(); };
7225 const auto higher2nd = [unary](nullary_t f1){
7226 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7227 };
7228 return higher1st(nullary) + higher2nd(nullary)(unary);
7229 }
7230
7231 }
7232
7233 namespace test_variadic_templates
7234 {
7235
7236 template <int...>
7237 struct sum;
7238
7239 template <int N0, int... N1toN>
7240 struct sum<N0, N1toN...>
7241 {
7242 static constexpr auto value = N0 + sum<N1toN...>::value;
7243 };
7244
7245 template <>
7246 struct sum<>
7247 {
7248 static constexpr auto value = 0;
7249 };
7250
7251 static_assert(sum<>::value == 0, "");
7252 static_assert(sum<1>::value == 1, "");
7253 static_assert(sum<23>::value == 23, "");
7254 static_assert(sum<1, 2>::value == 3, "");
7255 static_assert(sum<5, 5, 11>::value == 21, "");
7256 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7257
7258 }
7259
7260 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7261 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7262 // because of this.
7263 namespace test_template_alias_sfinae
7264 {
7265
7266 struct foo {};
7267
7268 template<typename T>
7269 using member = typename T::member_type;
7270
7271 template<typename T>
7272 void func(...) {}
7273
7274 template<typename T>
7275 void func(member<T>*) {}
7276
7277 void test();
7278
7279 void test() { func<foo>(0); }
7280
7281 }
7282
7283} // namespace cxx11
7284
7285#endif // __cplusplus >= 201103L
7286
7287
7288
7289_ACEOF
7290if ac_fn_cxx_try_compile "$LINENO"; then :
7291 eval $cachevar=yes
7292else
7293 eval $cachevar=no
7294fi
7295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 CXXFLAGS="$ac_save_CXXFLAGS"
7297fi
7298eval ac_res=\$$cachevar
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7300$as_echo "$ac_res" >&6; }
7301 if eval test x\$$cachevar = xyes; then
7302 CXXFLAGS="$CXXFLAGS $switch"
7303 ac_success=yes
7304 break
7305 fi
7306 done
7307 fi
7308 ac_ext=c
7309ac_cpp='$CPP $CPPFLAGS'
7310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7312ac_compiler_gnu=$ac_cv_c_compiler_gnu
7313
7314 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7315 if test x$ac_success = xno; then
7316 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7317 fi
7318 else
7319 if test x$ac_success = xno; then
7320 HAVE_CXX11=0
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7322$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7323 else
7324 HAVE_CXX11=1
7325
7326$as_echo "#define HAVE_CXX11 1" >>confdefs.h
7327
7328 fi
7329
7330
7331 fi
7332
7333
Mike Frysinger6cc03752017-02-06 15:10:13 -05007334WARN_CXXFLAGS=
7335ac_ext=cpp
7336ac_cpp='$CXXCPP $CPPFLAGS'
7337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7340
7341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Werror=unknown-warning-option" >&5
7342$as_echo_n "checking whether C++ compiler accepts -Werror=unknown-warning-option... " >&6; }
7343if ${ax_cv_check_cxxflags___Werror_unknown_warning_option+:} false; then :
7344 $as_echo_n "(cached) " >&6
7345else
7346
7347 ax_check_save_flags=$CXXFLAGS
7348 CXXFLAGS="$CXXFLAGS -Werror=unknown-warning-option"
7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350/* end confdefs.h. */
7351
7352int
7353main ()
7354{
7355
7356 ;
7357 return 0;
7358}
7359_ACEOF
7360if ac_fn_cxx_try_compile "$LINENO"; then :
7361 ax_cv_check_cxxflags___Werror_unknown_warning_option=yes
7362else
7363 ax_cv_check_cxxflags___Werror_unknown_warning_option=no
7364fi
7365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366 CXXFLAGS=$ax_check_save_flags
7367fi
7368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Werror_unknown_warning_option" >&5
7369$as_echo "$ax_cv_check_cxxflags___Werror_unknown_warning_option" >&6; }
7370if test "x$ax_cv_check_cxxflags___Werror_unknown_warning_option" = xyes; then :
7371
7372 ax_compiler_flags_test="-Werror=unknown-warning-option"
7373
7374else
7375
7376 ax_compiler_flags_test=""
7377
7378fi
7379
7380
7381
7382
7383
Tobias Sargeantb37547b2017-03-24 12:51:47 +00007384for flag in -Wmissing-braces -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-compare -Wunused-local-typedefs -Wunused-variable -Wvla ; do
Mike Frysinger6cc03752017-02-06 15:10:13 -05007385 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_${ax_compiler_flags_test}_$flag" | $as_tr_sh`
7386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
7387$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
7388if eval \${$as_CACHEVAR+:} false; then :
7389 $as_echo_n "(cached) " >&6
7390else
7391
7392 ax_check_save_flags=$CXXFLAGS
7393 CXXFLAGS="$CXXFLAGS ${ax_compiler_flags_test} $flag"
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395/* end confdefs.h. */
7396
7397int
7398main ()
7399{
7400
7401 ;
7402 return 0;
7403}
7404_ACEOF
7405if ac_fn_cxx_try_compile "$LINENO"; then :
7406 eval "$as_CACHEVAR=yes"
7407else
7408 eval "$as_CACHEVAR=no"
7409fi
7410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7411 CXXFLAGS=$ax_check_save_flags
7412fi
7413eval ac_res=\$$as_CACHEVAR
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7415$as_echo "$ac_res" >&6; }
7416if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7417
7418if ${WARN_CXXFLAGS+:} false; then :
7419
7420 case " $WARN_CXXFLAGS " in #(
7421 *" $flag "*) :
7422 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5
7423 (: WARN_CXXFLAGS already contains $flag) 2>&5
7424 ac_status=$?
7425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7426 test $ac_status = 0; } ;; #(
7427 *) :
7428
7429 as_fn_append WARN_CXXFLAGS " $flag"
7430 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
7431 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
7432 ac_status=$?
7433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7434 test $ac_status = 0; }
7435 ;;
7436esac
7437
7438else
7439
7440 WARN_CXXFLAGS=$flag
7441 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
7442 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
7443 ac_status=$?
7444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7445 test $ac_status = 0; }
7446
7447fi
7448
7449else
7450 :
7451fi
7452
7453done
7454
7455as_fn_append WARN_CXXFLAGS " -Werror"
7456ac_ext=c
7457ac_cpp='$CPP $CPPFLAGS'
7458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460ac_compiler_gnu=$ac_cv_c_compiler_gnu
7461
7462
7463
Lars Volkerffe3e472017-05-10 22:50:32 +02007464
7465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC defined in fcntl.h" >&5
7466$as_echo_n "checking for O_CLOEXEC defined in fcntl.h... " >&6; }
7467if ${ac_cv_defined_O_CLOEXEC_fcntl_h+:} false; then :
7468 $as_echo_n "(cached) " >&6
7469else
7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471/* end confdefs.h. */
7472#include <fcntl.h>
7473int
7474main ()
7475{
7476
7477 #ifdef O_CLOEXEC
7478 int ok;
7479 #else
7480 choke me
7481 #endif
7482
7483 ;
7484 return 0;
7485}
7486_ACEOF
7487if ac_fn_c_try_compile "$LINENO"; then :
7488 ac_cv_defined_O_CLOEXEC_fcntl_h=yes
7489else
7490 ac_cv_defined_O_CLOEXEC_fcntl_h=no
7491fi
7492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493fi
7494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined_O_CLOEXEC_fcntl_h" >&5
7495$as_echo "$ac_cv_defined_O_CLOEXEC_fcntl_h" >&6; }
7496if test $ac_cv_defined_O_CLOEXEC_fcntl_h != "no"; then :
7497
7498else
7499
7500$as_echo "#define O_CLOEXEC 0" >>confdefs.h
7501
7502fi
7503
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00007504# Only build Linux client libs when compiling for Linux
7505case $host in
digit@chromium.org62d486b2012-08-21 14:34:48 +00007506 *-*-linux* | *-android* )
7507 LINUX_HOST=true
7508 ;;
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00007509esac
7510 if test x$LINUX_HOST = xtrue; then
7511 LINUX_HOST_TRUE=
7512 LINUX_HOST_FALSE='#'
7513else
7514 LINUX_HOST_TRUE='#'
7515 LINUX_HOST_FALSE=
7516fi
7517
7518
digit@chromium.org62d486b2012-08-21 14:34:48 +00007519# Only use Android support headers when compiling for Android
7520case $host in
7521 *-android*)
7522 ANDROID_HOST=true
7523 ;;
7524esac
7525 if test x$ANDROID_HOST = xtrue; then
7526 ANDROID_HOST_TRUE=
7527 ANDROID_HOST_FALSE='#'
7528else
7529 ANDROID_HOST_TRUE='#'
7530 ANDROID_HOST_FALSE=
7531fi
7532
7533
Mike Frysinger3f736ce2016-01-27 16:45:21 -05007534# Some tools (like mac ones) only support x86 currently.
7535case $host_cpu in
7536 i?86|x86_64)
7537 X86_HOST=true
7538 ;;
7539esac
7540 if test x$X86_HOST = xtrue; then
7541 X86_HOST_TRUE=
7542 X86_HOST_FALSE='#'
7543else
7544 X86_HOST_TRUE='#'
7545 X86_HOST_FALSE=
7546fi
7547
7548
ted.mielczareke574a2a2010-10-05 19:38:22 +00007549# Check whether --enable-processor was given.
7550if test "${enable_processor+set}" = set; then :
7551 enableval=$enable_processor; case "${enableval}" in
7552 yes)
7553 disable_processor=false
7554 ;;
7555 no)
7556 disable_processor=true
7557 ;;
7558 *)
mark@chromium.orge9165f42013-11-23 01:45:20 +00007559 as_fn_error $? "bad value ${enableval} for --disable-processor" "$LINENO" 5
ted.mielczareke574a2a2010-10-05 19:38:22 +00007560 ;;
7561 esac
7562else
7563 disable_processor=false
7564fi
7565
7566 if test x$disable_processor = xtrue; then
7567 DISABLE_PROCESSOR_TRUE=
7568 DISABLE_PROCESSOR_FALSE='#'
7569else
7570 DISABLE_PROCESSOR_TRUE='#'
7571 DISABLE_PROCESSOR_FALSE=
7572fi
7573
7574
ted.mielczarekdbf409c2011-02-28 14:05:22 +00007575# Check whether --enable-tools was given.
7576if test "${enable_tools+set}" = set; then :
7577 enableval=$enable_tools; case "${enableval}" in
7578 yes)
7579 disable_tools=false
7580 ;;
7581 no)
7582 disable_tools=true
7583 ;;
7584 *)
mark@chromium.orge9165f42013-11-23 01:45:20 +00007585 as_fn_error $? "bad value ${enableval} for --disable-tools" "$LINENO" 5
ted.mielczarekdbf409c2011-02-28 14:05:22 +00007586 ;;
7587 esac
7588else
7589 disable_tools=false
7590fi
7591
7592 if test x$disable_tools = xtrue; then
7593 DISABLE_TOOLS_TRUE=
7594 DISABLE_TOOLS_FALSE='#'
7595else
7596 DISABLE_TOOLS_TRUE='#'
7597 DISABLE_TOOLS_FALSE=
7598fi
7599
7600
7601if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue -a x$disable_tools = xtrue; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00007602 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 +00007603fi
7604
Mike Frysingerf820ead2016-01-25 19:27:56 -05007605# Check whether --enable-system-test-libs was given.
7606if test "${enable_system_test_libs+set}" = set; then :
7607 enableval=$enable_system_test_libs; case "${enableval}" in
7608 yes)
7609 system_test_libs=true
7610 ;;
7611 no)
7612 system_test_libs=false
7613 ;;
7614 *)
7615 as_fn_error $? "bad value ${enableval} for --enable-system-test-libs" "$LINENO" 5
7616 ;;
7617 esac
7618else
7619 system_test_libs=false
7620fi
7621
7622 if test x$system_test_libs = xtrue; then
7623 SYSTEM_TEST_LIBS_TRUE=
7624 SYSTEM_TEST_LIBS_FALSE='#'
7625else
7626 SYSTEM_TEST_LIBS_TRUE='#'
7627 SYSTEM_TEST_LIBS_FALSE=
7628fi
7629
7630
7631
7632
7633
7634
7635
7636
7637if test x$system_test_libs = xtrue; then
7638 if test -n "$ac_tool_prefix"; then
7639 # Extract the first word of "${ac_tool_prefix}gmock-config", so it can be a program name with args.
7640set dummy ${ac_tool_prefix}gmock-config; ac_word=$2
7641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7642$as_echo_n "checking for $ac_word... " >&6; }
7643if ${ac_cv_prog_GMOCK_CONFIG+:} false; then :
7644 $as_echo_n "(cached) " >&6
7645else
7646 if test -n "$GMOCK_CONFIG"; then
7647 ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
7648else
7649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650for as_dir in $PATH
7651do
7652 IFS=$as_save_IFS
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
7655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7656 ac_cv_prog_GMOCK_CONFIG="${ac_tool_prefix}gmock-config"
7657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 break 2
7659 fi
7660done
7661 done
7662IFS=$as_save_IFS
7663
7664fi
7665fi
7666GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
7667if test -n "$GMOCK_CONFIG"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMOCK_CONFIG" >&5
7669$as_echo "$GMOCK_CONFIG" >&6; }
7670else
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672$as_echo "no" >&6; }
7673fi
7674
7675
7676fi
7677if test -z "$ac_cv_prog_GMOCK_CONFIG"; then
7678 ac_ct_GMOCK_CONFIG=$GMOCK_CONFIG
7679 # Extract the first word of "gmock-config", so it can be a program name with args.
7680set dummy gmock-config; ac_word=$2
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682$as_echo_n "checking for $ac_word... " >&6; }
7683if ${ac_cv_prog_ac_ct_GMOCK_CONFIG+:} false; then :
7684 $as_echo_n "(cached) " >&6
7685else
7686 if test -n "$ac_ct_GMOCK_CONFIG"; then
7687 ac_cv_prog_ac_ct_GMOCK_CONFIG="$ac_ct_GMOCK_CONFIG" # Let the user override the test.
7688else
7689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690for as_dir in $PATH
7691do
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_ac_ct_GMOCK_CONFIG="gmock-config"
7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7699 fi
7700done
7701 done
7702IFS=$as_save_IFS
7703
7704fi
7705fi
7706ac_ct_GMOCK_CONFIG=$ac_cv_prog_ac_ct_GMOCK_CONFIG
7707if test -n "$ac_ct_GMOCK_CONFIG"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GMOCK_CONFIG" >&5
7709$as_echo "$ac_ct_GMOCK_CONFIG" >&6; }
7710else
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712$as_echo "no" >&6; }
7713fi
7714
7715 if test "x$ac_ct_GMOCK_CONFIG" = x; then
7716 GMOCK_CONFIG=""
7717 else
7718 case $cross_compiling:$ac_tool_warned in
7719yes:)
7720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7722ac_tool_warned=yes ;;
7723esac
7724 GMOCK_CONFIG=$ac_ct_GMOCK_CONFIG
7725 fi
7726else
7727 GMOCK_CONFIG="$ac_cv_prog_GMOCK_CONFIG"
7728fi
7729
7730 if test -n "$ac_tool_prefix"; then
7731 # Extract the first word of "${ac_tool_prefix}gtest-config", so it can be a program name with args.
7732set dummy ${ac_tool_prefix}gtest-config; ac_word=$2
7733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7734$as_echo_n "checking for $ac_word... " >&6; }
7735if ${ac_cv_prog_GTEST_CONFIG+:} false; then :
7736 $as_echo_n "(cached) " >&6
7737else
7738 if test -n "$GTEST_CONFIG"; then
7739 ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
7740else
7741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742for as_dir in $PATH
7743do
7744 IFS=$as_save_IFS
7745 test -z "$as_dir" && as_dir=.
7746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7748 ac_cv_prog_GTEST_CONFIG="${ac_tool_prefix}gtest-config"
7749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 break 2
7751 fi
7752done
7753 done
7754IFS=$as_save_IFS
7755
7756fi
7757fi
7758GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
7759if test -n "$GTEST_CONFIG"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
7761$as_echo "$GTEST_CONFIG" >&6; }
7762else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764$as_echo "no" >&6; }
7765fi
7766
7767
7768fi
7769if test -z "$ac_cv_prog_GTEST_CONFIG"; then
7770 ac_ct_GTEST_CONFIG=$GTEST_CONFIG
7771 # Extract the first word of "gtest-config", so it can be a program name with args.
7772set dummy gtest-config; ac_word=$2
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774$as_echo_n "checking for $ac_word... " >&6; }
7775if ${ac_cv_prog_ac_ct_GTEST_CONFIG+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777else
7778 if test -n "$ac_ct_GTEST_CONFIG"; then
7779 ac_cv_prog_ac_ct_GTEST_CONFIG="$ac_ct_GTEST_CONFIG" # Let the user override the test.
7780else
7781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782for as_dir in $PATH
7783do
7784 IFS=$as_save_IFS
7785 test -z "$as_dir" && as_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
7787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7788 ac_cv_prog_ac_ct_GTEST_CONFIG="gtest-config"
7789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 break 2
7791 fi
7792done
7793 done
7794IFS=$as_save_IFS
7795
7796fi
7797fi
7798ac_ct_GTEST_CONFIG=$ac_cv_prog_ac_ct_GTEST_CONFIG
7799if test -n "$ac_ct_GTEST_CONFIG"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GTEST_CONFIG" >&5
7801$as_echo "$ac_ct_GTEST_CONFIG" >&6; }
7802else
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804$as_echo "no" >&6; }
7805fi
7806
7807 if test "x$ac_ct_GTEST_CONFIG" = x; then
7808 GTEST_CONFIG=""
7809 else
7810 case $cross_compiling:$ac_tool_warned in
7811yes:)
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7814ac_tool_warned=yes ;;
7815esac
7816 GTEST_CONFIG=$ac_ct_GTEST_CONFIG
7817 fi
7818else
7819 GTEST_CONFIG="$ac_cv_prog_GTEST_CONFIG"
7820fi
7821
7822 GMOCK_CFLAGS=`$GMOCK_CONFIG --cppflags --cxxflags`
7823 GMOCK_LIBS=`$GMOCK_CONFIG --ldflags --libs`
7824 GTEST_CFLAGS=`$GTEST_CONFIG --cppflags --cxxflags`
7825 GTEST_LIBS=`$GTEST_CONFIG --ldflags --libs`
7826fi
7827
mmentovai0dbedc92006-09-25 21:16:15 +00007828# Check whether --enable-selftest was given.
jimblandy92b1f832009-12-23 22:23:49 +00007829if test "${enable_selftest+set}" = set; then :
mmentovai0dbedc92006-09-25 21:16:15 +00007830 enableval=$enable_selftest; case "${enableval}" in
7831 yes)
7832 selftest=true
7833 ;;
7834 no)
7835 selftest=false
7836 ;;
7837 *)
mark@chromium.orge9165f42013-11-23 01:45:20 +00007838 as_fn_error $? "bad value ${enableval} for --enable-selftest" "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +00007839 ;;
7840 esac
7841else
7842 selftest=false
7843fi
7844
mmentovaiaf3c43f2007-05-17 18:34:37 +00007845 if test x$selftest = xtrue; then
mmentovai0dbedc92006-09-25 21:16:15 +00007846 SELFTEST_TRUE=
7847 SELFTEST_FALSE='#'
7848else
7849 SELFTEST_TRUE='#'
7850 SELFTEST_FALSE=
7851fi
7852
7853
Ted Mielczarek2ecb2ba2016-10-24 15:16:28 -04007854
7855# Check whether --with-rust-demangle was given.
7856if test "${with_rust_demangle+set}" = set; then :
7857 withval=$with_rust_demangle; case "${withval}" in
7858 yes)
7859 as_fn_error $? "You must pass the path to the rust-demangle-capi crate for --with-rust-demangle" "$LINENO" 5
7860 ;;
7861 no)
7862 rust_demangle=false
7863 ;;
7864 *)
7865 if ! test -f "${withval}/Cargo.toml"; then
7866 as_fn_error $? "You must pass the path to the rust-demangle-capi crate for --with-rust-demangle" "$LINENO" 5
7867 fi
7868 RUST_DEMANGLE_CFLAGS="-DHAVE_RUST_DEMANGLE -I${withval}/target/include"
7869 RUST_DEMANGLE_LIBS="-L${withval}/target/release -lrust_demangle -lpthread -ldl"
7870 ;;
7871 esac
7872else
7873 rust_demangle=false
7874fi
7875
7876
7877
7878
Lars Volker49907e12018-01-31 13:29:11 -08007879
7880# Check whether --with-tests-as-root was given.
7881if test "${with_tests_as_root+set}" = set; then :
7882 withval=$with_tests_as_root; case "${withval}" in
7883 yes)
7884 tests_as_root=true
7885 ;;
7886 no)
7887 tests_as_root=false
7888 ;;
7889 *)
7890 as_fn_error $? "--with-tests-as-root can only be \"yes\" or \"no\"" "$LINENO" 5
7891 ;;
7892 esac
7893else
7894 tests_as_root=false
7895fi
7896
7897 if test x$tests_as_root = xtrue; then
7898 TESTS_AS_ROOT_TRUE=
7899 TESTS_AS_ROOT_FALSE='#'
7900else
7901 TESTS_AS_ROOT_TRUE='#'
7902 TESTS_AS_ROOT_FALSE=
7903fi
7904
7905
vapier@chromium.org1b309ed2014-08-27 02:10:55 +00007906ac_config_files="$ac_config_files breakpad.pc breakpad-client.pc Makefile"
7907
brynercb91a2f2006-08-25 21:14:45 +00007908
7909cat >confcache <<\_ACEOF
7910# This file is a shell script that caches the results of configure
7911# tests run on this system so they can be shared between configure
7912# scripts and configure runs, see configure's option --config-cache.
7913# It is not useful on other systems. If it contains results you don't
7914# want to keep, you may remove or edit it.
7915#
7916# config.status only pays attention to the cache file if you give it
7917# the --recheck option to rerun configure.
7918#
7919# `ac_cv_env_foo' variables (set or unset) will be overridden when
7920# loading this file, other *unset* `ac_cv_foo' will be assigned the
7921# following values.
7922
7923_ACEOF
7924
7925# The following way of writing the cache mishandles newlines in values,
7926# but we know of no workaround that is simple, portable, and efficient.
mmentovai8c2a4de2006-09-20 16:20:15 +00007927# So, we kill variables containing newlines.
brynercb91a2f2006-08-25 21:14:45 +00007928# Ultrix sh set writes to stderr and can't be redirected directly,
7929# and sets the high bit in the cache file unless we assign to the vars.
mmentovai8c2a4de2006-09-20 16:20:15 +00007930(
7931 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7932 eval ac_val=\$$ac_var
7933 case $ac_val in #(
7934 *${as_nl}*)
7935 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +00007936 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7937$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007938 esac
7939 case $ac_var in #(
7940 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +00007941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7942 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007943 esac ;;
7944 esac
7945 done
7946
brynercb91a2f2006-08-25 21:14:45 +00007947 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00007948 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7949 *${as_nl}ac_space=\ *)
jimblandy92b1f832009-12-23 22:23:49 +00007950 # `set' does not quote correctly, so add quotes: double-quote
7951 # substitution turns \\\\ into \\, and sed turns \\ into \.
brynercb91a2f2006-08-25 21:14:45 +00007952 sed -n \
7953 "s/'/'\\\\''/g;
7954 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mmentovai8c2a4de2006-09-20 16:20:15 +00007955 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00007956 *)
7957 # `set' quotes correctly as required by POSIX, so do not add quotes.
mmentovai8c2a4de2006-09-20 16:20:15 +00007958 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00007959 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007960 esac |
7961 sort
7962) |
brynercb91a2f2006-08-25 21:14:45 +00007963 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +00007964 /^ac_cv_env_/b end
brynercb91a2f2006-08-25 21:14:45 +00007965 t clear
mmentovai8c2a4de2006-09-20 16:20:15 +00007966 :clear
brynercb91a2f2006-08-25 21:14:45 +00007967 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7968 t end
mmentovai8c2a4de2006-09-20 16:20:15 +00007969 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7970 :end' >>confcache
7971if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7972 if test -w "$cache_file"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00007973 if test "x$cache_file" != "x/dev/null"; then
jimblandy92b1f832009-12-23 22:23:49 +00007974 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7975$as_echo "$as_me: updating cache $cache_file" >&6;}
mark@chromium.orge9165f42013-11-23 01:45:20 +00007976 if test ! -f "$cache_file" || test -h "$cache_file"; then
7977 cat confcache >"$cache_file"
7978 else
7979 case $cache_file in #(
7980 */* | ?:*)
7981 mv -f confcache "$cache_file"$$ &&
7982 mv -f "$cache_file"$$ "$cache_file" ;; #(
7983 *)
7984 mv -f confcache "$cache_file" ;;
7985 esac
7986 fi
7987 fi
brynercb91a2f2006-08-25 21:14:45 +00007988 else
jimblandy92b1f832009-12-23 22:23:49 +00007989 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7990$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00007991 fi
7992fi
7993rm -f confcache
7994
7995test "x$prefix" = xNONE && prefix=$ac_default_prefix
7996# Let make expand exec_prefix.
7997test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7998
brynercb91a2f2006-08-25 21:14:45 +00007999DEFS=-DHAVE_CONFIG_H
8000
8001ac_libobjs=
8002ac_ltlibobjs=
8003for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8004 # 1. Remove the extension, and $U if already installed.
mmentovai8c2a4de2006-09-20 16:20:15 +00008005 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
jimblandy92b1f832009-12-23 22:23:49 +00008006 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
mmentovai8c2a4de2006-09-20 16:20:15 +00008007 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8008 # will be set to the directory where LIBOBJS objects are built.
jimblandy92b1f832009-12-23 22:23:49 +00008009 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8010 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
brynercb91a2f2006-08-25 21:14:45 +00008011done
8012LIBOBJS=$ac_libobjs
8013
8014LTLIBOBJS=$ac_ltlibobjs
8015
8016
mark@chromium.orge9165f42013-11-23 01:45:20 +00008017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8018$as_echo_n "checking that generated files are newer than configure... " >&6; }
8019 if test -n "$am_sleep_pid"; then
8020 # Hide warnings about reused PIDs.
8021 wait $am_sleep_pid 2>/dev/null
8022 fi
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
8024$as_echo "done" >&6; }
jimblandy92b1f832009-12-23 22:23:49 +00008025 if test -n "$EXEEXT"; then
8026 am__EXEEXT_TRUE=
8027 am__EXEEXT_FALSE='#'
8028else
8029 am__EXEEXT_TRUE='#'
8030 am__EXEEXT_FALSE=
8031fi
8032
ted.mielczarek@gmail.com07bb2312013-12-10 12:28:11 +00008033if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8034 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
8035Usually this means the macro was only invoked conditionally." "$LINENO" 5
8036fi
brynercb91a2f2006-08-25 21:14:45 +00008037if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008038 as_fn_error $? "conditional \"AMDEP\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +00008039Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00008040fi
8041if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008042 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +00008043Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00008044fi
digit@chromium.org7e3c5382012-08-31 18:38:29 +00008045if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008046 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
digit@chromium.org7e3c5382012-08-31 18:38:29 +00008047Usually this means the macro was only invoked conditionally." "$LINENO" 5
8048fi
8049if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008050 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
digit@chromium.org7e3c5382012-08-31 18:38:29 +00008051Usually this means the macro was only invoked conditionally." "$LINENO" 5
8052fi
brynercb91a2f2006-08-25 21:14:45 +00008053if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008054 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +00008055Usually this means the macro was only invoked conditionally." "$LINENO" 5
8056fi
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00008057if test -z "${LINUX_HOST_TRUE}" && test -z "${LINUX_HOST_FALSE}"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008058 as_fn_error $? "conditional \"LINUX_HOST\" was never defined.
ted.mielczareke574a2a2010-10-05 19:38:22 +00008059Usually this means the macro was only invoked conditionally." "$LINENO" 5
8060fi
digit@chromium.org62d486b2012-08-21 14:34:48 +00008061if test -z "${ANDROID_HOST_TRUE}" && test -z "${ANDROID_HOST_FALSE}"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008062 as_fn_error $? "conditional \"ANDROID_HOST\" was never defined.
digit@chromium.org62d486b2012-08-21 14:34:48 +00008063Usually this means the macro was only invoked conditionally." "$LINENO" 5
8064fi
Mike Frysinger3f736ce2016-01-27 16:45:21 -05008065if test -z "${X86_HOST_TRUE}" && test -z "${X86_HOST_FALSE}"; then
8066 as_fn_error $? "conditional \"X86_HOST\" was never defined.
8067Usually this means the macro was only invoked conditionally." "$LINENO" 5
8068fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00008069if test -z "${DISABLE_PROCESSOR_TRUE}" && test -z "${DISABLE_PROCESSOR_FALSE}"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008070 as_fn_error $? "conditional \"DISABLE_PROCESSOR\" was never defined.
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00008071Usually this means the macro was only invoked conditionally." "$LINENO" 5
8072fi
ted.mielczarekdbf409c2011-02-28 14:05:22 +00008073if test -z "${DISABLE_TOOLS_TRUE}" && test -z "${DISABLE_TOOLS_FALSE}"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008074 as_fn_error $? "conditional \"DISABLE_TOOLS\" was never defined.
ted.mielczarekdbf409c2011-02-28 14:05:22 +00008075Usually this means the macro was only invoked conditionally." "$LINENO" 5
8076fi
Mike Frysingerf820ead2016-01-25 19:27:56 -05008077if test -z "${SYSTEM_TEST_LIBS_TRUE}" && test -z "${SYSTEM_TEST_LIBS_FALSE}"; then
8078 as_fn_error $? "conditional \"SYSTEM_TEST_LIBS\" was never defined.
8079Usually this means the macro was only invoked conditionally." "$LINENO" 5
8080fi
mmentovai0dbedc92006-09-25 21:16:15 +00008081if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008082 as_fn_error $? "conditional \"SELFTEST\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +00008083Usually this means the macro was only invoked conditionally." "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +00008084fi
Lars Volker49907e12018-01-31 13:29:11 -08008085if test -z "${TESTS_AS_ROOT_TRUE}" && test -z "${TESTS_AS_ROOT_FALSE}"; then
8086 as_fn_error $? "conditional \"TESTS_AS_ROOT\" was never defined.
8087Usually this means the macro was only invoked conditionally." "$LINENO" 5
8088fi
brynercb91a2f2006-08-25 21:14:45 +00008089
mark@chromium.orge9165f42013-11-23 01:45:20 +00008090: "${CONFIG_STATUS=./config.status}"
jimblandy92b1f832009-12-23 22:23:49 +00008091ac_write_fail=0
brynercb91a2f2006-08-25 21:14:45 +00008092ac_clean_files_save=$ac_clean_files
8093ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jimblandy92b1f832009-12-23 22:23:49 +00008094{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8095$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8096as_write_fail=0
8097cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00008098#! $SHELL
8099# Generated by $as_me.
8100# Run this file to recreate the current configuration.
8101# Compiler output produced by configure, useful for debugging
8102# configure, is in config.log if it exists.
8103
8104debug=false
8105ac_cs_recheck=false
8106ac_cs_silent=false
brynercb91a2f2006-08-25 21:14:45 +00008107
jimblandy92b1f832009-12-23 22:23:49 +00008108SHELL=\${CONFIG_SHELL-$SHELL}
8109export SHELL
8110_ASEOF
8111cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8112## -------------------- ##
8113## M4sh Initialization. ##
8114## -------------------- ##
brynercb91a2f2006-08-25 21:14:45 +00008115
mmentovaiaf3c43f2007-05-17 18:34:37 +00008116# Be more Bourne compatible
8117DUALCASE=1; export DUALCASE # for MKS sh
jimblandy92b1f832009-12-23 22:23:49 +00008118if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
brynercb91a2f2006-08-25 21:14:45 +00008119 emulate sh
8120 NULLCMD=:
jimblandy92b1f832009-12-23 22:23:49 +00008121 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
brynercb91a2f2006-08-25 21:14:45 +00008122 # is contrary to our usage. Disable this feature.
8123 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +00008124 setopt NO_GLOB_SUBST
8125else
jimblandy92b1f832009-12-23 22:23:49 +00008126 case `(set -o) 2>/dev/null` in #(
8127 *posix*) :
8128 set -o posix ;; #(
8129 *) :
8130 ;;
mmentovaiaf3c43f2007-05-17 18:34:37 +00008131esac
brynercb91a2f2006-08-25 21:14:45 +00008132fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00008133
8134
jimblandy92b1f832009-12-23 22:23:49 +00008135as_nl='
8136'
8137export as_nl
8138# Printing a long string crashes Solaris 7 /usr/bin/printf.
8139as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8140as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8141as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8142# Prefer a ksh shell builtin over an external printf program on Solaris,
8143# but without wasting forks for bash or zsh.
8144if test -z "$BASH_VERSION$ZSH_VERSION" \
8145 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8146 as_echo='print -r --'
8147 as_echo_n='print -rn --'
8148elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8149 as_echo='printf %s\n'
8150 as_echo_n='printf %s'
8151else
8152 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8153 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8154 as_echo_n='/usr/ucb/echo -n'
8155 else
8156 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8157 as_echo_n_body='eval
8158 arg=$1;
8159 case $arg in #(
8160 *"$as_nl"*)
8161 expr "X$arg" : "X\\(.*\\)$as_nl";
8162 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8163 esac;
8164 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8165 '
8166 export as_echo_n_body
8167 as_echo_n='sh -c $as_echo_n_body as_echo'
8168 fi
8169 export as_echo_body
8170 as_echo='sh -c $as_echo_body as_echo'
8171fi
brynercb91a2f2006-08-25 21:14:45 +00008172
8173# The user is always right.
8174if test "${PATH_SEPARATOR+set}" != set; then
jimblandy92b1f832009-12-23 22:23:49 +00008175 PATH_SEPARATOR=:
8176 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8177 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8178 PATH_SEPARATOR=';'
8179 }
mmentovai8c2a4de2006-09-20 16:20:15 +00008180fi
brynercb91a2f2006-08-25 21:14:45 +00008181
mmentovai8c2a4de2006-09-20 16:20:15 +00008182
8183# IFS
8184# We need space, tab and new line, in precisely that order. Quoting is
8185# there to prevent editors from complaining about space-tab.
8186# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8187# splitting by setting IFS to empty value.)
mmentovai8c2a4de2006-09-20 16:20:15 +00008188IFS=" "" $as_nl"
8189
8190# Find who we are. Look in the path if we contain no directory separator.
mark@chromium.orge9165f42013-11-23 01:45:20 +00008191as_myself=
jimblandy92b1f832009-12-23 22:23:49 +00008192case $0 in #((
mmentovai8c2a4de2006-09-20 16:20:15 +00008193 *[\\/]* ) as_myself=$0 ;;
8194 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +00008195for as_dir in $PATH
8196do
8197 IFS=$as_save_IFS
8198 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00008199 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8200 done
mmentovai8c2a4de2006-09-20 16:20:15 +00008201IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00008202
mmentovai8c2a4de2006-09-20 16:20:15 +00008203 ;;
8204esac
8205# We did not find ourselves, most probably we were run as `sh COMMAND'
8206# in which case we are not to be found in the path.
8207if test "x$as_myself" = x; then
8208 as_myself=$0
8209fi
8210if test ! -f "$as_myself"; then
jimblandy92b1f832009-12-23 22:23:49 +00008211 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8212 exit 1
mmentovai8c2a4de2006-09-20 16:20:15 +00008213fi
8214
jimblandy92b1f832009-12-23 22:23:49 +00008215# Unset variables that we do not need and which cause bugs (e.g. in
8216# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8217# suppresses any "Segmentation fault" message there. '((' could
8218# trigger a bug in pdksh 5.2.14.
8219for as_var in BASH_ENV ENV MAIL MAILPATH
8220do eval test x\${$as_var+set} = xset \
8221 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
mmentovai8c2a4de2006-09-20 16:20:15 +00008222done
8223PS1='$ '
8224PS2='> '
8225PS4='+ '
8226
8227# NLS nuisances.
jimblandy92b1f832009-12-23 22:23:49 +00008228LC_ALL=C
8229export LC_ALL
8230LANGUAGE=C
8231export LANGUAGE
mmentovai8c2a4de2006-09-20 16:20:15 +00008232
jimblandy92b1f832009-12-23 22:23:49 +00008233# CDPATH.
8234(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8235
8236
mark@chromium.orge9165f42013-11-23 01:45:20 +00008237# as_fn_error STATUS ERROR [LINENO LOG_FD]
8238# ----------------------------------------
jimblandy92b1f832009-12-23 22:23:49 +00008239# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8240# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
mark@chromium.orge9165f42013-11-23 01:45:20 +00008241# script with STATUS, using 1 if that was 0.
jimblandy92b1f832009-12-23 22:23:49 +00008242as_fn_error ()
8243{
mark@chromium.orge9165f42013-11-23 01:45:20 +00008244 as_status=$1; test $as_status -eq 0 && as_status=1
8245 if test "$4"; then
8246 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8247 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
jimblandy92b1f832009-12-23 22:23:49 +00008248 fi
mark@chromium.orge9165f42013-11-23 01:45:20 +00008249 $as_echo "$as_me: error: $2" >&2
jimblandy92b1f832009-12-23 22:23:49 +00008250 as_fn_exit $as_status
8251} # as_fn_error
8252
8253
8254# as_fn_set_status STATUS
8255# -----------------------
8256# Set $? to STATUS, without forking.
8257as_fn_set_status ()
8258{
8259 return $1
8260} # as_fn_set_status
8261
8262# as_fn_exit STATUS
8263# -----------------
8264# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8265as_fn_exit ()
8266{
8267 set +e
8268 as_fn_set_status $1
8269 exit $1
8270} # as_fn_exit
8271
8272# as_fn_unset VAR
8273# ---------------
8274# Portably unset VAR.
8275as_fn_unset ()
8276{
8277 { eval $1=; unset $1;}
8278}
8279as_unset=as_fn_unset
8280# as_fn_append VAR VALUE
8281# ----------------------
8282# Append the text in VALUE to the end of the definition contained in VAR. Take
8283# advantage of any shell optimizations that allow amortized linear growth over
8284# repeated appends, instead of the typical quadratic growth present in naive
8285# implementations.
8286if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8287 eval 'as_fn_append ()
8288 {
8289 eval $1+=\$2
8290 }'
8291else
8292 as_fn_append ()
8293 {
8294 eval $1=\$$1\$2
8295 }
8296fi # as_fn_append
8297
8298# as_fn_arith ARG...
8299# ------------------
8300# Perform arithmetic evaluation on the ARGs, and store the result in the
8301# global $as_val. Take advantage of shells that can avoid forks. The arguments
8302# must be portable across $(()) and expr.
8303if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8304 eval 'as_fn_arith ()
8305 {
8306 as_val=$(( $* ))
8307 }'
8308else
8309 as_fn_arith ()
8310 {
8311 as_val=`expr "$@" || test $? -eq 1`
8312 }
8313fi # as_fn_arith
8314
8315
mmentovai8c2a4de2006-09-20 16:20:15 +00008316if expr a : '\(a\)' >/dev/null 2>&1 &&
8317 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8318 as_expr=expr
8319else
8320 as_expr=false
8321fi
8322
8323if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8324 as_basename=basename
8325else
8326 as_basename=false
8327fi
8328
jimblandy92b1f832009-12-23 22:23:49 +00008329if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8330 as_dirname=dirname
8331else
8332 as_dirname=false
8333fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008334
mmentovai8c2a4de2006-09-20 16:20:15 +00008335as_me=`$as_basename -- "$0" ||
8336$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8337 X"$0" : 'X\(//\)$' \| \
8338 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +00008339$as_echo X/"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +00008340 sed '/^.*\/\([^/][^/]*\)\/*$/{
8341 s//\1/
8342 q
8343 }
8344 /^X\/\(\/\/\)$/{
8345 s//\1/
8346 q
8347 }
8348 /^X\/\(\/\).*/{
8349 s//\1/
8350 q
8351 }
8352 s/.*/./; q'`
8353
jimblandy92b1f832009-12-23 22:23:49 +00008354# Avoid depending upon Character Ranges.
8355as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8356as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8357as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8358as_cr_digits='0123456789'
8359as_cr_alnum=$as_cr_Letters$as_cr_digits
mmentovai8c2a4de2006-09-20 16:20:15 +00008360
8361ECHO_C= ECHO_N= ECHO_T=
jimblandy92b1f832009-12-23 22:23:49 +00008362case `echo -n x` in #(((((
mmentovai8c2a4de2006-09-20 16:20:15 +00008363-n*)
jimblandy92b1f832009-12-23 22:23:49 +00008364 case `echo 'xy\c'` in
mmentovai8c2a4de2006-09-20 16:20:15 +00008365 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
jimblandy92b1f832009-12-23 22:23:49 +00008366 xy) ECHO_C='\c';;
8367 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8368 ECHO_T=' ';;
mmentovai8c2a4de2006-09-20 16:20:15 +00008369 esac;;
8370*)
8371 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +00008372esac
8373
brynercb91a2f2006-08-25 21:14:45 +00008374rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +00008375if test -d conf$$.dir; then
8376 rm -f conf$$.dir/conf$$.file
8377else
8378 rm -f conf$$.dir
jimblandy92b1f832009-12-23 22:23:49 +00008379 mkdir conf$$.dir 2>/dev/null
mmentovai8c2a4de2006-09-20 16:20:15 +00008380fi
jimblandy92b1f832009-12-23 22:23:49 +00008381if (echo >conf$$.file) 2>/dev/null; then
8382 if ln -s conf$$.file conf$$ 2>/dev/null; then
8383 as_ln_s='ln -s'
8384 # ... but there are two gotchas:
8385 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8386 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
mark@chromium.orge9165f42013-11-23 01:45:20 +00008387 # In both cases, we have to default to `cp -pR'.
jimblandy92b1f832009-12-23 22:23:49 +00008388 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00008389 as_ln_s='cp -pR'
jimblandy92b1f832009-12-23 22:23:49 +00008390 elif ln conf$$.file conf$$ 2>/dev/null; then
8391 as_ln_s=ln
8392 else
mark@chromium.orge9165f42013-11-23 01:45:20 +00008393 as_ln_s='cp -pR'
jimblandy92b1f832009-12-23 22:23:49 +00008394 fi
brynercb91a2f2006-08-25 21:14:45 +00008395else
mark@chromium.orge9165f42013-11-23 01:45:20 +00008396 as_ln_s='cp -pR'
brynercb91a2f2006-08-25 21:14:45 +00008397fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008398rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8399rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +00008400
jimblandy92b1f832009-12-23 22:23:49 +00008401
8402# as_fn_mkdir_p
8403# -------------
8404# Create "$as_dir" as a directory, including parents if necessary.
8405as_fn_mkdir_p ()
8406{
8407
8408 case $as_dir in #(
8409 -*) as_dir=./$as_dir;;
8410 esac
8411 test -d "$as_dir" || eval $as_mkdir_p || {
8412 as_dirs=
8413 while :; do
8414 case $as_dir in #(
8415 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8416 *) as_qdir=$as_dir;;
8417 esac
8418 as_dirs="'$as_qdir' $as_dirs"
8419 as_dir=`$as_dirname -- "$as_dir" ||
8420$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8421 X"$as_dir" : 'X\(//\)[^/]' \| \
8422 X"$as_dir" : 'X\(//\)$' \| \
8423 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8424$as_echo X"$as_dir" |
8425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8426 s//\1/
8427 q
8428 }
8429 /^X\(\/\/\)[^/].*/{
8430 s//\1/
8431 q
8432 }
8433 /^X\(\/\/\)$/{
8434 s//\1/
8435 q
8436 }
8437 /^X\(\/\).*/{
8438 s//\1/
8439 q
8440 }
8441 s/.*/./; q'`
8442 test -d "$as_dir" && break
8443 done
8444 test -z "$as_dirs" || eval "mkdir $as_dirs"
mark@chromium.orge9165f42013-11-23 01:45:20 +00008445 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
jimblandy92b1f832009-12-23 22:23:49 +00008446
8447
8448} # as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +00008449if mkdir -p . 2>/dev/null; then
jimblandy92b1f832009-12-23 22:23:49 +00008450 as_mkdir_p='mkdir -p "$as_dir"'
brynercb91a2f2006-08-25 21:14:45 +00008451else
8452 test -d ./-p && rmdir ./-p
8453 as_mkdir_p=false
8454fi
8455
mark@chromium.orge9165f42013-11-23 01:45:20 +00008456
8457# as_fn_executable_p FILE
8458# -----------------------
8459# Test if FILE is an executable regular file.
8460as_fn_executable_p ()
8461{
8462 test -f "$1" && test -x "$1"
8463} # as_fn_executable_p
8464as_test_x='test -x'
8465as_executable_p=as_fn_executable_p
brynercb91a2f2006-08-25 21:14:45 +00008466
8467# Sed expression to map a string onto a valid CPP name.
8468as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8469
8470# Sed expression to map a string onto a valid variable name.
8471as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8472
8473
brynercb91a2f2006-08-25 21:14:45 +00008474exec 6>&1
jimblandy92b1f832009-12-23 22:23:49 +00008475## ----------------------------------- ##
8476## Main body of $CONFIG_STATUS script. ##
8477## ----------------------------------- ##
8478_ASEOF
8479test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00008480
jimblandy92b1f832009-12-23 22:23:49 +00008481cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8482# Save the log message, to keep $0 and so on meaningful, and to
brynercb91a2f2006-08-25 21:14:45 +00008483# report actual input values of CONFIG_FILES etc. instead of their
mmentovai8c2a4de2006-09-20 16:20:15 +00008484# values after options handling.
8485ac_log="
mmentovaie5dc6082007-02-14 19:51:05 +00008486This file was extended by breakpad $as_me 0.1, which was
mark@chromium.orge9165f42013-11-23 01:45:20 +00008487generated by GNU Autoconf 2.69. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00008488
8489 CONFIG_FILES = $CONFIG_FILES
8490 CONFIG_HEADERS = $CONFIG_HEADERS
8491 CONFIG_LINKS = $CONFIG_LINKS
8492 CONFIG_COMMANDS = $CONFIG_COMMANDS
8493 $ $0 $@
8494
mmentovai8c2a4de2006-09-20 16:20:15 +00008495on `(hostname || uname -n) 2>/dev/null | sed 1q`
8496"
8497
brynercb91a2f2006-08-25 21:14:45 +00008498_ACEOF
8499
jimblandy92b1f832009-12-23 22:23:49 +00008500case $ac_config_files in *"
8501"*) set x $ac_config_files; shift; ac_config_files=$*;;
8502esac
8503
8504case $ac_config_headers in *"
8505"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8506esac
8507
8508
8509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00008510# Files that config.status was made for.
mmentovai8c2a4de2006-09-20 16:20:15 +00008511config_files="$ac_config_files"
8512config_headers="$ac_config_headers"
8513config_commands="$ac_config_commands"
brynercb91a2f2006-08-25 21:14:45 +00008514
mmentovai8c2a4de2006-09-20 16:20:15 +00008515_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00008516
jimblandy92b1f832009-12-23 22:23:49 +00008517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00008518ac_cs_usage="\
jimblandy92b1f832009-12-23 22:23:49 +00008519\`$as_me' instantiates files and other configuration actions
8520from templates according to the current configuration. Unless the files
8521and actions are specified as TAGs, all are instantiated by default.
brynercb91a2f2006-08-25 21:14:45 +00008522
jimblandy92b1f832009-12-23 22:23:49 +00008523Usage: $0 [OPTION]... [TAG]...
brynercb91a2f2006-08-25 21:14:45 +00008524
8525 -h, --help print this help, then exit
mmentovaiaf3c43f2007-05-17 18:34:37 +00008526 -V, --version print version number and configuration settings, then exit
jimblandydc4029a2010-02-02 17:39:51 +00008527 --config print configuration, then exit
jimblandy92b1f832009-12-23 22:23:49 +00008528 -q, --quiet, --silent
8529 do not print progress messages
brynercb91a2f2006-08-25 21:14:45 +00008530 -d, --debug don't remove temporary files
8531 --recheck update $as_me by reconfiguring in the same conditions
jimblandy92b1f832009-12-23 22:23:49 +00008532 --file=FILE[:TEMPLATE]
8533 instantiate the configuration file FILE
8534 --header=FILE[:TEMPLATE]
8535 instantiate the configuration header FILE
brynercb91a2f2006-08-25 21:14:45 +00008536
8537Configuration files:
8538$config_files
8539
8540Configuration headers:
8541$config_headers
8542
8543Configuration commands:
8544$config_commands
8545
thestig@chromium.org43e6db72010-11-08 19:49:41 +00008546Report bugs to <google-breakpad-dev@googlegroups.com>."
brynercb91a2f2006-08-25 21:14:45 +00008547
mmentovai8c2a4de2006-09-20 16:20:15 +00008548_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00008549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
jimblandydc4029a2010-02-02 17:39:51 +00008550ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
brynercb91a2f2006-08-25 21:14:45 +00008551ac_cs_version="\\
mmentovaie5dc6082007-02-14 19:51:05 +00008552breakpad config.status 0.1
mark@chromium.orge9165f42013-11-23 01:45:20 +00008553configured by $0, generated by GNU Autoconf 2.69,
jimblandydc4029a2010-02-02 17:39:51 +00008554 with options \\"\$ac_cs_config\\"
brynercb91a2f2006-08-25 21:14:45 +00008555
mark@chromium.orge9165f42013-11-23 01:45:20 +00008556Copyright (C) 2012 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00008557This config.status script is free software; the Free Software Foundation
8558gives unlimited permission to copy, distribute and modify it."
mmentovai8c2a4de2006-09-20 16:20:15 +00008559
8560ac_pwd='$ac_pwd'
8561srcdir='$srcdir'
8562INSTALL='$INSTALL'
mmentovaiaf3c43f2007-05-17 18:34:37 +00008563MKDIR_P='$MKDIR_P'
jimblandy92b1f832009-12-23 22:23:49 +00008564AWK='$AWK'
8565test -n "\$AWK" || AWK=awk
brynercb91a2f2006-08-25 21:14:45 +00008566_ACEOF
8567
jimblandy92b1f832009-12-23 22:23:49 +00008568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8569# The default lists apply if the user does not specify any file.
brynercb91a2f2006-08-25 21:14:45 +00008570ac_need_defaults=:
8571while test $# != 0
8572do
8573 case $1 in
mark@chromium.orge9165f42013-11-23 01:45:20 +00008574 --*=?*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008575 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8576 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00008577 ac_shift=:
8578 ;;
mark@chromium.orge9165f42013-11-23 01:45:20 +00008579 --*=)
8580 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8581 ac_optarg=
8582 ac_shift=:
8583 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008584 *)
brynercb91a2f2006-08-25 21:14:45 +00008585 ac_option=$1
8586 ac_optarg=$2
8587 ac_shift=shift
8588 ;;
brynercb91a2f2006-08-25 21:14:45 +00008589 esac
8590
8591 case $ac_option in
8592 # Handling of the options.
brynercb91a2f2006-08-25 21:14:45 +00008593 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8594 ac_cs_recheck=: ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008595 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
jimblandy92b1f832009-12-23 22:23:49 +00008596 $as_echo "$ac_cs_version"; exit ;;
jimblandydc4029a2010-02-02 17:39:51 +00008597 --config | --confi | --conf | --con | --co | --c )
8598 $as_echo "$ac_cs_config"; exit ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008599 --debug | --debu | --deb | --de | --d | -d )
brynercb91a2f2006-08-25 21:14:45 +00008600 debug=: ;;
8601 --file | --fil | --fi | --f )
8602 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +00008603 case $ac_optarg in
8604 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
mark@chromium.orge9165f42013-11-23 01:45:20 +00008605 '') as_fn_error $? "missing file argument" ;;
jimblandy92b1f832009-12-23 22:23:49 +00008606 esac
8607 as_fn_append CONFIG_FILES " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +00008608 ac_need_defaults=false;;
8609 --header | --heade | --head | --hea )
8610 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +00008611 case $ac_optarg in
8612 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8613 esac
8614 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +00008615 ac_need_defaults=false;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008616 --he | --h)
8617 # Conflict between --help and --header
mark@chromium.orge9165f42013-11-23 01:45:20 +00008618 as_fn_error $? "ambiguous option: \`$1'
jimblandy92b1f832009-12-23 22:23:49 +00008619Try \`$0 --help' for more information.";;
mmentovai8c2a4de2006-09-20 16:20:15 +00008620 --help | --hel | -h )
jimblandy92b1f832009-12-23 22:23:49 +00008621 $as_echo "$ac_cs_usage"; exit ;;
brynercb91a2f2006-08-25 21:14:45 +00008622 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8623 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8624 ac_cs_silent=: ;;
8625
8626 # This is an error.
mark@chromium.orge9165f42013-11-23 01:45:20 +00008627 -*) as_fn_error $? "unrecognized option: \`$1'
jimblandy92b1f832009-12-23 22:23:49 +00008628Try \`$0 --help' for more information." ;;
brynercb91a2f2006-08-25 21:14:45 +00008629
jimblandy92b1f832009-12-23 22:23:49 +00008630 *) as_fn_append ac_config_targets " $1"
mmentovai8c2a4de2006-09-20 16:20:15 +00008631 ac_need_defaults=false ;;
brynercb91a2f2006-08-25 21:14:45 +00008632
8633 esac
8634 shift
8635done
8636
8637ac_configure_extra_args=
8638
8639if $ac_cs_silent; then
8640 exec 6>/dev/null
8641 ac_configure_extra_args="$ac_configure_extra_args --silent"
8642fi
8643
8644_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00008645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00008646if \$ac_cs_recheck; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008647 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
jimblandy92b1f832009-12-23 22:23:49 +00008648 shift
8649 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8650 CONFIG_SHELL='$SHELL'
mmentovai8c2a4de2006-09-20 16:20:15 +00008651 export CONFIG_SHELL
jimblandy92b1f832009-12-23 22:23:49 +00008652 exec "\$@"
brynercb91a2f2006-08-25 21:14:45 +00008653fi
8654
8655_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00008656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +00008657exec 5>>config.log
8658{
8659 echo
8660 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8661## Running $as_me. ##
8662_ASBOX
jimblandy92b1f832009-12-23 22:23:49 +00008663 $as_echo "$ac_log"
mmentovai8c2a4de2006-09-20 16:20:15 +00008664} >&5
brynercb91a2f2006-08-25 21:14:45 +00008665
mmentovai8c2a4de2006-09-20 16:20:15 +00008666_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00008667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00008668#
mmentovai8c2a4de2006-09-20 16:20:15 +00008669# INIT-COMMANDS
brynercb91a2f2006-08-25 21:14:45 +00008670#
brynercb91a2f2006-08-25 21:14:45 +00008671AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8672
8673_ACEOF
8674
jimblandy92b1f832009-12-23 22:23:49 +00008675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +00008676
8677# Handling of arguments.
brynercb91a2f2006-08-25 21:14:45 +00008678for ac_config_target in $ac_config_targets
8679do
mmentovai8c2a4de2006-09-20 16:20:15 +00008680 case $ac_config_target in
8681 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
8682 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
vapier@chromium.org1b309ed2014-08-27 02:10:55 +00008683 "breakpad.pc") CONFIG_FILES="$CONFIG_FILES breakpad.pc" ;;
8684 "breakpad-client.pc") CONFIG_FILES="$CONFIG_FILES breakpad-client.pc" ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008685 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8686
mark@chromium.orge9165f42013-11-23 01:45:20 +00008687 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
brynercb91a2f2006-08-25 21:14:45 +00008688 esac
8689done
8690
mmentovai8c2a4de2006-09-20 16:20:15 +00008691
brynercb91a2f2006-08-25 21:14:45 +00008692# If the user did not use the arguments to specify the items to instantiate,
8693# then the envvar interface is used. Set only those that are not.
8694# We use the long form for the default assignment because of an extremely
8695# bizarre bug on SunOS 4.1.3.
8696if $ac_need_defaults; then
8697 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8698 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8699 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8700fi
8701
8702# Have a temporary directory for convenience. Make it in the build tree
mmentovai8c2a4de2006-09-20 16:20:15 +00008703# simply because there is no reason against having it here, and in addition,
brynercb91a2f2006-08-25 21:14:45 +00008704# creating and moving files from /tmp can sometimes cause problems.
mmentovai8c2a4de2006-09-20 16:20:15 +00008705# Hook for its removal unless debugging.
8706# Note that there is a small window in which the directory will not be cleaned:
8707# after its creation but before its name has been assigned to `$tmp'.
brynercb91a2f2006-08-25 21:14:45 +00008708$debug ||
8709{
mark@chromium.orge9165f42013-11-23 01:45:20 +00008710 tmp= ac_tmp=
mmentovai8c2a4de2006-09-20 16:20:15 +00008711 trap 'exit_status=$?
mark@chromium.orge9165f42013-11-23 01:45:20 +00008712 : "${ac_tmp:=$tmp}"
8713 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
mmentovai8c2a4de2006-09-20 16:20:15 +00008714' 0
jimblandy92b1f832009-12-23 22:23:49 +00008715 trap 'as_fn_exit 1' 1 2 13 15
brynercb91a2f2006-08-25 21:14:45 +00008716}
brynercb91a2f2006-08-25 21:14:45 +00008717# Create a (secure) tmp directory for tmp files.
8718
8719{
mmentovai8c2a4de2006-09-20 16:20:15 +00008720 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
mark@chromium.orge9165f42013-11-23 01:45:20 +00008721 test -d "$tmp"
brynercb91a2f2006-08-25 21:14:45 +00008722} ||
8723{
mmentovai8c2a4de2006-09-20 16:20:15 +00008724 tmp=./conf$$-$RANDOM
8725 (umask 077 && mkdir "$tmp")
mark@chromium.orge9165f42013-11-23 01:45:20 +00008726} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8727ac_tmp=$tmp
brynercb91a2f2006-08-25 21:14:45 +00008728
jimblandy92b1f832009-12-23 22:23:49 +00008729# Set up the scripts for CONFIG_FILES section.
8730# No need to generate them if there are no CONFIG_FILES.
8731# This happens for instance with `./config.status config.h'.
mmentovai8c2a4de2006-09-20 16:20:15 +00008732if test -n "$CONFIG_FILES"; then
brynercb91a2f2006-08-25 21:14:45 +00008733
jimblandy92b1f832009-12-23 22:23:49 +00008734
8735ac_cr=`echo X | tr X '\015'`
8736# On cygwin, bash can eat \r inside `` if the user requested igncr.
8737# But we know of no other shell where ac_cr would be empty at this
8738# point, so we can use a bashism as a fallback.
8739if test "x$ac_cr" = x; then
8740 eval ac_cr=\$\'\\r\'
8741fi
8742ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8743if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008744 ac_cs_awk_cr='\\r'
jimblandy92b1f832009-12-23 22:23:49 +00008745else
8746 ac_cs_awk_cr=$ac_cr
8747fi
8748
mark@chromium.orge9165f42013-11-23 01:45:20 +00008749echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
brynercb91a2f2006-08-25 21:14:45 +00008750_ACEOF
8751
mmentovai8c2a4de2006-09-20 16:20:15 +00008752
jimblandy92b1f832009-12-23 22:23:49 +00008753{
8754 echo "cat >conf$$subs.awk <<_ACEOF" &&
8755 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8756 echo "_ACEOF"
8757} >conf$$subs.sh ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00008758 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8759ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
mmentovai8c2a4de2006-09-20 16:20:15 +00008760ac_delim='%!_!# '
8761for ac_last_try in false false false false false :; do
jimblandy92b1f832009-12-23 22:23:49 +00008762 . ./conf$$subs.sh ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00008763 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00008764
jimblandy92b1f832009-12-23 22:23:49 +00008765 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8766 if test $ac_delim_n = $ac_delim_num; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008767 break
8768 elif $ac_last_try; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008769 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00008770 else
8771 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
brynercb91a2f2006-08-25 21:14:45 +00008772 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008773done
jimblandy92b1f832009-12-23 22:23:49 +00008774rm -f conf$$subs.sh
mmentovai8c2a4de2006-09-20 16:20:15 +00008775
jimblandy92b1f832009-12-23 22:23:49 +00008776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mark@chromium.orge9165f42013-11-23 01:45:20 +00008777cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
mmentovai8c2a4de2006-09-20 16:20:15 +00008778_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00008779sed -n '
8780h
8781s/^/S["/; s/!.*/"]=/
8782p
8783g
8784s/^[^!]*!//
8785:repl
8786t repl
8787s/'"$ac_delim"'$//
8788t delim
8789:nl
8790h
jimblandydc4029a2010-02-02 17:39:51 +00008791s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +00008792t more1
8793s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8794p
8795n
8796b repl
8797:more1
8798s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8799p
8800g
8801s/.\{148\}//
8802t nl
8803:delim
8804h
jimblandydc4029a2010-02-02 17:39:51 +00008805s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +00008806t more2
8807s/["\\]/\\&/g; s/^/"/; s/$/"/
8808p
8809b
8810:more2
8811s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8812p
8813g
8814s/.\{148\}//
8815t delim
8816' <conf$$subs.awk | sed '
8817/^[^""]/{
8818 N
8819 s/\n//
8820}
8821' >>$CONFIG_STATUS || ac_write_fail=1
8822rm -f conf$$subs.awk
8823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8824_ACAWK
mark@chromium.orge9165f42013-11-23 01:45:20 +00008825cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
jimblandy92b1f832009-12-23 22:23:49 +00008826 for (key in S) S_is_set[key] = 1
8827 FS = ""
8828
8829}
8830{
8831 line = $ 0
8832 nfields = split(line, field, "@")
8833 substed = 0
8834 len = length(field[1])
8835 for (i = 2; i < nfields; i++) {
8836 key = field[i]
8837 keylen = length(key)
8838 if (S_is_set[key]) {
8839 value = S[key]
8840 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8841 len += length(value) + length(field[++i])
8842 substed = 1
8843 } else
8844 len += 1 + keylen
8845 }
8846
8847 print line
8848}
8849
8850_ACAWK
mmentovai8c2a4de2006-09-20 16:20:15 +00008851_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00008852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8853if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8854 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8855else
8856 cat
mark@chromium.orge9165f42013-11-23 01:45:20 +00008857fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8858 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00008859_ACEOF
8860
mark@chromium.orge9165f42013-11-23 01:45:20 +00008861# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8862# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
mmentovai8c2a4de2006-09-20 16:20:15 +00008863# trailing colons and then remove the whole line if VPATH becomes empty
8864# (actually we leave an empty line to preserve line numbers).
8865if test "x$srcdir" = x.; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008866 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8867h
8868s///
8869s/^/:/
8870s/[ ]*$/:/
8871s/:\$(srcdir):/:/g
8872s/:\${srcdir}:/:/g
8873s/:@srcdir@:/:/g
8874s/^:*//
mmentovai8c2a4de2006-09-20 16:20:15 +00008875s/:*$//
mark@chromium.orge9165f42013-11-23 01:45:20 +00008876x
8877s/\(=[ ]*\).*/\1/
8878G
8879s/\n//
mmentovai8c2a4de2006-09-20 16:20:15 +00008880s/^[^=]*=[ ]*$//
8881}'
8882fi
8883
jimblandy92b1f832009-12-23 22:23:49 +00008884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00008885fi # test -n "$CONFIG_FILES"
8886
jimblandy92b1f832009-12-23 22:23:49 +00008887# Set up the scripts for CONFIG_HEADERS section.
8888# No need to generate them if there are no CONFIG_HEADERS.
8889# This happens for instance with `./config.status Makefile'.
8890if test -n "$CONFIG_HEADERS"; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008891cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
jimblandy92b1f832009-12-23 22:23:49 +00008892BEGIN {
8893_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00008894
jimblandy92b1f832009-12-23 22:23:49 +00008895# Transform confdefs.h into an awk script `defines.awk', embedded as
8896# here-document in config.status, that substitutes the proper values into
8897# config.h.in to produce config.h.
8898
8899# Create a delimiter string that does not exist in confdefs.h, to ease
8900# handling of long lines.
8901ac_delim='%!_!# '
8902for ac_last_try in false false :; do
mark@chromium.orge9165f42013-11-23 01:45:20 +00008903 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8904 if test -z "$ac_tt"; then
jimblandy92b1f832009-12-23 22:23:49 +00008905 break
8906 elif $ac_last_try; then
mark@chromium.orge9165f42013-11-23 01:45:20 +00008907 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00008908 else
8909 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8910 fi
8911done
8912
8913# For the awk script, D is an array of macro values keyed by name,
8914# likewise P contains macro parameters if any. Preserve backslash
8915# newline sequences.
8916
8917ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8918sed -n '
8919s/.\{148\}/&'"$ac_delim"'/g
8920t rset
8921:rset
8922s/^[ ]*#[ ]*define[ ][ ]*/ /
8923t def
8924d
8925:def
8926s/\\$//
8927t bsnl
8928s/["\\]/\\&/g
8929s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8930D["\1"]=" \3"/p
8931s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8932d
8933:bsnl
8934s/["\\]/\\&/g
8935s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8936D["\1"]=" \3\\\\\\n"\\/p
8937t cont
8938s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8939t cont
8940d
8941:cont
8942n
8943s/.\{148\}/&'"$ac_delim"'/g
8944t clear
8945:clear
8946s/\\$//
8947t bsnlc
8948s/["\\]/\\&/g; s/^/"/; s/$/"/p
8949d
8950:bsnlc
8951s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8952b cont
8953' <confdefs.h | sed '
8954s/'"$ac_delim"'/"\\\
8955"/g' >>$CONFIG_STATUS || ac_write_fail=1
8956
8957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8958 for (key in D) D_is_set[key] = 1
8959 FS = ""
8960}
8961/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8962 line = \$ 0
8963 split(line, arg, " ")
8964 if (arg[1] == "#") {
8965 defundef = arg[2]
8966 mac1 = arg[3]
8967 } else {
8968 defundef = substr(arg[1], 2)
8969 mac1 = arg[2]
8970 }
8971 split(mac1, mac2, "(") #)
8972 macro = mac2[1]
8973 prefix = substr(line, 1, index(line, defundef) - 1)
8974 if (D_is_set[macro]) {
8975 # Preserve the white space surrounding the "#".
8976 print prefix "define", macro P[macro] D[macro]
8977 next
8978 } else {
8979 # Replace #undef with comments. This is necessary, for example,
8980 # in the case of _POSIX_SOURCE, which is predefined and required
8981 # on some systems where configure will not decide to define it.
8982 if (defundef == "undef") {
8983 print "/*", prefix defundef, macro, "*/"
8984 next
8985 }
8986 }
8987}
8988{ print }
8989_ACAWK
8990_ACEOF
8991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mark@chromium.orge9165f42013-11-23 01:45:20 +00008992 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00008993fi # test -n "$CONFIG_HEADERS"
8994
8995
8996eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8997shift
8998for ac_tag
mmentovai8c2a4de2006-09-20 16:20:15 +00008999do
9000 case $ac_tag in
9001 :[FHLC]) ac_mode=$ac_tag; continue;;
9002 esac
9003 case $ac_mode$ac_tag in
9004 :[FHL]*:*);;
mark@chromium.orge9165f42013-11-23 01:45:20 +00009005 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009006 :[FH]-) ac_tag=-:-;;
9007 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9008 esac
9009 ac_save_IFS=$IFS
9010 IFS=:
9011 set x $ac_tag
9012 IFS=$ac_save_IFS
9013 shift
9014 ac_file=$1
9015 shift
9016
9017 case $ac_mode in
9018 :L) ac_source=$1;;
9019 :[FH])
9020 ac_file_inputs=
9021 for ac_f
9022 do
9023 case $ac_f in
mark@chromium.orge9165f42013-11-23 01:45:20 +00009024 -) ac_f="$ac_tmp/stdin";;
mmentovai8c2a4de2006-09-20 16:20:15 +00009025 *) # Look for the file first in the build tree, then in the source tree
9026 # (if the path is not absolute). The absolute path cannot be DOS-style,
9027 # because $ac_f cannot contain `:'.
9028 test -f "$ac_f" ||
9029 case $ac_f in
9030 [\\/$]*) false;;
9031 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9032 esac ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00009033 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009034 esac
jimblandy92b1f832009-12-23 22:23:49 +00009035 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9036 as_fn_append ac_file_inputs " '$ac_f'"
mmentovai8c2a4de2006-09-20 16:20:15 +00009037 done
9038
9039 # Let's still pretend it is `configure' which instantiates (i.e., don't
9040 # use $as_me), people would be surprised to read:
9041 # /* config.h. Generated by config.status. */
jimblandy92b1f832009-12-23 22:23:49 +00009042 configure_input='Generated from '`
9043 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9044 `' by configure.'
mmentovai8c2a4de2006-09-20 16:20:15 +00009045 if test x"$ac_file" != x-; then
9046 configure_input="$ac_file. $configure_input"
jimblandy92b1f832009-12-23 22:23:49 +00009047 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9048$as_echo "$as_me: creating $ac_file" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +00009049 fi
jimblandy92b1f832009-12-23 22:23:49 +00009050 # Neutralize special characters interpreted by sed in replacement strings.
9051 case $configure_input in #(
9052 *\&* | *\|* | *\\* )
9053 ac_sed_conf_input=`$as_echo "$configure_input" |
9054 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9055 *) ac_sed_conf_input=$configure_input;;
9056 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00009057
9058 case $ac_tag in
mark@chromium.orge9165f42013-11-23 01:45:20 +00009059 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9060 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009061 esac
9062 ;;
brynercb91a2f2006-08-25 21:14:45 +00009063 esac
9064
mmentovai8c2a4de2006-09-20 16:20:15 +00009065 ac_dir=`$as_dirname -- "$ac_file" ||
brynercb91a2f2006-08-25 21:14:45 +00009066$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9067 X"$ac_file" : 'X\(//\)[^/]' \| \
9068 X"$ac_file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +00009069 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +00009070$as_echo X"$ac_file" |
mmentovai8c2a4de2006-09-20 16:20:15 +00009071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9072 s//\1/
9073 q
9074 }
9075 /^X\(\/\/\)[^/].*/{
9076 s//\1/
9077 q
9078 }
9079 /^X\(\/\/\)$/{
9080 s//\1/
9081 q
9082 }
9083 /^X\(\/\).*/{
9084 s//\1/
9085 q
9086 }
9087 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +00009088 as_dir="$ac_dir"; as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +00009089 ac_builddir=.
9090
mmentovai8c2a4de2006-09-20 16:20:15 +00009091case "$ac_dir" in
9092.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9093*)
jimblandy92b1f832009-12-23 22:23:49 +00009094 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00009095 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +00009096 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00009097 case $ac_top_builddir_sub in
9098 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9099 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9100 esac ;;
9101esac
9102ac_abs_top_builddir=$ac_pwd
9103ac_abs_builddir=$ac_pwd$ac_dir_suffix
9104# for backward compatibility:
9105ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00009106
9107case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00009108 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00009109 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00009110 ac_top_srcdir=$ac_top_builddir_sub
9111 ac_abs_top_srcdir=$ac_pwd ;;
9112 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00009113 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00009114 ac_top_srcdir=$srcdir
9115 ac_abs_top_srcdir=$srcdir ;;
9116 *) # Relative name.
9117 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9118 ac_top_srcdir=$ac_top_build_prefix$srcdir
9119 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00009120esac
mmentovai8c2a4de2006-09-20 16:20:15 +00009121ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00009122
brynercb91a2f2006-08-25 21:14:45 +00009123
mmentovai8c2a4de2006-09-20 16:20:15 +00009124 case $ac_mode in
9125 :F)
9126 #
9127 # CONFIG_FILE
9128 #
brynercb91a2f2006-08-25 21:14:45 +00009129
9130 case $INSTALL in
9131 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009132 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
brynercb91a2f2006-08-25 21:14:45 +00009133 esac
mmentovaiaf3c43f2007-05-17 18:34:37 +00009134 ac_MKDIR_P=$MKDIR_P
9135 case $MKDIR_P in
9136 [\\/$]* | ?:[\\/]* ) ;;
9137 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9138 esac
brynercb91a2f2006-08-25 21:14:45 +00009139_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00009140
jimblandy92b1f832009-12-23 22:23:49 +00009141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +00009142# If the template does not know about datarootdir, expand it.
9143# FIXME: This hack should be removed a few years after 2.60.
9144ac_datarootdir_hack=; ac_datarootdir_seen=
jimblandy92b1f832009-12-23 22:23:49 +00009145ac_sed_dataroot='
9146/datarootdir/ {
mmentovai8c2a4de2006-09-20 16:20:15 +00009147 p
9148 q
9149}
9150/@datadir@/p
9151/@docdir@/p
9152/@infodir@/p
9153/@localedir@/p
jimblandy92b1f832009-12-23 22:23:49 +00009154/@mandir@/p'
9155case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
mmentovai8c2a4de2006-09-20 16:20:15 +00009156*datarootdir*) ac_datarootdir_seen=yes;;
9157*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
jimblandy92b1f832009-12-23 22:23:49 +00009158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9159$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00009160_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00009161cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +00009162 ac_datarootdir_hack='
9163 s&@datadir@&$datadir&g
9164 s&@docdir@&$docdir&g
9165 s&@infodir@&$infodir&g
9166 s&@localedir@&$localedir&g
9167 s&@mandir@&$mandir&g
jimblandy92b1f832009-12-23 22:23:49 +00009168 s&\\\${datarootdir}&$datarootdir&g' ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009169esac
9170_ACEOF
9171
9172# Neutralize VPATH when `$srcdir' = `.'.
9173# Shell code in configure.ac might set extrasub.
9174# FIXME: do we really want to maintain this feature?
jimblandy92b1f832009-12-23 22:23:49 +00009175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9176ac_sed_extra="$ac_vpsub
brynercb91a2f2006-08-25 21:14:45 +00009177$extrasub
9178_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00009179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00009180:t
9181/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jimblandy92b1f832009-12-23 22:23:49 +00009182s|@configure_input@|$ac_sed_conf_input|;t t
mmentovai8c2a4de2006-09-20 16:20:15 +00009183s&@top_builddir@&$ac_top_builddir_sub&;t t
jimblandy92b1f832009-12-23 22:23:49 +00009184s&@top_build_prefix@&$ac_top_build_prefix&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +00009185s&@srcdir@&$ac_srcdir&;t t
9186s&@abs_srcdir@&$ac_abs_srcdir&;t t
9187s&@top_srcdir@&$ac_top_srcdir&;t t
9188s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9189s&@builddir@&$ac_builddir&;t t
9190s&@abs_builddir@&$ac_abs_builddir&;t t
9191s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9192s&@INSTALL@&$ac_INSTALL&;t t
mmentovaiaf3c43f2007-05-17 18:34:37 +00009193s&@MKDIR_P@&$ac_MKDIR_P&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +00009194$ac_datarootdir_hack
jimblandy92b1f832009-12-23 22:23:49 +00009195"
mark@chromium.orge9165f42013-11-23 01:45:20 +00009196eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9197 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00009198
mmentovai8c2a4de2006-09-20 16:20:15 +00009199test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
mark@chromium.orge9165f42013-11-23 01:45:20 +00009200 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9201 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9202 "$ac_tmp/out"`; test -z "$ac_out"; } &&
jimblandy92b1f832009-12-23 22:23:49 +00009203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mark@chromium.orge9165f42013-11-23 01:45:20 +00009204which seems to be undefined. Please make sure it is defined" >&5
jimblandy92b1f832009-12-23 22:23:49 +00009205$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mark@chromium.orge9165f42013-11-23 01:45:20 +00009206which seems to be undefined. Please make sure it is defined" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00009207
mark@chromium.orge9165f42013-11-23 01:45:20 +00009208 rm -f "$ac_tmp/stdin"
brynercb91a2f2006-08-25 21:14:45 +00009209 case $ac_file in
mark@chromium.orge9165f42013-11-23 01:45:20 +00009210 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9211 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
jimblandy92b1f832009-12-23 22:23:49 +00009212 esac \
mark@chromium.orge9165f42013-11-23 01:45:20 +00009213 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00009214 ;;
9215 :H)
9216 #
9217 # CONFIG_HEADER
9218 #
brynercb91a2f2006-08-25 21:14:45 +00009219 if test x"$ac_file" != x-; then
jimblandy92b1f832009-12-23 22:23:49 +00009220 {
9221 $as_echo "/* $configure_input */" \
mark@chromium.orge9165f42013-11-23 01:45:20 +00009222 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9223 } >"$ac_tmp/config.h" \
9224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9225 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
jimblandy92b1f832009-12-23 22:23:49 +00009226 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9227$as_echo "$as_me: $ac_file is unchanged" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00009228 else
jimblandy92b1f832009-12-23 22:23:49 +00009229 rm -f "$ac_file"
mark@chromium.orge9165f42013-11-23 01:45:20 +00009230 mv "$ac_tmp/config.h" "$ac_file" \
9231 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00009232 fi
9233 else
jimblandy92b1f832009-12-23 22:23:49 +00009234 $as_echo "/* $configure_input */" \
mark@chromium.orge9165f42013-11-23 01:45:20 +00009235 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9236 || as_fn_error $? "could not create -" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00009237 fi
jimblandy92b1f832009-12-23 22:23:49 +00009238# Compute "$ac_file"'s index in $config_headers.
9239_am_arg="$ac_file"
brynercb91a2f2006-08-25 21:14:45 +00009240_am_stamp_count=1
9241for _am_header in $config_headers :; do
9242 case $_am_header in
jimblandy92b1f832009-12-23 22:23:49 +00009243 $_am_arg | $_am_arg:* )
brynercb91a2f2006-08-25 21:14:45 +00009244 break ;;
9245 * )
9246 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9247 esac
9248done
jimblandy92b1f832009-12-23 22:23:49 +00009249echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9250$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9251 X"$_am_arg" : 'X\(//\)[^/]' \| \
9252 X"$_am_arg" : 'X\(//\)$' \| \
9253 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9254$as_echo X"$_am_arg" |
mmentovai8c2a4de2006-09-20 16:20:15 +00009255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9256 s//\1/
9257 q
9258 }
9259 /^X\(\/\/\)[^/].*/{
9260 s//\1/
9261 q
9262 }
9263 /^X\(\/\/\)$/{
9264 s//\1/
9265 q
9266 }
9267 /^X\(\/\).*/{
9268 s//\1/
9269 q
9270 }
9271 s/.*/./; q'`/stamp-h$_am_stamp_count
9272 ;;
brynercb91a2f2006-08-25 21:14:45 +00009273
jimblandy92b1f832009-12-23 22:23:49 +00009274 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9275$as_echo "$as_me: executing $ac_file commands" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +00009276 ;;
9277 esac
brynercb91a2f2006-08-25 21:14:45 +00009278
9279
mmentovai8c2a4de2006-09-20 16:20:15 +00009280 case $ac_file$ac_mode in
jimblandy92b1f832009-12-23 22:23:49 +00009281 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
mark@chromium.orge9165f42013-11-23 01:45:20 +00009282 # Older Autoconf quotes --file arguments for eval, but not when files
jimblandy92b1f832009-12-23 22:23:49 +00009283 # are listed without --file. Let's play safe and only enable the eval
9284 # if we detect the quoting.
9285 case $CONFIG_FILES in
9286 *\'*) eval set x "$CONFIG_FILES" ;;
9287 *) set x $CONFIG_FILES ;;
9288 esac
9289 shift
9290 for mf
9291 do
9292 # Strip MF so we end up with the name of the file.
9293 mf=`echo "$mf" | sed -e 's/:.*$//'`
9294 # Check whether this is an Automake generated Makefile or not.
mark@chromium.orge9165f42013-11-23 01:45:20 +00009295 # We used to match only the files named 'Makefile.in', but
jimblandy92b1f832009-12-23 22:23:49 +00009296 # some people rename them; so instead we look at the file content.
9297 # Grep'ing the first line is not enough: some people post-process
9298 # each Makefile.in and add a new line on top of each file to say so.
9299 # Grep'ing the whole file is not good either: AIX grep has a line
9300 # limit of 2048, but all sed's we know have understand at least 4000.
9301 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9302 dirpart=`$as_dirname -- "$mf" ||
brynercb91a2f2006-08-25 21:14:45 +00009303$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9304 X"$mf" : 'X\(//\)[^/]' \| \
9305 X"$mf" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +00009306 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +00009307$as_echo X"$mf" |
mmentovai8c2a4de2006-09-20 16:20:15 +00009308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9309 s//\1/
9310 q
9311 }
9312 /^X\(\/\/\)[^/].*/{
9313 s//\1/
9314 q
9315 }
9316 /^X\(\/\/\)$/{
9317 s//\1/
9318 q
9319 }
9320 /^X\(\/\).*/{
9321 s//\1/
9322 q
9323 }
9324 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +00009325 else
9326 continue
9327 fi
9328 # Extract the definition of DEPDIR, am__include, and am__quote
mark@chromium.orge9165f42013-11-23 01:45:20 +00009329 # from the Makefile without running 'make'.
jimblandy92b1f832009-12-23 22:23:49 +00009330 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9331 test -z "$DEPDIR" && continue
9332 am__include=`sed -n 's/^am__include = //p' < "$mf"`
mark@chromium.orge9165f42013-11-23 01:45:20 +00009333 test -z "$am__include" && continue
jimblandy92b1f832009-12-23 22:23:49 +00009334 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
jimblandy92b1f832009-12-23 22:23:49 +00009335 # Find all dependency output files, they are included files with
9336 # $(DEPDIR) in their names. We invoke sed twice because it is the
9337 # simplest approach to changing $(DEPDIR) to its actual value in the
9338 # expansion.
9339 for file in `sed -n "
9340 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
mark@chromium.orge9165f42013-11-23 01:45:20 +00009341 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
jimblandy92b1f832009-12-23 22:23:49 +00009342 # Make sure the directory exists.
9343 test -f "$dirpart/$file" && continue
9344 fdir=`$as_dirname -- "$file" ||
brynercb91a2f2006-08-25 21:14:45 +00009345$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9346 X"$file" : 'X\(//\)[^/]' \| \
9347 X"$file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +00009348 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +00009349$as_echo X"$file" |
mmentovai8c2a4de2006-09-20 16:20:15 +00009350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9351 s//\1/
9352 q
9353 }
9354 /^X\(\/\/\)[^/].*/{
9355 s//\1/
9356 q
9357 }
9358 /^X\(\/\/\)$/{
9359 s//\1/
9360 q
9361 }
9362 /^X\(\/\).*/{
9363 s//\1/
9364 q
9365 }
9366 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +00009367 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9368 # echo "creating $dirpart/$file"
9369 echo '# dummy' > "$dirpart/$file"
brynercb91a2f2006-08-25 21:14:45 +00009370 done
brynercb91a2f2006-08-25 21:14:45 +00009371 done
jimblandy92b1f832009-12-23 22:23:49 +00009372}
9373 ;;
brynercb91a2f2006-08-25 21:14:45 +00009374
mmentovai8c2a4de2006-09-20 16:20:15 +00009375 esac
9376done # for ac_tag
9377
brynercb91a2f2006-08-25 21:14:45 +00009378
jimblandy92b1f832009-12-23 22:23:49 +00009379as_fn_exit 0
brynercb91a2f2006-08-25 21:14:45 +00009380_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00009381ac_clean_files=$ac_clean_files_save
9382
jimblandy92b1f832009-12-23 22:23:49 +00009383test $ac_write_fail = 0 ||
mark@chromium.orge9165f42013-11-23 01:45:20 +00009384 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00009385
brynercb91a2f2006-08-25 21:14:45 +00009386
9387# configure is writing to config.log, and then calls config.status.
9388# config.status does its own redirection, appending to config.log.
9389# Unfortunately, on DOS this fails, as config.log is still kept open
9390# by configure, so config.status won't be able to write to it; its
9391# output is simply discarded. So we exec the FD to /dev/null,
9392# effectively closing config.log, so it can be properly (re)opened and
9393# appended to by config.status. When coming back to configure, we
9394# need to make the FD available again.
9395if test "$no_create" != yes; then
9396 ac_cs_success=:
9397 ac_config_status_args=
9398 test "$silent" = yes &&
9399 ac_config_status_args="$ac_config_status_args --quiet"
9400 exec 5>/dev/null
9401 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9402 exec 5>>config.log
9403 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9404 # would make configure fail if this is the last instruction.
mark@chromium.orge9165f42013-11-23 01:45:20 +00009405 $ac_cs_success || as_fn_exit 1
jimblandy92b1f832009-12-23 22:23:49 +00009406fi
9407if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9409$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00009410fi
9411