bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for breakpad 0.1. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4 | # |
thestig@chromium.org | 43e6db7 | 2010-11-08 19:49:41 +0000 | [diff] [blame] | 5 | # Report bugs to <google-breakpad-dev@googlegroups.com>. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6 | # |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 7 | # |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 9 | # |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20 | emulate sh |
| 21 | NULLCMD=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST |
| 26 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 32 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 33 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 34 | |
| 35 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_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. |
| 45 | if 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 --' |
| 49 | elif (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' |
| 52 | else |
| 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' |
| 72 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 73 | |
| 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 81 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 82 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 83 | |
| 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.) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 92 | as_myself= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 93 | case $0 in #(( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 94 | *[\\/]* ) as_myself=$0 ;; |
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 96 | for as_dir in $PATH |
| 97 | do |
| 98 | IFS=$as_save_IFS |
| 99 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 101 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 102 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 103 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 104 | ;; |
| 105 | esac |
| 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. |
| 108 | if test "x$as_myself" = x; then |
| 109 | as_myself=$0 |
| 110 | fi |
| 111 | if test ! -f "$as_myself"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 113 | exit 1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 114 | fi |
| 115 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 116 | # 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. |
| 120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 121 | do eval test x\${$as_var+set} = xset \ |
| 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 123 | done |
| 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 133 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 134 | # CDPATH. |
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 136 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 137 | # 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. |
| 145 | BASH_ENV=/dev/null |
| 146 | ENV=/dev/null |
| 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 148 | case $- in # (((( |
| 149 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 150 | *v* ) as_opts=-v ;; |
| 151 | *x* ) as_opts=-x ;; |
| 152 | * ) as_opts= ;; |
| 153 | esac |
| 154 | exec $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 |
| 158 | as_fn_exit 255 |
| 159 | fi |
| 160 | # We don't want this to propagate to other subprocesses. |
| 161 | { _as_can_reexec=; unset _as_can_reexec;} |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 162 | if 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 |
| 170 | else |
| 171 | case \`(set -o) 2>/dev/null\` in #( |
| 172 | *posix*) : |
| 173 | set -o posix ;; #( |
| 174 | *) : |
| 175 | ;; |
| 176 | esac |
| 177 | fi |
| 178 | " |
| 179 | as_required="as_fn_return () { (exit \$1); } |
| 180 | as_fn_success () { as_fn_return 0; } |
| 181 | as_fn_failure () { as_fn_return 1; } |
| 182 | as_fn_ret_success () { return 0; } |
| 183 | as_fn_ret_failure () { return 1; } |
| 184 | |
| 185 | exitcode=0 |
| 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 191 | |
| 192 | else |
| 193 | exitcode=1; echo positional parameters were not saved. |
| 194 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 195 | test x\$exitcode = x0 || exit 1 |
| 196 | test -x / || exit 1" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 197 | 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 |
| 201 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 202 | if (eval "$as_required") 2>/dev/null; then : |
| 203 | as_have_required=yes |
| 204 | else |
| 205 | as_have_required=no |
| 206 | fi |
| 207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 208 | |
| 209 | else |
| 210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 211 | as_found=false |
| 212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 213 | do |
| 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 |
| 227 | fi |
| 228 | fi |
| 229 | done;; |
| 230 | esac |
| 231 | as_found=false |
| 232 | done |
| 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 |
| 236 | fi; } |
| 237 | IFS=$as_save_IFS |
| 238 | |
| 239 | |
| 240 | if test "x$CONFIG_SHELL" != x; then : |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 241 | 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. |
| 246 | BASH_ENV=/dev/null |
| 247 | ENV=/dev/null |
| 248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 249 | case $- in # (((( |
| 250 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 251 | *v* ) as_opts=-v ;; |
| 252 | *x* ) as_opts=-x ;; |
| 253 | * ) as_opts= ;; |
| 254 | esac |
| 255 | exec $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 |
| 259 | exit 255 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 260 | fi |
| 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.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 270 | $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." |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 274 | fi |
| 275 | exit 1 |
| 276 | fi |
| 277 | fi |
| 278 | fi |
| 279 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 280 | export SHELL |
| 281 | # Unset more variables known to interfere with behavior of common tools. |
| 282 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 283 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 284 | |
| 285 | ## --------------------- ## |
| 286 | ## M4sh Shell Functions. ## |
| 287 | ## --------------------- ## |
| 288 | # as_fn_unset VAR |
| 289 | # --------------- |
| 290 | # Portably unset VAR. |
| 291 | as_fn_unset () |
| 292 | { |
| 293 | { eval $1=; unset $1;} |
| 294 | } |
| 295 | as_unset=as_fn_unset |
| 296 | |
| 297 | # as_fn_set_status STATUS |
| 298 | # ----------------------- |
| 299 | # Set $? to STATUS, without forking. |
| 300 | as_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. |
| 308 | as_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. |
| 318 | as_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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 359 | |
| 360 | |
| 361 | } # as_fn_mkdir_p |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 362 | |
| 363 | # as_fn_executable_p FILE |
| 364 | # ----------------------- |
| 365 | # Test if FILE is an executable regular file. |
| 366 | as_fn_executable_p () |
| 367 | { |
| 368 | test -f "$1" && test -x "$1" |
| 369 | } # as_fn_executable_p |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 370 | # 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. |
| 376 | if (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 | }' |
| 381 | else |
| 382 | as_fn_append () |
| 383 | { |
| 384 | eval $1=\$$1\$2 |
| 385 | } |
| 386 | fi # 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. |
| 393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 394 | eval 'as_fn_arith () |
| 395 | { |
| 396 | as_val=$(( $* )) |
| 397 | }' |
| 398 | else |
| 399 | as_fn_arith () |
| 400 | { |
| 401 | as_val=`expr "$@" || test $? -eq 1` |
| 402 | } |
| 403 | fi # as_fn_arith |
| 404 | |
| 405 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 407 | # ---------------------------------------- |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 408 | # 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 410 | # script with STATUS, using 1 if that was 0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 411 | as_fn_error () |
| 412 | { |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 413 | 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 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 417 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 418 | $as_echo "$as_me: error: $2" >&2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 419 | as_fn_exit $as_status |
| 420 | } # as_fn_error |
| 421 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 424 | as_expr=expr |
| 425 | else |
| 426 | as_expr=false |
| 427 | fi |
| 428 | |
| 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 430 | as_basename=basename |
| 431 | else |
| 432 | as_basename=false |
| 433 | fi |
| 434 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 436 | as_dirname=dirname |
| 437 | else |
| 438 | as_dirname=false |
| 439 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 440 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 441 | as_me=`$as_basename -- "$0" || |
| 442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 443 | X"$0" : 'X\(//\)$' \| \ |
| 444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 445 | $as_echo X/"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 446 | 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 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 460 | # Avoid depending upon Character Ranges. |
| 461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 464 | as_cr_digits='0123456789' |
| 465 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 466 | |
| 467 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 468 | 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. :-) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 473 | sed -n ' |
| 474 | p |
| 475 | /[$]LINENO/= |
| 476 | ' <$as_myself | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 477 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 478 | s/[$]LINENO.*/&-/ |
| 479 | t lineno |
| 480 | b |
| 481 | :lineno |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 482 | N |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 483 | :loop |
| 484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 485 | t loop |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 486 | s/-\n.*// |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 487 | ' >$as_me.lineno && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 488 | chmod +x "$as_me.lineno" || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 490 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 491 | # 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 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 495 | # 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 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 497 | # original and so on. Autoconf is especially sensitive to this). |
| 498 | . "./$as_me.lineno" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 499 | # Exit status is that of the last command. |
| 500 | exit |
| 501 | } |
| 502 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 503 | ECHO_C= ECHO_N= ECHO_T= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 504 | case `echo -n x` in #((((( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 505 | -n*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 506 | case `echo 'xy\c'` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 508 | xy) ECHO_C='\c';; |
| 509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 510 | ECHO_T=' ';; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 511 | esac;; |
| 512 | *) |
| 513 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 514 | esac |
| 515 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 516 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 517 | if test -d conf$$.dir; then |
| 518 | rm -f conf$$.dir/conf$$.file |
| 519 | else |
| 520 | rm -f conf$$.dir |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 521 | mkdir conf$$.dir 2>/dev/null |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 522 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 523 | if (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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 529 | # In both cases, we have to default to `cp -pR'. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 531 | as_ln_s='cp -pR' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 533 | as_ln_s=ln |
| 534 | else |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 535 | as_ln_s='cp -pR' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 536 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 537 | else |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 538 | as_ln_s='cp -pR' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 539 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 541 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 542 | |
| 543 | if mkdir -p . 2>/dev/null; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 544 | as_mkdir_p='mkdir -p "$as_dir"' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 545 | else |
| 546 | test -d ./-p && rmdir ./-p |
| 547 | as_mkdir_p=false |
| 548 | fi |
| 549 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 550 | as_test_x='test -x' |
| 551 | as_executable_p=as_fn_executable_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 552 | |
| 553 | # Sed expression to map a string onto a valid CPP name. |
| 554 | as_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. |
| 557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 558 | |
| 559 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 561 | exec 6>&1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 562 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 563 | # Name of the host. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 565 | # so uname gets run too. |
| 566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 567 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 568 | # |
| 569 | # Initializations. |
| 570 | # |
| 571 | ac_default_prefix=/usr/local |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 572 | ac_clean_files= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 573 | ac_config_libobj_dir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 574 | LIBOBJS= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 575 | cross_compiling=no |
| 576 | subdirs= |
| 577 | MFLAGS= |
| 578 | MAKEFLAGS= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 579 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 580 | # Identity of this package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 581 | PACKAGE_NAME='breakpad' |
| 582 | PACKAGE_TARNAME='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 583 | PACKAGE_VERSION='0.1' |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 584 | PACKAGE_STRING='breakpad 0.1' |
thestig@chromium.org | 43e6db7 | 2010-11-08 19:49:41 +0000 | [diff] [blame] | 585 | PACKAGE_BUGREPORT='google-breakpad-dev@googlegroups.com' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 586 | PACKAGE_URL='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 587 | |
Mark Mentovai | f74c85d | 2015-09-23 10:46:55 -0400 | [diff] [blame] | 588 | ac_unique_file="README.md" |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 589 | # Factoring default headers for most tests. |
| 590 | ac_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 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 625 | ac_subst_vars='am__EXEEXT_FALSE |
| 626 | am__EXEEXT_TRUE |
| 627 | LTLIBOBJS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 628 | LIBOBJS |
Lars Volker | 49907e1 | 2018-01-31 13:29:11 -0800 | [diff] [blame^] | 629 | TESTS_AS_ROOT_FALSE |
| 630 | TESTS_AS_ROOT_TRUE |
Ted Mielczarek | 2ecb2ba | 2016-10-24 15:16:28 -0400 | [diff] [blame] | 631 | RUST_DEMANGLE_LIBS |
| 632 | RUST_DEMANGLE_CFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 633 | SELFTEST_FALSE |
| 634 | SELFTEST_TRUE |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 635 | GTEST_LIBS |
| 636 | GTEST_CFLAGS |
| 637 | GTEST_CONFIG |
| 638 | GMOCK_LIBS |
| 639 | GMOCK_CFLAGS |
| 640 | GMOCK_CONFIG |
| 641 | SYSTEM_TEST_LIBS_FALSE |
| 642 | SYSTEM_TEST_LIBS_TRUE |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 643 | DISABLE_TOOLS_FALSE |
| 644 | DISABLE_TOOLS_TRUE |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 645 | DISABLE_PROCESSOR_FALSE |
| 646 | DISABLE_PROCESSOR_TRUE |
Mike Frysinger | 3f736ce | 2016-01-27 16:45:21 -0500 | [diff] [blame] | 647 | X86_HOST_FALSE |
| 648 | X86_HOST_TRUE |
digit@chromium.org | 62d486b | 2012-08-21 14:34:48 +0000 | [diff] [blame] | 649 | ANDROID_HOST_FALSE |
| 650 | ANDROID_HOST_TRUE |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 651 | LINUX_HOST_FALSE |
| 652 | LINUX_HOST_TRUE |
Mike Frysinger | 6cc0375 | 2017-02-06 15:10:13 -0500 | [diff] [blame] | 653 | WARN_CXXFLAGS |
Lei Zhang | 728bcdf | 2016-01-08 00:27:48 -0800 | [diff] [blame] | 654 | HAVE_CXX11 |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 655 | PTHREAD_CFLAGS |
| 656 | PTHREAD_LIBS |
| 657 | PTHREAD_CC |
| 658 | ax_pthread_config |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 659 | EGREP |
| 660 | GREP |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 661 | RANLIB |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 662 | am__fastdepCXX_FALSE |
| 663 | am__fastdepCXX_TRUE |
| 664 | CXXDEPMODE |
| 665 | ac_ct_CXX |
| 666 | CXXFLAGS |
| 667 | CXX |
| 668 | CPP |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 669 | am__fastdepCCAS_FALSE |
| 670 | am__fastdepCCAS_TRUE |
| 671 | CCASDEPMODE |
| 672 | CCASFLAGS |
| 673 | CCAS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 674 | am__fastdepCC_FALSE |
| 675 | am__fastdepCC_TRUE |
| 676 | CCDEPMODE |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 677 | am__nodep |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 678 | AMDEPBACKSLASH |
| 679 | AMDEP_FALSE |
| 680 | AMDEP_TRUE |
| 681 | am__quote |
| 682 | am__include |
| 683 | DEPDIR |
| 684 | OBJEXT |
| 685 | EXEEXT |
| 686 | ac_ct_CC |
| 687 | CPPFLAGS |
| 688 | LDFLAGS |
| 689 | CFLAGS |
| 690 | CC |
Mike Frysinger | f217ae4 | 2015-11-11 13:43:14 -0500 | [diff] [blame] | 691 | ac_ct_AR |
| 692 | AR |
ted.mielczarek@gmail.com | 07bb231 | 2013-12-10 12:28:11 +0000 | [diff] [blame] | 693 | MAINT |
| 694 | MAINTAINER_MODE_FALSE |
| 695 | MAINTAINER_MODE_TRUE |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 696 | AM_BACKSLASH |
| 697 | AM_DEFAULT_VERBOSITY |
| 698 | AM_DEFAULT_V |
| 699 | AM_V |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 700 | am__untar |
| 701 | am__tar |
| 702 | AMTAR |
| 703 | am__leading_dot |
| 704 | SET_MAKE |
| 705 | AWK |
| 706 | mkdir_p |
| 707 | MKDIR_P |
| 708 | INSTALL_STRIP_PROGRAM |
| 709 | STRIP |
| 710 | install_sh |
| 711 | MAKEINFO |
| 712 | AUTOHEADER |
| 713 | AUTOMAKE |
| 714 | AUTOCONF |
| 715 | ACLOCAL |
| 716 | VERSION |
| 717 | PACKAGE |
| 718 | CYGPATH_W |
| 719 | am__isrc |
| 720 | INSTALL_DATA |
| 721 | INSTALL_SCRIPT |
| 722 | INSTALL_PROGRAM |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 723 | host_os |
| 724 | host_vendor |
| 725 | host_cpu |
| 726 | host |
| 727 | build_os |
| 728 | build_vendor |
| 729 | build_cpu |
| 730 | build |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 731 | target_alias |
| 732 | host_alias |
| 733 | build_alias |
| 734 | LIBS |
| 735 | ECHO_T |
| 736 | ECHO_N |
| 737 | ECHO_C |
| 738 | DEFS |
| 739 | mandir |
| 740 | localedir |
| 741 | libdir |
| 742 | psdir |
| 743 | pdfdir |
| 744 | dvidir |
| 745 | htmldir |
| 746 | infodir |
| 747 | docdir |
| 748 | oldincludedir |
| 749 | includedir |
| 750 | localstatedir |
| 751 | sharedstatedir |
| 752 | sysconfdir |
| 753 | datadir |
| 754 | datarootdir |
| 755 | libexecdir |
| 756 | sbindir |
| 757 | bindir |
| 758 | program_transform_name |
| 759 | prefix |
| 760 | exec_prefix |
| 761 | PACKAGE_URL |
| 762 | PACKAGE_BUGREPORT |
| 763 | PACKAGE_STRING |
| 764 | PACKAGE_VERSION |
| 765 | PACKAGE_TARNAME |
| 766 | PACKAGE_NAME |
| 767 | PATH_SEPARATOR |
| 768 | SHELL' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 769 | ac_subst_files='' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 770 | ac_user_opts=' |
| 771 | enable_option_checking |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 772 | enable_silent_rules |
ted.mielczarek@gmail.com | 07bb231 | 2013-12-10 12:28:11 +0000 | [diff] [blame] | 773 | enable_maintainer_mode |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 774 | enable_dependency_tracking |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 775 | enable_m32 |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 776 | enable_largefile |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 777 | enable_processor |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 778 | enable_tools |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 779 | enable_system_test_libs |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 780 | enable_selftest |
Ted Mielczarek | 2ecb2ba | 2016-10-24 15:16:28 -0400 | [diff] [blame] | 781 | with_rust_demangle |
Lars Volker | 49907e1 | 2018-01-31 13:29:11 -0800 | [diff] [blame^] | 782 | with_tests_as_root |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 783 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 784 | ac_precious_vars='build_alias |
| 785 | host_alias |
| 786 | target_alias |
| 787 | CC |
| 788 | CFLAGS |
| 789 | LDFLAGS |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 790 | LIBS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 791 | CPPFLAGS |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 792 | CCAS |
| 793 | CCASFLAGS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 794 | CPP |
| 795 | CXX |
| 796 | CXXFLAGS |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 797 | CCC |
| 798 | GMOCK_CONFIG |
| 799 | GMOCK_CFLAGS |
| 800 | GMOCK_LIBS |
| 801 | GTEST_CONFIG |
| 802 | GTEST_CFLAGS |
Ted Mielczarek | 2ecb2ba | 2016-10-24 15:16:28 -0400 | [diff] [blame] | 803 | GTEST_LIBS |
| 804 | RUST_DEMANGLE_CFLAGS |
| 805 | RUST_DEMANGLE_LIBS' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 806 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 807 | |
| 808 | # Initialize some variables set by options. |
| 809 | ac_init_help= |
| 810 | ac_init_version=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 811 | ac_unrecognized_opts= |
| 812 | ac_unrecognized_sep= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 813 | # The variables have the same names as the options, with |
| 814 | # dashes changed to underlines. |
| 815 | cache_file=/dev/null |
| 816 | exec_prefix=NONE |
| 817 | no_create= |
| 818 | no_recursion= |
| 819 | prefix=NONE |
| 820 | program_prefix=NONE |
| 821 | program_suffix=NONE |
| 822 | program_transform_name=s,x,x, |
| 823 | silent= |
| 824 | site= |
| 825 | srcdir= |
| 826 | verbose= |
| 827 | x_includes=NONE |
| 828 | x_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. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 835 | # (The list follows the same order as the GNU Coding Standards.) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 836 | bindir='${exec_prefix}/bin' |
| 837 | sbindir='${exec_prefix}/sbin' |
| 838 | libexecdir='${exec_prefix}/libexec' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 839 | datarootdir='${prefix}/share' |
| 840 | datadir='${datarootdir}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 841 | sysconfdir='${prefix}/etc' |
| 842 | sharedstatedir='${prefix}/com' |
| 843 | localstatedir='${prefix}/var' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 844 | includedir='${prefix}/include' |
| 845 | oldincludedir='/usr/include' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 846 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 847 | infodir='${datarootdir}/info' |
| 848 | htmldir='${docdir}' |
| 849 | dvidir='${docdir}' |
| 850 | pdfdir='${docdir}' |
| 851 | psdir='${docdir}' |
| 852 | libdir='${exec_prefix}/lib' |
| 853 | localedir='${datarootdir}/locale' |
| 854 | mandir='${datarootdir}/man' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 855 | |
| 856 | ac_prev= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 857 | ac_dashdash= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 858 | for ac_option |
| 859 | do |
| 860 | # If the previous option needs an argument, assign it. |
| 861 | if test -n "$ac_prev"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 862 | eval $ac_prev=\$ac_option |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 863 | ac_prev= |
| 864 | continue |
| 865 | fi |
| 866 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 867 | case $ac_option in |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 868 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 869 | *=) ac_optarg= ;; |
| 870 | *) ac_optarg=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 871 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 872 | |
| 873 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 874 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 875 | case $ac_dashdash$ac_option in |
| 876 | --) |
| 877 | ac_dashdash=yes ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 878 | |
| 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 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 899 | -datadir | --datadir | --datadi | --datad) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 900 | ac_prev=datadir ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 901 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 902 | datadir=$ac_optarg ;; |
| 903 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 904 | -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 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 911 | -disable-* | --disable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 912 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 913 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 914 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 915 | as_fn_error $? "invalid feature name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 916 | 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 ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 926 | |
| 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 ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 936 | |
| 937 | -enable-* | --enable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 938 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 939 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 940 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 941 | as_fn_error $? "invalid feature name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 942 | 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 ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 952 | |
| 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 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 978 | -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 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 984 | -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 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1008 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1009 | ac_prev=localedir ;; |
| 1010 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1011 | localedir=$ac_optarg ;; |
| 1012 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1013 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1014 | | --localstate | --localstat | --localsta | --localst | --locals) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1015 | ac_prev=localstatedir ;; |
| 1016 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1017 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1018 | 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 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1082 | -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 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1092 | -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-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1142 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1143 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1144 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1145 | as_fn_error $? "invalid package name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1146 | 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 ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1156 | |
| 1157 | -without-* | --without-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1158 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1159 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1160 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1161 | as_fn_error $? "invalid package name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1162 | 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 ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1172 | |
| 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1191 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1192 | Try \`$0 --help' for more information" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1193 | ;; |
| 1194 | |
| 1195 | *=*) |
| 1196 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1197 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1198 | case $ac_envvar in #( |
| 1199 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1200 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1201 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1202 | eval $ac_envvar=\$ac_optarg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1203 | export $ac_envvar ;; |
| 1204 | |
| 1205 | *) |
| 1206 | # FIXME: should be removed in autoconf 3.0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1207 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1208 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1209 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1210 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1211 | ;; |
| 1212 | |
| 1213 | esac |
| 1214 | done |
| 1215 | |
| 1216 | if test -n "$ac_prev"; then |
| 1217 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1218 | as_fn_error $? "missing argument to $ac_option" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1219 | fi |
| 1220 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1221 | if test -n "$ac_unrecognized_opts"; then |
| 1222 | case $enable_option_checking in |
| 1223 | no) ;; |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1224 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1225 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1226 | esac |
| 1227 | fi |
| 1228 | |
| 1229 | # Check all directory arguments for consistency. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1230 | for 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 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1234 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1235 | eval ac_val=\$$ac_var |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1236 | # 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. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1243 | case $ac_val in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1244 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1245 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1246 | esac |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1247 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1248 | done |
| 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. |
| 1253 | build=$build_alias |
| 1254 | host=$host_alias |
| 1255 | target=$target_alias |
| 1256 | |
| 1257 | # FIXME: To remove some day. |
| 1258 | if test "x$host_alias" != x; then |
| 1259 | if test "x$build_alias" = x; then |
| 1260 | cross_compiling=maybe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1261 | elif test "x$build_alias" != "x$host_alias"; then |
| 1262 | cross_compiling=yes |
| 1263 | fi |
| 1264 | fi |
| 1265 | |
| 1266 | ac_tool_prefix= |
| 1267 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1268 | |
| 1269 | test "$silent" = yes && exec 6>/dev/null |
| 1270 | |
| 1271 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1272 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1273 | ac_ls_di=`ls -di .` && |
| 1274 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1275 | as_fn_error $? "working directory cannot be determined" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1276 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1277 | as_fn_error $? "pwd does not report name of working directory" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1278 | |
| 1279 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1280 | # Find the source files, if location was not specified. |
| 1281 | if test -z "$srcdir"; then |
| 1282 | ac_srcdir_defaulted=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1283 | # Try the directory containing this script, then the parent directory. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1284 | 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" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1290 | 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'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1307 | srcdir=$ac_confdir |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1308 | if test ! -r "$srcdir/$ac_unique_file"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1309 | srcdir=.. |
| 1310 | fi |
| 1311 | else |
| 1312 | ac_srcdir_defaulted=no |
| 1313 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1314 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1315 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1316 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1317 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1318 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1319 | ac_abs_confdir=`( |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1320 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1321 | pwd)` |
| 1322 | # When building in place, set srcdir=. |
| 1323 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1324 | srcdir=. |
| 1325 | fi |
| 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. |
| 1329 | case $srcdir in |
| 1330 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1331 | esac |
| 1332 | for 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} |
| 1337 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1338 | |
| 1339 | # |
| 1340 | # Report the --help message. |
| 1341 | # |
| 1342 | if 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 |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1346 | \`configure' configures breakpad 0.1 to adapt to many kinds of systems. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1347 | |
| 1348 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1349 | |
| 1350 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1351 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1352 | |
| 1353 | Defaults for the options are specified in brackets. |
| 1354 | |
| 1355 | Configuration: |
| 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1360 | -q, --quiet, --silent do not print \`checking ...' messages |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1361 | --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 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1366 | Installation directories: |
| 1367 | --prefix=PREFIX install architecture-independent files in PREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1368 | [$ac_default_prefix] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1369 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1370 | [PREFIX] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1371 | |
| 1372 | By default, \`make install' will install all the files in |
| 1373 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1374 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1375 | for instance \`--prefix=\$HOME'. |
| 1376 | |
| 1377 | For better control, use the options below. |
| 1378 | |
| 1379 | Fine tuning of the installation directories: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1380 | --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] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1399 | _ACEOF |
| 1400 | |
| 1401 | cat <<\_ACEOF |
| 1402 | |
| 1403 | Program 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 | |
| 1408 | System 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 |
| 1412 | fi |
| 1413 | |
| 1414 | if test -n "$ac_init_help"; then |
| 1415 | case $ac_init_help in |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1416 | short | recursive ) echo "Configuration of breakpad 0.1:";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1417 | esac |
| 1418 | cat <<\_ACEOF |
| 1419 | |
| 1420 | Optional Features: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1421 | --disable-option-checking ignore unrecognized --enable/--with options |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1422 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1423 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1424 | --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.com | 07bb231 | 2013-12-10 12:28:11 +0000 | [diff] [blame] | 1426 | --enable-maintainer-mode |
| 1427 | enable make rules and dependencies not useful (and |
| 1428 | sometimes confusing) to the casual installer |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1429 | --enable-dependency-tracking |
| 1430 | do not reject slow dependency extractors |
| 1431 | --disable-dependency-tracking |
| 1432 | speeds up one-time build |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 1433 | --enable-m32 Compile/build with -m32 (default is no) |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 1434 | --disable-largefile omit support for large files |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1435 | --disable-processor Don't build processor library (default is no) |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1436 | --disable-tools Don't build tool binaries (default is no) |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 1437 | --enable-system-test-libs |
| 1438 | Use gtest/gmock/etc... from the system instead of |
| 1439 | the local copies (default is local) |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 1440 | --enable-selftest Run extra tests with "make check" (may conflict with |
| 1441 | optimizations) (default is no) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1442 | |
Ted Mielczarek | 2ecb2ba | 2016-10-24 15:16:28 -0400 | [diff] [blame] | 1443 | Optional 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 Volker | 49907e1 | 2018-01-31 13:29:11 -0800 | [diff] [blame^] | 1450 | --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 Mielczarek | 2ecb2ba | 2016-10-24 15:16:28 -0400 | [diff] [blame] | 1453 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1454 | Some 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> |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 1459 | LIBS libraries to pass to the linker, e.g. -l<library> |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1460 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1461 | you have headers in a nonstandard directory <include dir> |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 1462 | CCAS assembler compiler command (defaults to CC) |
| 1463 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1464 | CPP C preprocessor |
| 1465 | CXX C++ compiler command |
| 1466 | CXXFLAGS C++ compiler flags |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 1467 | 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 Mielczarek | 2ecb2ba | 2016-10-24 15:16:28 -0400 | [diff] [blame] | 1477 | RUST_DEMANGLE_CFLAGS |
| 1478 | Compiler flags for rust-demangle |
| 1479 | RUST_DEMANGLE_LIBS |
| 1480 | Linker flags for rust-demangle |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1481 | |
| 1482 | Use these variables to override the choices made by `configure' or to help |
| 1483 | it to find libraries and programs with nonstandard names/locations. |
| 1484 | |
thestig@chromium.org | 43e6db7 | 2010-11-08 19:49:41 +0000 | [diff] [blame] | 1485 | Report bugs to <google-breakpad-dev@googlegroups.com>. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1486 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1487 | ac_status=$? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1488 | fi |
| 1489 | |
| 1490 | if test "$ac_init_help" = "recursive"; then |
| 1491 | # If there are subdirs, report their specific --help. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1492 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1493 | test -d "$ac_dir" || |
| 1494 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1495 | continue |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1496 | ac_builddir=. |
| 1497 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1498 | case "$ac_dir" in |
| 1499 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1500 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1501 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1502 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1503 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1504 | 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 ;; |
| 1508 | esac |
| 1509 | ac_abs_top_builddir=$ac_pwd |
| 1510 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1511 | # for backward compatibility: |
| 1512 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1513 | |
| 1514 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1515 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1516 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1517 | ac_top_srcdir=$ac_top_builddir_sub |
| 1518 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1519 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1520 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1521 | 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 ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1527 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1528 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1529 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1530 | 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 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1538 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1539 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1540 | fi || ac_status=$? |
| 1541 | cd "$ac_pwd" || { ac_status=$?; break; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1542 | done |
| 1543 | fi |
| 1544 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1545 | test -n "$ac_init_help" && exit $ac_status |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1546 | if $ac_init_version; then |
| 1547 | cat <<\_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1548 | breakpad configure 0.1 |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1549 | generated by GNU Autoconf 2.69 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1550 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1551 | Copyright (C) 2012 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1552 | This configure script is free software; the Free Software Foundation |
| 1553 | gives unlimited permission to copy, distribute and modify it. |
| 1554 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1555 | exit |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1556 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1557 | |
| 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. |
| 1565 | ac_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" |
| 1570 | case "(($ac_try" in |
| 1571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1572 | *) ac_try_echo=$ac_try;; |
| 1573 | esac |
| 1574 | eval 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 |
| 1589 | else |
| 1590 | $as_echo "$as_me: failed program was:" >&5 |
| 1591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1592 | |
| 1593 | ac_retval=1 |
| 1594 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1595 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1596 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1597 | |
| 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. |
| 1603 | ac_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" |
| 1607 | case "(($ac_try" in |
| 1608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1609 | *) ac_try_echo=$ac_try;; |
| 1610 | esac |
| 1611 | eval 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1621 | test $ac_status = 0; } > conftest.i && { |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1622 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1623 | test ! -s conftest.err |
| 1624 | }; then : |
| 1625 | ac_retval=0 |
| 1626 | else |
| 1627 | $as_echo "$as_me: failed program was:" >&5 |
| 1628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1629 | |
| 1630 | ac_retval=1 |
| 1631 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1632 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1633 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1634 | |
| 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. |
| 1640 | ac_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" |
| 1645 | case "(($ac_try" in |
| 1646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1647 | *) ac_try_echo=$ac_try;; |
| 1648 | esac |
| 1649 | eval 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 |
| 1664 | else |
| 1665 | $as_echo "$as_me: failed program was:" >&5 |
| 1666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1667 | |
| 1668 | ac_retval=1 |
| 1669 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1670 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1671 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1672 | |
| 1673 | } # ac_fn_cxx_try_compile |
| 1674 | |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 1675 | # 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. |
| 1679 | ac_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" |
| 1683 | case "(($ac_try" in |
| 1684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1685 | *) ac_try_echo=$ac_try;; |
| 1686 | esac |
| 1687 | eval 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;; |
| 1696 | esac |
| 1697 | eval 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 |
| 1704 | else |
| 1705 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1706 | $as_echo "$as_me: failed program was:" >&5 |
| 1707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1708 | |
| 1709 | ac_retval=$ac_status |
| 1710 | fi |
| 1711 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1712 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 1713 | as_fn_set_status $ac_retval |
| 1714 | |
| 1715 | } # ac_fn_c_try_run |
| 1716 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1717 | # ac_fn_c_try_link LINENO |
| 1718 | # ----------------------- |
| 1719 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1720 | ac_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" |
| 1725 | case "(($ac_try" in |
| 1726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1727 | *) ac_try_echo=$ac_try;; |
| 1728 | esac |
| 1729 | eval 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1744 | test -x conftest$ac_exeext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1745 | }; then : |
| 1746 | ac_retval=0 |
| 1747 | else |
| 1748 | $as_echo "$as_me: failed program was:" >&5 |
| 1749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1750 | |
| 1751 | ac_retval=1 |
| 1752 | fi |
| 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1758 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1759 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1760 | |
| 1761 | } # ac_fn_c_try_link |
| 1762 | |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1763 | # 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. |
| 1768 | ac_fn_c_check_header_mongrel () |
| 1769 | { |
| 1770 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1771 | if eval \${$3+:} false; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1773 | $as_echo_n "checking for $2... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1774 | if eval \${$3+:} false; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1775 | $as_echo_n "(cached) " >&6 |
| 1776 | fi |
| 1777 | eval ac_res=\$$3 |
| 1778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1779 | $as_echo "$ac_res" >&6; } |
| 1780 | else |
| 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; } |
| 1784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1785 | /* end confdefs.h. */ |
| 1786 | $4 |
| 1787 | #include <$2> |
| 1788 | _ACEOF |
| 1789 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1790 | ac_header_compiler=yes |
| 1791 | else |
| 1792 | ac_header_compiler=no |
| 1793 | fi |
| 1794 | rm -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; } |
| 1801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1802 | /* end confdefs.h. */ |
| 1803 | #include <$2> |
| 1804 | _ACEOF |
| 1805 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1806 | ac_header_preproc=yes |
| 1807 | else |
| 1808 | ac_header_preproc=no |
| 1809 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1810 | rm -f conftest.err conftest.i conftest.$ac_ext |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1811 | { $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? |
| 1815 | case $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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1833 | ( $as_echo "## --------------------------------------------------- ## |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1834 | ## Report this to google-breakpad-dev@googlegroups.com ## |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1835 | ## --------------------------------------------------- ##" |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1836 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1837 | ;; |
| 1838 | esac |
| 1839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1840 | $as_echo_n "checking for $2... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1841 | if eval \${$3+:} false; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1842 | $as_echo_n "(cached) " >&6 |
| 1843 | else |
| 1844 | eval "$3=\$ac_header_compiler" |
| 1845 | fi |
| 1846 | eval ac_res=\$$3 |
| 1847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1848 | $as_echo "$ac_res" >&6; } |
| 1849 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1850 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1851 | |
| 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. |
| 1858 | ac_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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1863 | if eval \${$3+:} false; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1864 | $as_echo_n "(cached) " >&6 |
| 1865 | else |
| 1866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1867 | /* end confdefs.h. */ |
| 1868 | $4 |
| 1869 | #include <$2> |
| 1870 | _ACEOF |
| 1871 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1872 | eval "$3=yes" |
| 1873 | else |
| 1874 | eval "$3=no" |
| 1875 | fi |
| 1876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1877 | fi |
| 1878 | eval ac_res=\$$3 |
| 1879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1880 | $as_echo "$ac_res" >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1881 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1882 | |
| 1883 | } # ac_fn_c_check_header_compile |
Gabriele Svelto | a9fca58 | 2017-04-11 11:51:28 +0200 | [diff] [blame] | 1884 | |
| 1885 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1886 | # ---------------------------------- |
| 1887 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1888 | ac_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; } |
| 1893 | if eval \${$3+:} false; then : |
| 1894 | $as_echo_n "(cached) " >&6 |
| 1895 | else |
| 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 |
| 1919 | extern "C" |
| 1920 | #endif |
| 1921 | char $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 |
| 1926 | choke me |
| 1927 | #endif |
| 1928 | |
| 1929 | int |
| 1930 | main () |
| 1931 | { |
| 1932 | return $2 (); |
| 1933 | ; |
| 1934 | return 0; |
| 1935 | } |
| 1936 | _ACEOF |
| 1937 | if ac_fn_c_try_link "$LINENO"; then : |
| 1938 | eval "$3=yes" |
| 1939 | else |
| 1940 | eval "$3=no" |
| 1941 | fi |
| 1942 | rm -f core conftest.err conftest.$ac_objext \ |
| 1943 | conftest$ac_exeext conftest.$ac_ext |
| 1944 | fi |
| 1945 | eval 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 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1951 | cat >config.log <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1952 | This file contains any messages produced by compilers while |
| 1953 | running configure, to aid debugging if configure makes a mistake. |
| 1954 | |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1955 | It was created by breakpad $as_me 0.1, which was |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1956 | generated by GNU Autoconf 2.69. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1957 | |
| 1958 | $ $0 $@ |
| 1959 | |
| 1960 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1961 | exec 5>>config.log |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1962 | { |
| 1963 | cat <<_ASUNAME |
| 1964 | ## --------- ## |
| 1965 | ## Platform. ## |
| 1966 | ## --------- ## |
| 1967 | |
| 1968 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1969 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1970 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1971 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1972 | uname -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` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1980 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1981 | /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 | |
| 1987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1988 | for as_dir in $PATH |
| 1989 | do |
| 1990 | IFS=$as_save_IFS |
| 1991 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1992 | $as_echo "PATH: $as_dir" |
| 1993 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1994 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1995 | |
| 1996 | } >&5 |
| 1997 | |
| 1998 | cat >&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. |
| 2013 | ac_configure_args= |
| 2014 | ac_configure_args0= |
| 2015 | ac_configure_args1= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2016 | ac_must_keep_next=false |
| 2017 | for ac_pass in 1 2 |
| 2018 | do |
| 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 ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2026 | *\'*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2027 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2028 | esac |
| 2029 | case $ac_pass in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2030 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2031 | 2) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2032 | as_fn_append ac_configure_args1 " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2033 | 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 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2048 | as_fn_append ac_configure_args " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2049 | ;; |
| 2050 | esac |
| 2051 | done |
| 2052 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2053 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2054 | { ac_configure_args1=; unset ac_configure_args1;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2055 | |
| 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. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2059 | # 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. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2061 | trap 'exit_status=$? |
| 2062 | # Save into config.log some information that might help in debugging. |
| 2063 | { |
| 2064 | echo |
| 2065 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2066 | $as_echo "## ---------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2067 | ## Cache variables. ## |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2068 | ## ---------------- ##" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2069 | echo |
| 2070 | # The following way of writing the cache mishandles newlines in values, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2071 | ( |
| 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 #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2077 | *_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;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2079 | esac |
| 2080 | case $ac_var in #( |
| 2081 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2082 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2083 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2084 | esac ;; |
| 2085 | esac |
| 2086 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2087 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2088 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2089 | *${as_nl}ac_space=\ *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2090 | sed -n \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2091 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2092 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2093 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2094 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2095 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2096 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2097 | esac | |
| 2098 | sort |
| 2099 | ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2100 | echo |
| 2101 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2102 | $as_echo "## ----------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2103 | ## Output variables. ## |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2104 | ## ----------------- ##" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2105 | echo |
| 2106 | for ac_var in $ac_subst_vars |
| 2107 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2108 | eval ac_val=\$$ac_var |
| 2109 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2110 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2111 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2112 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2113 | done | sort |
| 2114 | echo |
| 2115 | |
| 2116 | if test -n "$ac_subst_files"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2117 | $as_echo "## ------------------- ## |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2118 | ## File substitutions. ## |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2119 | ## ------------------- ##" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2120 | echo |
| 2121 | for ac_var in $ac_subst_files |
| 2122 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2123 | eval ac_val=\$$ac_var |
| 2124 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2125 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2126 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2127 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2128 | done | sort |
| 2129 | echo |
| 2130 | fi |
| 2131 | |
| 2132 | if test -s confdefs.h; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2133 | $as_echo "## ----------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2134 | ## confdefs.h. ## |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2135 | ## ----------- ##" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2136 | echo |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2137 | cat confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2138 | echo |
| 2139 | fi |
| 2140 | test "$ac_signal" != 0 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2141 | $as_echo "$as_me: caught signal $ac_signal" |
| 2142 | $as_echo "$as_me: exit $exit_status" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2143 | } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2144 | rm -f core *.core core.conftest.* && |
| 2145 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2146 | exit $exit_status |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2147 | ' 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2148 | for ac_signal in 1 2 13 15; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2149 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2150 | done |
| 2151 | ac_signal=0 |
| 2152 | |
| 2153 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2154 | rm -f -r conftest* confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2155 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2156 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2157 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2158 | # Predefined preprocessor variables. |
| 2159 | |
| 2160 | cat >>confdefs.h <<_ACEOF |
| 2161 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2162 | _ACEOF |
| 2163 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2164 | cat >>confdefs.h <<_ACEOF |
| 2165 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2166 | _ACEOF |
| 2167 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2168 | cat >>confdefs.h <<_ACEOF |
| 2169 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2170 | _ACEOF |
| 2171 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2172 | cat >>confdefs.h <<_ACEOF |
| 2173 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2174 | _ACEOF |
| 2175 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2176 | cat >>confdefs.h <<_ACEOF |
| 2177 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2178 | _ACEOF |
| 2179 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2180 | cat >>confdefs.h <<_ACEOF |
| 2181 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2182 | _ACEOF |
| 2183 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2184 | |
| 2185 | # Let the site file select an alternate cache file if it wants to. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2186 | # Prefer an explicitly selected file to automatically selected ones. |
| 2187 | ac_site_file1=NONE |
| 2188 | ac_site_file2=NONE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2189 | if test -n "$CONFIG_SITE"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2190 | # 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 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2196 | elif test "x$prefix" != xNONE; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2197 | ac_site_file1=$prefix/share/config.site |
| 2198 | ac_site_file2=$prefix/etc/config.site |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2199 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2200 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2201 | ac_site_file2=$ac_default_prefix/etc/config.site |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2202 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2203 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2204 | do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2205 | test "x$ac_site_file" = xNONE && continue |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2206 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2207 | { $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;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2209 | sed 's/^/| /' "$ac_site_file" >&5 |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2210 | . "$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;} |
| 2213 | as_fn_error $? "failed to load site script $ac_site_file |
| 2214 | See \`config.log' for more details" "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2215 | fi |
| 2216 | done |
| 2217 | |
| 2218 | if test -r "$cache_file"; then |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2219 | # 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 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2222 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2223 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2224 | case $cache_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2225 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2226 | *) . "./$cache_file";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2227 | esac |
| 2228 | fi |
| 2229 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2231 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2232 | >$cache_file |
| 2233 | fi |
| 2234 | |
| 2235 | # Check that the precious variables saved in the cache have kept the same |
| 2236 | # value. |
| 2237 | ac_cache_corrupted=false |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2238 | for ac_var in $ac_precious_vars; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2239 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2240 | eval ac_new_set=\$ac_env_${ac_var}_set |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2241 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2242 | eval ac_new_val=\$ac_env_${ac_var}_value |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2243 | case $ac_old_set,$ac_new_set in |
| 2244 | set,) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2245 | { $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;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2247 | ac_cache_corrupted=: ;; |
| 2248 | ,set) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2249 | { $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;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2251 | ac_cache_corrupted=: ;; |
| 2252 | ,);; |
| 2253 | *) |
| 2254 | if test "x$ac_old_val" != "x$ac_new_val"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2255 | # 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;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2271 | fi;; |
| 2272 | esac |
| 2273 | # Pass precious variables to config.status. |
| 2274 | if test "$ac_new_set" = set; then |
| 2275 | case $ac_new_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2276 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2277 | *) 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. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2281 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2282 | esac |
| 2283 | fi |
| 2284 | done |
| 2285 | if $ac_cache_corrupted; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2286 | { $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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2290 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2291 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2292 | ## -------------------- ## |
| 2293 | ## Main body of script. ## |
| 2294 | ## -------------------- ## |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2295 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2296 | ac_ext=c |
| 2297 | ac_cpp='$CPP $CPPFLAGS' |
| 2298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2301 | |
| 2302 | |
| 2303 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2304 | ac_aux_dir= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2305 | for ac_dir in autotools "$srcdir"/autotools; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2306 | 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 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2319 | done |
| 2320 | if test -z "$ac_aux_dir"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2321 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2322 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2323 | |
| 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. |
| 2328 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2329 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2330 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2331 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2332 | |
mmentovai | 425d256 | 2006-08-30 20:05:05 +0000 | [diff] [blame] | 2333 | |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2334 | # Make sure we can run config.sub. |
| 2335 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2336 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2337 | |
| 2338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2339 | $as_echo_n "checking build system type... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2340 | if ${ac_cv_build+:} false; then : |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2341 | $as_echo_n "(cached) " >&6 |
| 2342 | else |
| 2343 | ac_build_alias=$build_alias |
| 2344 | test "x$ac_build_alias" = x && |
| 2345 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2346 | test "x$ac_build_alias" = x && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2347 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2348 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2349 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2350 | |
| 2351 | fi |
| 2352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2353 | $as_echo "$ac_cv_build" >&6; } |
| 2354 | case $ac_cv_build in |
| 2355 | *-*-*) ;; |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2356 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2357 | esac |
| 2358 | build=$ac_cv_build |
| 2359 | ac_save_IFS=$IFS; IFS='-' |
| 2360 | set x $ac_cv_build |
| 2361 | shift |
| 2362 | build_cpu=$1 |
| 2363 | build_vendor=$2 |
| 2364 | shift; shift |
| 2365 | # Remember, the first character of IFS is used to create $*, |
| 2366 | # except with old shells: |
| 2367 | build_os=$* |
| 2368 | IFS=$ac_save_IFS |
| 2369 | case $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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2374 | if ${ac_cv_host+:} false; then : |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2375 | $as_echo_n "(cached) " >&6 |
| 2376 | else |
| 2377 | if test "x$host_alias" = x; then |
| 2378 | ac_cv_host=$ac_cv_build |
| 2379 | else |
| 2380 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2381 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2382 | fi |
| 2383 | |
| 2384 | fi |
| 2385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2386 | $as_echo "$ac_cv_host" >&6; } |
| 2387 | case $ac_cv_host in |
| 2388 | *-*-*) ;; |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2389 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2390 | esac |
| 2391 | host=$ac_cv_host |
| 2392 | ac_save_IFS=$IFS; IFS='-' |
| 2393 | set x $ac_cv_host |
| 2394 | shift |
| 2395 | host_cpu=$1 |
| 2396 | host_vendor=$2 |
| 2397 | shift; shift |
| 2398 | # Remember, the first character of IFS is used to create $*, |
| 2399 | # except with old shells: |
| 2400 | host_os=$* |
| 2401 | IFS=$ac_save_IFS |
| 2402 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2403 | |
| 2404 | |
| 2405 | |
ted.mielczarek@gmail.com | 591ba32 | 2015-08-13 16:38:19 +0000 | [diff] [blame] | 2406 | am__api_version='1.15' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2407 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2408 | # 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. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2421 | # 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; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2424 | if test -z "$INSTALL"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2425 | if ${ac_cv_path_install+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2426 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2427 | else |
| 2428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2429 | for as_dir in $PATH |
| 2430 | do |
| 2431 | IFS=$as_save_IFS |
| 2432 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2433 | # Account for people who put trailing slashes in PATH elements. |
| 2434 | case $as_dir/ in #(( |
| 2435 | ./ | .// | /[cC]/* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2436 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2437 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2438 | /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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2445 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2446 | 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 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2455 | 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 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2467 | fi |
| 2468 | fi |
| 2469 | done |
| 2470 | done |
| 2471 | ;; |
| 2472 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2473 | |
| 2474 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2475 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2476 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2477 | rm -rf conftest.one conftest.two conftest.dir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2478 | |
| 2479 | fi |
| 2480 | if test "${ac_cv_path_install+set}" = set; then |
| 2481 | INSTALL=$ac_cv_path_install |
| 2482 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2483 | # As a last resort, use the slow shell script. Don't cache a |
| 2484 | # value for INSTALL within a source directory, because that will |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2485 | # break other packages using the cache if that directory is |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2486 | # removed, or if the value is a relative name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2487 | INSTALL=$ac_install_sh |
| 2488 | fi |
| 2489 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2491 | $as_echo "$INSTALL" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2492 | |
| 2493 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2494 | # It thinks the first close brace ends the variable substitution. |
| 2495 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2496 | |
| 2497 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2498 | |
| 2499 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2500 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2501 | { $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; } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2503 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2504 | # name. Accept space and tab only in the latter. |
| 2505 | am_lf=' |
| 2506 | ' |
| 2507 | case `pwd` in |
| 2508 | *[\\\"\#\$\&\'\`$am_lf]*) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2509 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2510 | esac |
| 2511 | case $srcdir in |
| 2512 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2513 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2514 | esac |
| 2515 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2516 | # Do 'set' in a subshell so we don't clobber the current shell's |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2517 | # 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). |
| 2521 | if ( |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2522 | 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 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2532 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2533 | # 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 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2547 | test "$2" = conftest.file |
| 2548 | ) |
| 2549 | then |
| 2550 | # Ok. |
| 2551 | : |
| 2552 | else |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2553 | as_fn_error $? "newly created file is older than distributed files! |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2554 | Check your system clock" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2555 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2557 | $as_echo "yes" >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2558 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 2559 | # generated files are strictly newer. |
| 2560 | am_sleep_pid= |
| 2561 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 2562 | ( sleep 1 ) & |
| 2563 | am_sleep_pid=$! |
| 2564 | fi |
| 2565 | |
| 2566 | rm -f conftest.file |
| 2567 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2568 | test "$program_prefix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2569 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2570 | # Use a double $ so make ignores it. |
| 2571 | test "$program_suffix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2572 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2573 | # Double any \ or $. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2574 | # By default was `s,x,x', remove it if useless. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2575 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2576 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2577 | |
ted.mielczarek@gmail.com | 591ba32 | 2015-08-13 16:38:19 +0000 | [diff] [blame] | 2578 | # Expand $ac_aux_dir to an absolute path. |
| 2579 | am_aux_dir=`cd "$ac_aux_dir" && pwd` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2580 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2581 | if 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 |
| 2588 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2589 | # Use eval to expand $SHELL |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2590 | if eval "$MISSING --is-lightweight"; then |
| 2591 | am_missing_run="$MISSING " |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2592 | else |
| 2593 | am_missing_run= |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2594 | { $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;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2596 | fi |
| 2597 | |
ted.mielczarek@gmail.com | 591ba32 | 2015-08-13 16:38:19 +0000 | [diff] [blame] | 2598 | if test x"${install_sh+set}" != xset; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2599 | 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 |
| 2605 | fi |
| 2606 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2607 | # Installed binaries are usually stripped using 'strip' when the user |
| 2608 | # run "make install-strip". However 'strip' might not be the right |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2609 | # tool to use in cross-compilation environments, therefore Automake |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2610 | # will honor the 'STRIP' environment variable to overrule this program. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2611 | if 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. |
| 2614 | set 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2617 | if ${ac_cv_prog_STRIP+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2618 | $as_echo_n "(cached) " >&6 |
| 2619 | else |
| 2620 | if test -n "$STRIP"; then |
| 2621 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2622 | else |
| 2623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2624 | for as_dir in $PATH |
| 2625 | do |
| 2626 | IFS=$as_save_IFS |
| 2627 | test -z "$as_dir" && as_dir=. |
| 2628 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2629 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2630 | 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 |
| 2634 | done |
| 2635 | done |
| 2636 | IFS=$as_save_IFS |
| 2637 | |
| 2638 | fi |
| 2639 | fi |
| 2640 | STRIP=$ac_cv_prog_STRIP |
| 2641 | if test -n "$STRIP"; then |
| 2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2643 | $as_echo "$STRIP" >&6; } |
| 2644 | else |
| 2645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2646 | $as_echo "no" >&6; } |
| 2647 | fi |
| 2648 | |
| 2649 | |
| 2650 | fi |
| 2651 | if 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. |
| 2654 | set 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2657 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2658 | $as_echo_n "(cached) " >&6 |
| 2659 | else |
| 2660 | if test -n "$ac_ct_STRIP"; then |
| 2661 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2662 | else |
| 2663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2664 | for as_dir in $PATH |
| 2665 | do |
| 2666 | IFS=$as_save_IFS |
| 2667 | test -z "$as_dir" && as_dir=. |
| 2668 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2669 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2670 | 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 |
| 2674 | done |
| 2675 | done |
| 2676 | IFS=$as_save_IFS |
| 2677 | |
| 2678 | fi |
| 2679 | fi |
| 2680 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2681 | if 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; } |
| 2684 | else |
| 2685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2686 | $as_echo "no" >&6; } |
| 2687 | fi |
| 2688 | |
| 2689 | if test "x$ac_ct_STRIP" = x; then |
| 2690 | STRIP=":" |
| 2691 | else |
| 2692 | case $cross_compiling:$ac_tool_warned in |
| 2693 | yes:) |
| 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;} |
| 2696 | ac_tool_warned=yes ;; |
| 2697 | esac |
| 2698 | STRIP=$ac_ct_STRIP |
| 2699 | fi |
| 2700 | else |
| 2701 | STRIP="$ac_cv_prog_STRIP" |
| 2702 | fi |
| 2703 | |
| 2704 | fi |
| 2705 | INSTALL_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; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2709 | if test -z "$MKDIR_P"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2710 | if ${ac_cv_path_mkdir+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2711 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2712 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2714 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2715 | do |
| 2716 | IFS=$as_save_IFS |
| 2717 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2718 | for ac_prog in mkdir gmkdir; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2719 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2720 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2721 | 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 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2730 | done |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2731 | IFS=$as_save_IFS |
| 2732 | |
| 2733 | fi |
| 2734 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2735 | test -d ./--version && rmdir ./--version |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2736 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2737 | MKDIR_P="$ac_cv_path_mkdir -p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2738 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2739 | # 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. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2743 | MKDIR_P="$ac_install_sh -d" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2744 | fi |
| 2745 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2747 | $as_echo "$MKDIR_P" >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2748 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2749 | for ac_prog in gawk mawk nawk awk |
| 2750 | do |
| 2751 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2752 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2754 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2755 | if ${ac_cv_prog_AWK+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2756 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2757 | else |
| 2758 | if test -n "$AWK"; then |
| 2759 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2760 | else |
| 2761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2762 | for as_dir in $PATH |
| 2763 | do |
| 2764 | IFS=$as_save_IFS |
| 2765 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2766 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2767 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2768 | ac_cv_prog_AWK="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2769 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2770 | break 2 |
| 2771 | fi |
| 2772 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2773 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2774 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2775 | |
| 2776 | fi |
| 2777 | fi |
| 2778 | AWK=$ac_cv_prog_AWK |
| 2779 | if test -n "$AWK"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2781 | $as_echo "$AWK" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2782 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2784 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2785 | fi |
| 2786 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2787 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2788 | test -n "$AWK" && break |
| 2789 | done |
| 2790 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2791 | { $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; } |
| 2793 | set x ${MAKE-make} |
| 2794 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2795 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2796 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2797 | else |
| 2798 | cat >conftest.make <<\_ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2799 | SHELL = /bin/sh |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2800 | all: |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2801 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2802 | _ACEOF |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2803 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2804 | case `${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;; |
| 2809 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2810 | rm -f conftest.make |
| 2811 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2812 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2814 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2815 | SET_MAKE= |
| 2816 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2818 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2819 | SET_MAKE="MAKE=${MAKE-make}" |
| 2820 | fi |
| 2821 | |
| 2822 | rm -rf .tst 2>/dev/null |
| 2823 | mkdir .tst 2>/dev/null |
| 2824 | if test -d .tst; then |
| 2825 | am__leading_dot=. |
| 2826 | else |
| 2827 | am__leading_dot=_ |
| 2828 | fi |
| 2829 | rmdir .tst 2>/dev/null |
| 2830 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2831 | # Check whether --enable-silent-rules was given. |
| 2832 | if test "${enable_silent_rules+set}" = set; then : |
| 2833 | enableval=$enable_silent_rules; |
| 2834 | fi |
| 2835 | |
| 2836 | case $enable_silent_rules in # ((( |
| 2837 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 2838 | no) AM_DEFAULT_VERBOSITY=1;; |
| 2839 | *) AM_DEFAULT_VERBOSITY=1;; |
| 2840 | esac |
| 2841 | am_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; } |
| 2844 | if ${am_cv_make_support_nested_variables+:} false; then : |
| 2845 | $as_echo_n "(cached) " >&6 |
| 2846 | else |
| 2847 | if $as_echo 'TRUE=$(BAR$(V)) |
| 2848 | BAR0=false |
| 2849 | BAR1=true |
| 2850 | V=1 |
| 2851 | am__doit: |
| 2852 | @$(TRUE) |
| 2853 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 2854 | am_cv_make_support_nested_variables=yes |
| 2855 | else |
| 2856 | am_cv_make_support_nested_variables=no |
| 2857 | fi |
| 2858 | fi |
| 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; } |
| 2861 | if test $am_cv_make_support_nested_variables = yes; then |
| 2862 | AM_V='$(V)' |
| 2863 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 2864 | else |
| 2865 | AM_V=$AM_DEFAULT_VERBOSITY |
| 2866 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 2867 | fi |
| 2868 | AM_BACKSLASH='\' |
| 2869 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2870 | if 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2876 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2877 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2878 | fi |
| 2879 | |
| 2880 | # test whether we have cygpath |
| 2881 | if 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 |
| 2887 | fi |
| 2888 | |
| 2889 | |
| 2890 | # Define the identity of the package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 2891 | PACKAGE='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2892 | VERSION='0.1' |
| 2893 | |
| 2894 | |
| 2895 | cat >>confdefs.h <<_ACEOF |
| 2896 | #define PACKAGE "$PACKAGE" |
| 2897 | _ACEOF |
| 2898 | |
| 2899 | |
| 2900 | cat >>confdefs.h <<_ACEOF |
| 2901 | #define VERSION "$VERSION" |
| 2902 | _ACEOF |
| 2903 | |
| 2904 | # Some tools Automake needs. |
| 2905 | |
| 2906 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2907 | |
| 2908 | |
| 2909 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2910 | |
| 2911 | |
| 2912 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2913 | |
| 2914 | |
| 2915 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2916 | |
| 2917 | |
| 2918 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2919 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2920 | # 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> |
| 2924 | mkdir_p='$(MKDIR_P)' |
| 2925 | |
ted.mielczarek@gmail.com | 591ba32 | 2015-08-13 16:38:19 +0000 | [diff] [blame] | 2926 | # We need awk for the "check" target (and possibly the TAP driver). The |
| 2927 | # system "awk" is bad on some platforms. |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 2928 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 2929 | # in the wild :-( We should find a proper way to deprecate it ... |
| 2930 | AMTAR='$${TAR-tar}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2931 | |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2932 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2933 | # We'll loop over all known methods to create a tar archive until one works. |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2934 | _am_tools='gnutar plaintar pax cpio none' |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2935 | |
| 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 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2981 | ($_am_tar --version) >&5 2>&5 |
| 2982 | ac_status=$? |
| 2983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2984 | (exit $ac_status); } && break |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2985 | 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 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 3014 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3015 | # 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 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 3018 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3019 | # 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 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 3024 | (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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3028 | rm -rf conftest.dir |
| 3029 | if test -s conftest.tar; then |
| 3030 | { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 3031 | ($am__untar <conftest.tar) >&5 2>&5 |
| 3032 | ac_status=$? |
| 3033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3034 | (exit $ac_status); } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3035 | { 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 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 3044 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3045 | if ${am_cv_prog_tar_ustar+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3046 | $as_echo_n "(cached) " >&6 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 3047 | else |
| 3048 | am_cv_prog_tar_ustar=$_am_tool |
| 3049 | fi |
| 3050 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3052 | $as_echo "$am_cv_prog_tar_ustar" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3053 | |
| 3054 | |
| 3055 | |
| 3056 | |
| 3057 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3058 | |
| 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. |
| 3067 | if rm -f && rm -fr && rm -rf; then : OK; else |
| 3068 | cat >&2 <<'END' |
| 3069 | Oops! |
| 3070 | |
| 3071 | Your 'rm' program seems unable to run without file operands specified |
| 3072 | on the command line, even when the '-f' option is present. This is contrary |
| 3073 | to the behaviour of most rm programs out there, and not conforming with |
| 3074 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 3075 | |
| 3076 | Please tell bug-automake@gnu.org about your system, including the value |
| 3077 | of your $PATH and any error possibly output before this message. This |
| 3078 | can help us improve future automake versions. |
| 3079 | |
| 3080 | END |
| 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' |
| 3087 | Aborting the configuration process, to ensure you take notice of the issue. |
| 3088 | |
| 3089 | You can download and install GNU coreutils to get an 'rm' implementation |
| 3090 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
| 3091 | |
| 3092 | If you want to complete the configuration process using your problematic |
| 3093 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 3094 | to "yes", and re-run configure. |
| 3095 | |
| 3096 | END |
| 3097 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 3098 | fi |
| 3099 | fi |
ted.mielczarek@gmail.com | 591ba32 | 2015-08-13 16:38:19 +0000 | [diff] [blame] | 3100 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3101 | ac_config_headers="$ac_config_headers src/config.h" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3102 | |
| 3103 | |
ted.mielczarek@gmail.com | 07bb231 | 2013-12-10 12:28:11 +0000 | [diff] [blame] | 3104 | { $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. |
| 3107 | if test "${enable_maintainer_mode+set}" = set; then : |
| 3108 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 3109 | else |
| 3110 | USE_MAINTAINER_MODE=no |
| 3111 | fi |
| 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='#' |
| 3118 | else |
| 3119 | MAINTAINER_MODE_TRUE='#' |
| 3120 | MAINTAINER_MODE_FALSE= |
| 3121 | fi |
| 3122 | |
| 3123 | MAINT=$MAINTAINER_MODE_TRUE |
| 3124 | |
| 3125 | |
| 3126 | |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3127 | DEPDIR="${am__leading_dot}deps" |
| 3128 | |
| 3129 | ac_config_commands="$ac_config_commands depfiles" |
| 3130 | |
| 3131 | |
| 3132 | am_make=${MAKE-make} |
| 3133 | cat > confinc << 'END' |
| 3134 | am__doit: |
| 3135 | @echo this is the am__doit target |
| 3136 | .PHONY: am__doit |
| 3137 | END |
| 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; } |
| 3141 | am__include="#" |
| 3142 | am__quote= |
| 3143 | _am_result=none |
| 3144 | # First try GNU make style include. |
| 3145 | echo "include confinc" > confmf |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3146 | # Ignore all kinds of additional output from 'make'. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3147 | case `$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 | ;; |
| 3153 | esac |
| 3154 | # Now try BSD make style include. |
| 3155 | if 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 |
| 3164 | fi |
| 3165 | |
| 3166 | |
| 3167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3168 | $as_echo "$_am_result" >&6; } |
| 3169 | rm -f confinc confmf |
| 3170 | |
| 3171 | # Check whether --enable-dependency-tracking was given. |
| 3172 | if test "${enable_dependency_tracking+set}" = set; then : |
| 3173 | enableval=$enable_dependency_tracking; |
| 3174 | fi |
| 3175 | |
| 3176 | if test "x$enable_dependency_tracking" != xno; then |
| 3177 | am_depcomp="$ac_aux_dir/depcomp" |
| 3178 | AMDEPBACKSLASH='\' |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 3179 | am__nodep='_no' |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3180 | fi |
| 3181 | if test "x$enable_dependency_tracking" != xno; then |
| 3182 | AMDEP_TRUE= |
| 3183 | AMDEP_FALSE='#' |
| 3184 | else |
| 3185 | AMDEP_TRUE='#' |
| 3186 | AMDEP_FALSE= |
| 3187 | fi |
| 3188 | |
| 3189 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3190 | ac_ext=c |
| 3191 | ac_cpp='$CPP $CPPFLAGS' |
| 3192 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3193 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3194 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3195 | if 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. |
| 3197 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3199 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3200 | if ${ac_cv_prog_CC+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3201 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3202 | else |
| 3203 | if test -n "$CC"; then |
| 3204 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3205 | else |
| 3206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3207 | for as_dir in $PATH |
| 3208 | do |
| 3209 | IFS=$as_save_IFS |
| 3210 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3211 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3212 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3213 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3215 | break 2 |
| 3216 | fi |
| 3217 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3218 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3219 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3220 | |
| 3221 | fi |
| 3222 | fi |
| 3223 | CC=$ac_cv_prog_CC |
| 3224 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3226 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3227 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3229 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3230 | fi |
| 3231 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3232 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3233 | fi |
| 3234 | if 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. |
| 3237 | set dummy gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3239 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3240 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3241 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3242 | else |
| 3243 | if test -n "$ac_ct_CC"; then |
| 3244 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3245 | else |
| 3246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3247 | for as_dir in $PATH |
| 3248 | do |
| 3249 | IFS=$as_save_IFS |
| 3250 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3251 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3252 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3253 | ac_cv_prog_ac_ct_CC="gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3254 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3255 | break 2 |
| 3256 | fi |
| 3257 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3258 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3259 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3260 | |
| 3261 | fi |
| 3262 | fi |
| 3263 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3264 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3266 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3267 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3269 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3270 | fi |
| 3271 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3272 | if test "x$ac_ct_CC" = x; then |
| 3273 | CC="" |
| 3274 | else |
| 3275 | case $cross_compiling:$ac_tool_warned in |
| 3276 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3277 | { $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;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3279 | ac_tool_warned=yes ;; |
| 3280 | esac |
| 3281 | CC=$ac_ct_CC |
| 3282 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3283 | else |
| 3284 | CC="$ac_cv_prog_CC" |
| 3285 | fi |
| 3286 | |
| 3287 | if test -z "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3288 | 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. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3290 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3292 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3293 | if ${ac_cv_prog_CC+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3294 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3295 | else |
| 3296 | if test -n "$CC"; then |
| 3297 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3298 | else |
| 3299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3300 | for as_dir in $PATH |
| 3301 | do |
| 3302 | IFS=$as_save_IFS |
| 3303 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3304 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3305 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3306 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3307 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3308 | break 2 |
| 3309 | fi |
| 3310 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3311 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3312 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3313 | |
| 3314 | fi |
| 3315 | fi |
| 3316 | CC=$ac_cv_prog_CC |
| 3317 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3319 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3320 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3322 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3323 | fi |
| 3324 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3325 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3326 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3327 | fi |
| 3328 | if test -z "$CC"; then |
| 3329 | # Extract the first word of "cc", so it can be a program name with args. |
| 3330 | set dummy cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3332 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3333 | if ${ac_cv_prog_CC+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3334 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3335 | else |
| 3336 | if test -n "$CC"; then |
| 3337 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3338 | else |
| 3339 | ac_prog_rejected=no |
| 3340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3341 | for as_dir in $PATH |
| 3342 | do |
| 3343 | IFS=$as_save_IFS |
| 3344 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3345 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3346 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3347 | 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" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3352 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3353 | break 2 |
| 3354 | fi |
| 3355 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3356 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3357 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3358 | |
| 3359 | if 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 |
| 3370 | fi |
| 3371 | fi |
| 3372 | fi |
| 3373 | CC=$ac_cv_prog_CC |
| 3374 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3376 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3377 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3379 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3380 | fi |
| 3381 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3382 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3383 | fi |
| 3384 | if test -z "$CC"; then |
| 3385 | if test -n "$ac_tool_prefix"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3386 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3387 | do |
| 3388 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3389 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3391 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3392 | if ${ac_cv_prog_CC+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3393 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3394 | else |
| 3395 | if test -n "$CC"; then |
| 3396 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3397 | else |
| 3398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3399 | for as_dir in $PATH |
| 3400 | do |
| 3401 | IFS=$as_save_IFS |
| 3402 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3403 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3404 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3405 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3406 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3407 | break 2 |
| 3408 | fi |
| 3409 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3410 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3411 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3412 | |
| 3413 | fi |
| 3414 | fi |
| 3415 | CC=$ac_cv_prog_CC |
| 3416 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3418 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3419 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3421 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3422 | fi |
| 3423 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3424 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3425 | test -n "$CC" && break |
| 3426 | done |
| 3427 | fi |
| 3428 | if test -z "$CC"; then |
| 3429 | ac_ct_CC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3430 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3431 | do |
| 3432 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3433 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3435 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3436 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3437 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3438 | else |
| 3439 | if test -n "$ac_ct_CC"; then |
| 3440 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3441 | else |
| 3442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3443 | for as_dir in $PATH |
| 3444 | do |
| 3445 | IFS=$as_save_IFS |
| 3446 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3447 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3448 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3449 | ac_cv_prog_ac_ct_CC="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3450 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3451 | break 2 |
| 3452 | fi |
| 3453 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3454 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3455 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3456 | |
| 3457 | fi |
| 3458 | fi |
| 3459 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3460 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3462 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3463 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3465 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3466 | fi |
| 3467 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3468 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3469 | test -n "$ac_ct_CC" && break |
| 3470 | done |
| 3471 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3472 | if test "x$ac_ct_CC" = x; then |
| 3473 | CC="" |
| 3474 | else |
| 3475 | case $cross_compiling:$ac_tool_warned in |
| 3476 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3477 | { $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;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3479 | ac_tool_warned=yes ;; |
| 3480 | esac |
| 3481 | CC=$ac_ct_CC |
| 3482 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3483 | fi |
| 3484 | |
| 3485 | fi |
| 3486 | |
| 3487 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3488 | test -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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3490 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3491 | See \`config.log' for more details" "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3492 | |
| 3493 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3494 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3495 | set X $ac_compile |
| 3496 | ac_compiler=$2 |
| 3497 | for ac_option in --version -v -V -qversion; do |
| 3498 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3499 | case "(($ac_try" in |
| 3500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3501 | *) ac_try_echo=$ac_try;; |
| 3502 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3503 | eval 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 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3506 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3507 | 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 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3512 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3513 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3514 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3515 | test $ac_status = 0; } |
| 3516 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3517 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3519 | /* end confdefs.h. */ |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3520 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3521 | int |
| 3522 | main () |
| 3523 | { |
| 3524 | |
| 3525 | ; |
| 3526 | return 0; |
| 3527 | } |
| 3528 | _ACEOF |
| 3529 | ac_clean_files_save=$ac_clean_files |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3530 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3531 | # 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. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3534 | { $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; } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3536 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3537 | |
| 3538 | # The possible output files: |
| 3539 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3540 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3541 | ac_rmfiles= |
| 3542 | for ac_file in $ac_files |
| 3543 | do |
| 3544 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3545 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3546 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3547 | esac |
| 3548 | done |
| 3549 | rm -f $ac_rmfiles |
| 3550 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3551 | if { { ac_try="$ac_link_default" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3552 | case "(($ac_try" in |
| 3553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3554 | *) ac_try_echo=$ac_try;; |
| 3555 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3556 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3557 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3558 | (eval "$ac_link_default") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3559 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3560 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3561 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3562 | # 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. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3567 | for ac_file in $ac_files '' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3568 | do |
| 3569 | test -f "$ac_file" || continue |
| 3570 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3571 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3572 | ;; |
| 3573 | [ab].out ) |
| 3574 | # We found the default executable, but exeext='' is most |
| 3575 | # certainly right. |
| 3576 | break;; |
| 3577 | *.* ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3578 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3579 | 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. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3587 | break;; |
| 3588 | * ) |
| 3589 | break;; |
| 3590 | esac |
| 3591 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3592 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3593 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3594 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3595 | ac_file='' |
| 3596 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3597 | if test -z "$ac_file"; then : |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3599 | $as_echo "no" >&6; } |
| 3600 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3602 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3603 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3604 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3605 | as_fn_error 77 "C compiler cannot create executables |
| 3606 | See \`config.log' for more details" "$LINENO" 5; } |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3607 | else |
| 3608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3609 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3610 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3611 | { $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; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3615 | ac_exeext=$ac_cv_exeext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3616 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3617 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3618 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3620 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3621 | if { { ac_try="$ac_link" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3622 | case "(($ac_try" in |
| 3623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3624 | *) ac_try_echo=$ac_try;; |
| 3625 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3626 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3627 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3628 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3629 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3631 | test $ac_status = 0; }; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3632 | # 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'. |
| 3636 | for ac_file in conftest.exe conftest conftest.*; do |
| 3637 | test -f "$ac_file" || continue |
| 3638 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3639 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3640 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3641 | break;; |
| 3642 | * ) break;; |
| 3643 | esac |
| 3644 | done |
| 3645 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3646 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3647 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3648 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3649 | See \`config.log' for more details" "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3650 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3651 | rm -f conftest conftest$ac_cv_exeext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3653 | $as_echo "$ac_cv_exeext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3654 | |
| 3655 | rm -f conftest.$ac_ext |
| 3656 | EXEEXT=$ac_cv_exeext |
| 3657 | ac_exeext=$EXEEXT |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3659 | /* end confdefs.h. */ |
| 3660 | #include <stdio.h> |
| 3661 | int |
| 3662 | main () |
| 3663 | { |
| 3664 | FILE *f = fopen ("conftest.out", "w"); |
| 3665 | return ferror (f) || fclose (f) != 0; |
| 3666 | |
| 3667 | ; |
| 3668 | return 0; |
| 3669 | } |
| 3670 | _ACEOF |
| 3671 | ac_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; } |
| 3676 | if test "$cross_compiling" != yes; then |
| 3677 | { { ac_try="$ac_link" |
| 3678 | case "(($ac_try" in |
| 3679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3680 | *) ac_try_echo=$ac_try;; |
| 3681 | esac |
| 3682 | eval 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;; |
| 3692 | esac |
| 3693 | eval 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3706 | as_fn_error $? "cannot run C compiled programs. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3707 | If you meant to cross compile, use \`--host'. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3708 | See \`config.log' for more details" "$LINENO" 5; } |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3709 | fi |
| 3710 | fi |
| 3711 | fi |
| 3712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3713 | $as_echo "$cross_compiling" >&6; } |
| 3714 | |
| 3715 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3716 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3717 | { $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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3719 | if ${ac_cv_objext+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3720 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3721 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3723 | /* end confdefs.h. */ |
| 3724 | |
| 3725 | int |
| 3726 | main () |
| 3727 | { |
| 3728 | |
| 3729 | ; |
| 3730 | return 0; |
| 3731 | } |
| 3732 | _ACEOF |
| 3733 | rm -f conftest.o conftest.obj |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3734 | if { { ac_try="$ac_compile" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3735 | case "(($ac_try" in |
| 3736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3737 | *) ac_try_echo=$ac_try;; |
| 3738 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3739 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3740 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3741 | (eval "$ac_compile") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3742 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3743 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3744 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3745 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3746 | test -f "$ac_file" || continue; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3747 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3748 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3749 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3750 | break;; |
| 3751 | esac |
| 3752 | done |
| 3753 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3754 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3756 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3757 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3758 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3759 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3760 | See \`config.log' for more details" "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3761 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3762 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3763 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3765 | $as_echo "$ac_cv_objext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3766 | OBJEXT=$ac_cv_objext |
| 3767 | ac_objext=$OBJEXT |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3768 | { $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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3770 | if ${ac_cv_c_compiler_gnu+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3771 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3772 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3774 | /* end confdefs.h. */ |
| 3775 | |
| 3776 | int |
| 3777 | main () |
| 3778 | { |
| 3779 | #ifndef __GNUC__ |
| 3780 | choke me |
| 3781 | #endif |
| 3782 | |
| 3783 | ; |
| 3784 | return 0; |
| 3785 | } |
| 3786 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3787 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3788 | ac_compiler_gnu=yes |
| 3789 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3790 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3791 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3793 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3794 | |
| 3795 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3797 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3798 | if test $ac_compiler_gnu = yes; then |
| 3799 | GCC=yes |
| 3800 | else |
| 3801 | GCC= |
| 3802 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3803 | ac_test_CFLAGS=${CFLAGS+set} |
| 3804 | ac_save_CFLAGS=$CFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3805 | { $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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3807 | if ${ac_cv_prog_cc_g+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3808 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3809 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3810 | 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" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3815 | /* end confdefs.h. */ |
| 3816 | |
| 3817 | int |
| 3818 | main () |
| 3819 | { |
| 3820 | |
| 3821 | ; |
| 3822 | return 0; |
| 3823 | } |
| 3824 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3825 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3826 | ac_cv_prog_cc_g=yes |
| 3827 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3828 | CFLAGS="" |
| 3829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3830 | /* end confdefs.h. */ |
| 3831 | |
| 3832 | int |
| 3833 | main () |
| 3834 | { |
| 3835 | |
| 3836 | ; |
| 3837 | return 0; |
| 3838 | } |
| 3839 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3840 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3841 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3842 | else |
| 3843 | ac_c_werror_flag=$ac_save_c_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3844 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3846 | /* end confdefs.h. */ |
| 3847 | |
| 3848 | int |
| 3849 | main () |
| 3850 | { |
| 3851 | |
| 3852 | ; |
| 3853 | return 0; |
| 3854 | } |
| 3855 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3856 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3857 | ac_cv_prog_cc_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3858 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3860 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3862 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3864 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3865 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3867 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3868 | if test "$ac_test_CFLAGS" = set; then |
| 3869 | CFLAGS=$ac_save_CFLAGS |
| 3870 | elif 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 |
| 3876 | else |
| 3877 | if test "$GCC" = yes; then |
| 3878 | CFLAGS="-O2" |
| 3879 | else |
| 3880 | CFLAGS= |
| 3881 | fi |
| 3882 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3883 | { $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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3885 | if ${ac_cv_prog_cc_c89+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3886 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3887 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3888 | ac_cv_prog_cc_c89=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3889 | ac_save_CC=$CC |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3891 | /* end confdefs.h. */ |
| 3892 | #include <stdarg.h> |
| 3893 | #include <stdio.h> |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3894 | struct stat; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3895 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3896 | struct buf { int x; }; |
| 3897 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3898 | static char *e (p, i) |
| 3899 | char **p; |
| 3900 | int i; |
| 3901 | { |
| 3902 | return p[i]; |
| 3903 | } |
| 3904 | static 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 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3917 | as 'x'. The following induces an error, until -std is added to get |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3918 | 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 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3920 | that's true only with -std. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3921 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3922 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3923 | /* 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' |
| 3926 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3927 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3928 | int test (int i, double x); |
| 3929 | struct s1 {int (*f) (int a);}; |
| 3930 | struct s2 {int (*f) (double a);}; |
| 3931 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3932 | int argc; |
| 3933 | char **argv; |
| 3934 | int |
| 3935 | main () |
| 3936 | { |
| 3937 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3938 | ; |
| 3939 | return 0; |
| 3940 | } |
| 3941 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3942 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3943 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3944 | do |
| 3945 | CC="$ac_save_CC $ac_arg" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3946 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3947 | ac_cv_prog_cc_c89=$ac_arg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3948 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3949 | rm -f core conftest.err conftest.$ac_objext |
| 3950 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3951 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3952 | rm -f conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3953 | CC=$ac_save_CC |
| 3954 | |
| 3955 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3956 | # AC_CACHE_VAL |
| 3957 | case "x$ac_cv_prog_cc_c89" in |
| 3958 | x) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3960 | $as_echo "none needed" >&6; } ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3961 | xno) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3963 | $as_echo "unsupported" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3964 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3965 | CC="$CC $ac_cv_prog_cc_c89" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3967 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3968 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3969 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3970 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3971 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3972 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3973 | ac_ext=c |
| 3974 | ac_cpp='$CPP $CPPFLAGS' |
| 3975 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3976 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3977 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3978 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3979 | ac_ext=c |
| 3980 | ac_cpp='$CPP $CPPFLAGS' |
| 3981 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3982 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3983 | ac_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; } |
| 3986 | if ${am_cv_prog_cc_c_o+:} false; then : |
| 3987 | $as_echo_n "(cached) " >&6 |
| 3988 | else |
| 3989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3990 | /* end confdefs.h. */ |
| 3991 | |
| 3992 | int |
| 3993 | main () |
| 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 |
| 4020 | fi |
| 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; } |
| 4023 | if 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" |
| 4030 | fi |
| 4031 | ac_ext=c |
| 4032 | ac_cpp='$CPP $CPPFLAGS' |
| 4033 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4034 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4035 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4036 | |
| 4037 | |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4038 | depcc="$CC" am_compiler_list= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4039 | |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4040 | { $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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4042 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4043 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4044 | else |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4045 | 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4049 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 4050 | # in D". |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 4051 | rm -rf conftest.dir |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4052 | 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4085 | # 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.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4088 | done |
| 4089 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4090 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4091 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4092 | # mode. It turns out that the SunPro C++ compiler does not properly |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4093 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 4094 | # versions had trouble with output in subdirs. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4095 | 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4103 | # After this tag, mechanisms are not by side-effect, so they'll |
| 4104 | # only be used when explicitly requested. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4105 | if test "x$enable_dependency_tracking" = xyes; then |
| 4106 | continue |
| 4107 | else |
| 4108 | break |
| 4109 | fi |
| 4110 | ;; |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 4111 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4112 | # This compiler won't grok '-c -o', but also, the minuso test has |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4113 | # 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 |
| 4146 | else |
| 4147 | am_cv_CC_dependencies_compiler_type=none |
| 4148 | fi |
| 4149 | |
| 4150 | fi |
| 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; } |
| 4153 | CCDEPMODE=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='#' |
| 4160 | else |
| 4161 | am__fastdepCC_TRUE='#' |
| 4162 | am__fastdepCC_FALSE= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4163 | fi |
| 4164 | |
| 4165 | |
Mike Frysinger | f217ae4 | 2015-11-11 13:43:14 -0500 | [diff] [blame] | 4166 | |
| 4167 | if 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. |
| 4171 | set 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; } |
| 4174 | if ${ac_cv_prog_AR+:} false; then : |
| 4175 | $as_echo_n "(cached) " >&6 |
| 4176 | else |
| 4177 | if test -n "$AR"; then |
| 4178 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4179 | else |
| 4180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4181 | for as_dir in $PATH |
| 4182 | do |
| 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 |
| 4191 | done |
| 4192 | done |
| 4193 | IFS=$as_save_IFS |
| 4194 | |
| 4195 | fi |
| 4196 | fi |
| 4197 | AR=$ac_cv_prog_AR |
| 4198 | if test -n "$AR"; then |
| 4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 4200 | $as_echo "$AR" >&6; } |
| 4201 | else |
| 4202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4203 | $as_echo "no" >&6; } |
| 4204 | fi |
| 4205 | |
| 4206 | |
| 4207 | test -n "$AR" && break |
| 4208 | done |
| 4209 | fi |
| 4210 | if test -z "$AR"; then |
| 4211 | ac_ct_AR=$AR |
| 4212 | for ac_prog in ar lib "link -lib" |
| 4213 | do |
| 4214 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4215 | set 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; } |
| 4218 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 4219 | $as_echo_n "(cached) " >&6 |
| 4220 | else |
| 4221 | if test -n "$ac_ct_AR"; then |
| 4222 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4223 | else |
| 4224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4225 | for as_dir in $PATH |
| 4226 | do |
| 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 |
| 4235 | done |
| 4236 | done |
| 4237 | IFS=$as_save_IFS |
| 4238 | |
| 4239 | fi |
| 4240 | fi |
| 4241 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4242 | if 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; } |
| 4245 | else |
| 4246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4247 | $as_echo "no" >&6; } |
| 4248 | fi |
| 4249 | |
| 4250 | |
| 4251 | test -n "$ac_ct_AR" && break |
| 4252 | done |
| 4253 | |
| 4254 | if test "x$ac_ct_AR" = x; then |
| 4255 | AR="false" |
| 4256 | else |
| 4257 | case $cross_compiling:$ac_tool_warned in |
| 4258 | yes:) |
| 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;} |
| 4261 | ac_tool_warned=yes ;; |
| 4262 | esac |
| 4263 | AR=$ac_ct_AR |
| 4264 | fi |
| 4265 | fi |
| 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; } |
| 4271 | if ${am_cv_ar_interface+:} false; then : |
| 4272 | $as_echo_n "(cached) " >&6 |
| 4273 | else |
| 4274 | ac_ext=c |
| 4275 | ac_cpp='$CPP $CPPFLAGS' |
| 4276 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4277 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4278 | ac_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. */ |
| 4283 | int some_variable = 0; |
| 4284 | _ACEOF |
| 4285 | if 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 | |
| 4309 | fi |
| 4310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4311 | ac_ext=c |
| 4312 | ac_cpp='$CPP $CPPFLAGS' |
| 4313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4316 | |
| 4317 | fi |
| 4318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 |
| 4319 | $as_echo "$am_cv_ar_interface" >&6; } |
| 4320 | |
| 4321 | case $am_cv_ar_interface in |
| 4322 | ar) |
| 4323 | ;; |
| 4324 | lib) |
| 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 | ;; |
| 4333 | unknown) |
| 4334 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 |
| 4335 | ;; |
| 4336 | esac |
| 4337 | |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4338 | # By default we simply use the C compiler to build assembly code. |
| 4339 | |
| 4340 | test "${CCAS+set}" = set || CCAS=$CC |
| 4341 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS |
| 4342 | |
| 4343 | |
| 4344 | |
| 4345 | depcc="$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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4349 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4350 | $as_echo_n "(cached) " >&6 |
| 4351 | else |
| 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4356 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 4357 | # in D". |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 4358 | rm -rf conftest.dir |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4359 | 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4390 | # 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.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4393 | done |
| 4394 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4395 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4396 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4397 | # mode. It turns out that the SunPro C++ compiler does not properly |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4398 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 4399 | # versions had trouble with output in subdirs. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4400 | 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4408 | # After this tag, mechanisms are not by side-effect, so they'll |
| 4409 | # only be used when explicitly requested. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4410 | if test "x$enable_dependency_tracking" = xyes; then |
| 4411 | continue |
| 4412 | else |
| 4413 | break |
| 4414 | fi |
| 4415 | ;; |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 4416 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4417 | # This compiler won't grok '-c -o', but also, the minuso test has |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4418 | # 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 |
| 4451 | else |
| 4452 | am_cv_CCAS_dependencies_compiler_type=none |
| 4453 | fi |
| 4454 | |
| 4455 | fi |
| 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; } |
| 4458 | CCASDEPMODE=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='#' |
| 4465 | else |
| 4466 | am__fastdepCCAS_TRUE='#' |
| 4467 | am__fastdepCCAS_FALSE= |
| 4468 | fi |
| 4469 | |
| 4470 | |
| 4471 | ac_ext=c |
| 4472 | ac_cpp='$CPP $CPPFLAGS' |
| 4473 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4474 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4475 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4476 | if 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. |
| 4478 | set 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4481 | if ${ac_cv_prog_CC+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4482 | $as_echo_n "(cached) " >&6 |
| 4483 | else |
| 4484 | if test -n "$CC"; then |
| 4485 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4486 | else |
| 4487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4488 | for as_dir in $PATH |
| 4489 | do |
| 4490 | IFS=$as_save_IFS |
| 4491 | test -z "$as_dir" && as_dir=. |
| 4492 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4493 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4494 | 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 |
| 4498 | done |
| 4499 | done |
| 4500 | IFS=$as_save_IFS |
| 4501 | |
| 4502 | fi |
| 4503 | fi |
| 4504 | CC=$ac_cv_prog_CC |
| 4505 | if test -n "$CC"; then |
| 4506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4507 | $as_echo "$CC" >&6; } |
| 4508 | else |
| 4509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4510 | $as_echo "no" >&6; } |
| 4511 | fi |
| 4512 | |
| 4513 | |
| 4514 | fi |
| 4515 | if 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. |
| 4518 | set 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4521 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4522 | $as_echo_n "(cached) " >&6 |
| 4523 | else |
| 4524 | if test -n "$ac_ct_CC"; then |
| 4525 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4526 | else |
| 4527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4528 | for as_dir in $PATH |
| 4529 | do |
| 4530 | IFS=$as_save_IFS |
| 4531 | test -z "$as_dir" && as_dir=. |
| 4532 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4533 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4534 | 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 |
| 4538 | done |
| 4539 | done |
| 4540 | IFS=$as_save_IFS |
| 4541 | |
| 4542 | fi |
| 4543 | fi |
| 4544 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4545 | if 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; } |
| 4548 | else |
| 4549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4550 | $as_echo "no" >&6; } |
| 4551 | fi |
| 4552 | |
| 4553 | if test "x$ac_ct_CC" = x; then |
| 4554 | CC="" |
| 4555 | else |
| 4556 | case $cross_compiling:$ac_tool_warned in |
| 4557 | yes:) |
| 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;} |
| 4560 | ac_tool_warned=yes ;; |
| 4561 | esac |
| 4562 | CC=$ac_ct_CC |
| 4563 | fi |
| 4564 | else |
| 4565 | CC="$ac_cv_prog_CC" |
| 4566 | fi |
| 4567 | |
| 4568 | if 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. |
| 4571 | set 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4574 | if ${ac_cv_prog_CC+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4575 | $as_echo_n "(cached) " >&6 |
| 4576 | else |
| 4577 | if test -n "$CC"; then |
| 4578 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4579 | else |
| 4580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4581 | for as_dir in $PATH |
| 4582 | do |
| 4583 | IFS=$as_save_IFS |
| 4584 | test -z "$as_dir" && as_dir=. |
| 4585 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4586 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4587 | 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 |
| 4591 | done |
| 4592 | done |
| 4593 | IFS=$as_save_IFS |
| 4594 | |
| 4595 | fi |
| 4596 | fi |
| 4597 | CC=$ac_cv_prog_CC |
| 4598 | if test -n "$CC"; then |
| 4599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4600 | $as_echo "$CC" >&6; } |
| 4601 | else |
| 4602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4603 | $as_echo "no" >&6; } |
| 4604 | fi |
| 4605 | |
| 4606 | |
| 4607 | fi |
| 4608 | fi |
| 4609 | if test -z "$CC"; then |
| 4610 | # Extract the first word of "cc", so it can be a program name with args. |
| 4611 | set 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4614 | if ${ac_cv_prog_CC+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4615 | $as_echo_n "(cached) " >&6 |
| 4616 | else |
| 4617 | if test -n "$CC"; then |
| 4618 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4619 | else |
| 4620 | ac_prog_rejected=no |
| 4621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4622 | for as_dir in $PATH |
| 4623 | do |
| 4624 | IFS=$as_save_IFS |
| 4625 | test -z "$as_dir" && as_dir=. |
| 4626 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4628 | 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 |
| 4636 | done |
| 4637 | done |
| 4638 | IFS=$as_save_IFS |
| 4639 | |
| 4640 | if 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 |
| 4651 | fi |
| 4652 | fi |
| 4653 | fi |
| 4654 | CC=$ac_cv_prog_CC |
| 4655 | if test -n "$CC"; then |
| 4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4657 | $as_echo "$CC" >&6; } |
| 4658 | else |
| 4659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4660 | $as_echo "no" >&6; } |
| 4661 | fi |
| 4662 | |
| 4663 | |
| 4664 | fi |
| 4665 | if 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. |
| 4670 | set 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4673 | if ${ac_cv_prog_CC+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4674 | $as_echo_n "(cached) " >&6 |
| 4675 | else |
| 4676 | if test -n "$CC"; then |
| 4677 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4678 | else |
| 4679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4680 | for as_dir in $PATH |
| 4681 | do |
| 4682 | IFS=$as_save_IFS |
| 4683 | test -z "$as_dir" && as_dir=. |
| 4684 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4685 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4686 | 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 |
| 4690 | done |
| 4691 | done |
| 4692 | IFS=$as_save_IFS |
| 4693 | |
| 4694 | fi |
| 4695 | fi |
| 4696 | CC=$ac_cv_prog_CC |
| 4697 | if test -n "$CC"; then |
| 4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4699 | $as_echo "$CC" >&6; } |
| 4700 | else |
| 4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4702 | $as_echo "no" >&6; } |
| 4703 | fi |
| 4704 | |
| 4705 | |
| 4706 | test -n "$CC" && break |
| 4707 | done |
| 4708 | fi |
| 4709 | if test -z "$CC"; then |
| 4710 | ac_ct_CC=$CC |
| 4711 | for ac_prog in cl.exe |
| 4712 | do |
| 4713 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4714 | set 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4717 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4718 | $as_echo_n "(cached) " >&6 |
| 4719 | else |
| 4720 | if test -n "$ac_ct_CC"; then |
| 4721 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4722 | else |
| 4723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4724 | for as_dir in $PATH |
| 4725 | do |
| 4726 | IFS=$as_save_IFS |
| 4727 | test -z "$as_dir" && as_dir=. |
| 4728 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4729 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4730 | 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 |
| 4734 | done |
| 4735 | done |
| 4736 | IFS=$as_save_IFS |
| 4737 | |
| 4738 | fi |
| 4739 | fi |
| 4740 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4741 | if 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; } |
| 4744 | else |
| 4745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4746 | $as_echo "no" >&6; } |
| 4747 | fi |
| 4748 | |
| 4749 | |
| 4750 | test -n "$ac_ct_CC" && break |
| 4751 | done |
| 4752 | |
| 4753 | if test "x$ac_ct_CC" = x; then |
| 4754 | CC="" |
| 4755 | else |
| 4756 | case $cross_compiling:$ac_tool_warned in |
| 4757 | yes:) |
| 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;} |
| 4760 | ac_tool_warned=yes ;; |
| 4761 | esac |
| 4762 | CC=$ac_ct_CC |
| 4763 | fi |
| 4764 | fi |
| 4765 | |
| 4766 | fi |
| 4767 | |
| 4768 | |
| 4769 | test -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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4771 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4772 | See \`config.log' for more details" "$LINENO" 5; } |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4773 | |
| 4774 | # Provide some information about the compiler. |
| 4775 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4776 | set X $ac_compile |
| 4777 | ac_compiler=$2 |
| 4778 | for ac_option in --version -v -V -qversion; do |
| 4779 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4780 | case "(($ac_try" in |
| 4781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4782 | *) ac_try_echo=$ac_try;; |
| 4783 | esac |
| 4784 | eval 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; } |
| 4797 | done |
| 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4801 | if ${ac_cv_c_compiler_gnu+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4802 | $as_echo_n "(cached) " >&6 |
| 4803 | else |
| 4804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4805 | /* end confdefs.h. */ |
| 4806 | |
| 4807 | int |
| 4808 | main () |
| 4809 | { |
| 4810 | #ifndef __GNUC__ |
| 4811 | choke me |
| 4812 | #endif |
| 4813 | |
| 4814 | ; |
| 4815 | return 0; |
| 4816 | } |
| 4817 | _ACEOF |
| 4818 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4819 | ac_compiler_gnu=yes |
| 4820 | else |
| 4821 | ac_compiler_gnu=no |
| 4822 | fi |
| 4823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4824 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4825 | |
| 4826 | fi |
| 4827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4828 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4829 | if test $ac_compiler_gnu = yes; then |
| 4830 | GCC=yes |
| 4831 | else |
| 4832 | GCC= |
| 4833 | fi |
| 4834 | ac_test_CFLAGS=${CFLAGS+set} |
| 4835 | ac_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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4838 | if ${ac_cv_prog_cc_g+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4839 | $as_echo_n "(cached) " >&6 |
| 4840 | else |
| 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 | |
| 4848 | int |
| 4849 | main () |
| 4850 | { |
| 4851 | |
| 4852 | ; |
| 4853 | return 0; |
| 4854 | } |
| 4855 | _ACEOF |
| 4856 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4857 | ac_cv_prog_cc_g=yes |
| 4858 | else |
| 4859 | CFLAGS="" |
| 4860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4861 | /* end confdefs.h. */ |
| 4862 | |
| 4863 | int |
| 4864 | main () |
| 4865 | { |
| 4866 | |
| 4867 | ; |
| 4868 | return 0; |
| 4869 | } |
| 4870 | _ACEOF |
| 4871 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4872 | |
| 4873 | else |
| 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 | |
| 4879 | int |
| 4880 | main () |
| 4881 | { |
| 4882 | |
| 4883 | ; |
| 4884 | return 0; |
| 4885 | } |
| 4886 | _ACEOF |
| 4887 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4888 | ac_cv_prog_cc_g=yes |
| 4889 | fi |
| 4890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4891 | fi |
| 4892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4893 | fi |
| 4894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4895 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4896 | fi |
| 4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4898 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4899 | if test "$ac_test_CFLAGS" = set; then |
| 4900 | CFLAGS=$ac_save_CFLAGS |
| 4901 | elif 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 |
| 4907 | else |
| 4908 | if test "$GCC" = yes; then |
| 4909 | CFLAGS="-O2" |
| 4910 | else |
| 4911 | CFLAGS= |
| 4912 | fi |
| 4913 | fi |
| 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4916 | if ${ac_cv_prog_cc_c89+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4917 | $as_echo_n "(cached) " >&6 |
| 4918 | else |
| 4919 | ac_cv_prog_cc_c89=no |
| 4920 | ac_save_CC=$CC |
| 4921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4922 | /* end confdefs.h. */ |
| 4923 | #include <stdarg.h> |
| 4924 | #include <stdio.h> |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4925 | struct stat; |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4926 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4927 | struct buf { int x; }; |
| 4928 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4929 | static char *e (p, i) |
| 4930 | char **p; |
| 4931 | int i; |
| 4932 | { |
| 4933 | return p[i]; |
| 4934 | } |
| 4935 | static 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. */ |
| 4952 | int 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' |
| 4957 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4958 | |
| 4959 | int test (int i, double x); |
| 4960 | struct s1 {int (*f) (int a);}; |
| 4961 | struct s2 {int (*f) (double a);}; |
| 4962 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4963 | int argc; |
| 4964 | char **argv; |
| 4965 | int |
| 4966 | main () |
| 4967 | { |
| 4968 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4969 | ; |
| 4970 | return 0; |
| 4971 | } |
| 4972 | _ACEOF |
| 4973 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4974 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4975 | do |
| 4976 | CC="$ac_save_CC $ac_arg" |
| 4977 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4978 | ac_cv_prog_cc_c89=$ac_arg |
| 4979 | fi |
| 4980 | rm -f core conftest.err conftest.$ac_objext |
| 4981 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4982 | done |
| 4983 | rm -f conftest.$ac_ext |
| 4984 | CC=$ac_save_CC |
| 4985 | |
| 4986 | fi |
| 4987 | # AC_CACHE_VAL |
| 4988 | case "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; } ;; |
| 4999 | esac |
| 5000 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 5001 | |
| 5002 | fi |
| 5003 | |
| 5004 | ac_ext=c |
| 5005 | ac_cpp='$CPP $CPPFLAGS' |
| 5006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5009 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5010 | ac_ext=c |
| 5011 | ac_cpp='$CPP $CPPFLAGS' |
| 5012 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5013 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5014 | ac_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; } |
| 5017 | if ${am_cv_prog_cc_c_o+:} false; then : |
| 5018 | $as_echo_n "(cached) " >&6 |
| 5019 | else |
| 5020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5021 | /* end confdefs.h. */ |
| 5022 | |
| 5023 | int |
| 5024 | main () |
| 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 |
| 5051 | fi |
| 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; } |
| 5054 | if 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" |
| 5061 | fi |
| 5062 | ac_ext=c |
| 5063 | ac_cpp='$CPP $CPPFLAGS' |
| 5064 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5065 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5066 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5067 | |
| 5068 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5069 | depcc="$CC" am_compiler_list= |
| 5070 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5071 | { $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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5073 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5074 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5075 | else |
| 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5080 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 5081 | # in D". |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 5082 | rm -rf conftest.dir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5083 | 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 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5100 | am__universal=false |
| 5101 | case " $depcc " in #( |
| 5102 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 5103 | esac |
| 5104 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5105 | 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5116 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 5117 | # Solaris 10 /bin/sh. |
| 5118 | echo '/* dummy */' > sub/conftst$i.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5119 | done |
| 5120 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5121 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5122 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5123 | # mode. It turns out that the SunPro C++ compiler does not properly |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5124 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 5125 | # versions had trouble with output in subdirs. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5126 | am__obj=sub/conftest.${OBJEXT-o} |
| 5127 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5128 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5129 | gcc) |
| 5130 | # This depmode causes a compiler race in universal mode. |
| 5131 | test "$am__universal" = false || continue |
| 5132 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5133 | nosideeffect) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5134 | # After this tag, mechanisms are not by side-effect, so they'll |
| 5135 | # only be used when explicitly requested. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5136 | if test "x$enable_dependency_tracking" = xyes; then |
| 5137 | continue |
| 5138 | else |
| 5139 | break |
| 5140 | fi |
| 5141 | ;; |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 5142 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5143 | # This compiler won't grok '-c -o', but also, the minuso test has |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5144 | # 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 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5149 | none) break ;; |
| 5150 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5151 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5152 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5153 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5154 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5155 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5156 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5157 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5158 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5159 | ${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 |
| 5177 | else |
| 5178 | am_cv_CC_dependencies_compiler_type=none |
| 5179 | fi |
| 5180 | |
| 5181 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5182 | { $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; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5184 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 5185 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5186 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5187 | test "x$enable_dependency_tracking" != xno \ |
| 5188 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 5189 | am__fastdepCC_TRUE= |
| 5190 | am__fastdepCC_FALSE='#' |
| 5191 | else |
| 5192 | am__fastdepCC_TRUE='#' |
| 5193 | am__fastdepCC_FALSE= |
| 5194 | fi |
| 5195 | |
| 5196 | |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5197 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5198 | ac_ext=c |
| 5199 | ac_cpp='$CPP $CPPFLAGS' |
| 5200 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5201 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5202 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5203 | { $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; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5205 | # On Suns, sometimes $CPP names a directory. |
| 5206 | if test -n "$CPP" && test -d "$CPP"; then |
| 5207 | CPP= |
| 5208 | fi |
| 5209 | if test -z "$CPP"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5210 | if ${ac_cv_prog_CPP+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5211 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5212 | else |
| 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 |
| 5217 | for ac_c_preproc_warn_flag in '' yes |
| 5218 | do |
| 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. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5226 | /* end confdefs.h. */ |
| 5227 | #ifdef __STDC__ |
| 5228 | # include <limits.h> |
| 5229 | #else |
| 5230 | # include <assert.h> |
| 5231 | #endif |
| 5232 | Syntax error |
| 5233 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5234 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5235 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5236 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5237 | # Broken: fails on valid input. |
| 5238 | continue |
| 5239 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5240 | rm -f conftest.err conftest.i conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5241 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5242 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5243 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5245 | /* end confdefs.h. */ |
| 5246 | #include <ac_nonexistent.h> |
| 5247 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5248 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5249 | # Broken: success on invalid input. |
| 5250 | continue |
| 5251 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5252 | # Passes both tests. |
| 5253 | ac_preproc_ok=: |
| 5254 | break |
| 5255 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5256 | rm -f conftest.err conftest.i conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5257 | |
| 5258 | done |
| 5259 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5260 | rm -f conftest.i conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5261 | if $ac_preproc_ok; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5262 | break |
| 5263 | fi |
| 5264 | |
| 5265 | done |
| 5266 | ac_cv_prog_CPP=$CPP |
| 5267 | |
| 5268 | fi |
| 5269 | CPP=$ac_cv_prog_CPP |
| 5270 | else |
| 5271 | ac_cv_prog_CPP=$CPP |
| 5272 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 5274 | $as_echo "$CPP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5275 | ac_preproc_ok=false |
| 5276 | for ac_c_preproc_warn_flag in '' yes |
| 5277 | do |
| 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. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5285 | /* end confdefs.h. */ |
| 5286 | #ifdef __STDC__ |
| 5287 | # include <limits.h> |
| 5288 | #else |
| 5289 | # include <assert.h> |
| 5290 | #endif |
| 5291 | Syntax error |
| 5292 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5293 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5294 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5295 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5296 | # Broken: fails on valid input. |
| 5297 | continue |
| 5298 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5299 | rm -f conftest.err conftest.i conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5300 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5301 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5302 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5304 | /* end confdefs.h. */ |
| 5305 | #include <ac_nonexistent.h> |
| 5306 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5307 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5308 | # Broken: success on invalid input. |
| 5309 | continue |
| 5310 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5311 | # Passes both tests. |
| 5312 | ac_preproc_ok=: |
| 5313 | break |
| 5314 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5315 | rm -f conftest.err conftest.i conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5316 | |
| 5317 | done |
| 5318 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5319 | rm -f conftest.i conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5320 | if $ac_preproc_ok; then : |
| 5321 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5322 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5323 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5324 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5325 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 5326 | See \`config.log' for more details" "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5327 | fi |
| 5328 | |
| 5329 | ac_ext=c |
| 5330 | ac_cpp='$CPP $CPPFLAGS' |
| 5331 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5332 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5333 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5334 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5335 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5336 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5337 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5338 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5339 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5340 | if 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 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5346 | do |
| 5347 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5348 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5350 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5351 | if ${ac_cv_prog_CXX+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5352 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5353 | else |
| 5354 | if test -n "$CXX"; then |
| 5355 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5356 | else |
| 5357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5358 | for as_dir in $PATH |
| 5359 | do |
| 5360 | IFS=$as_save_IFS |
| 5361 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5362 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5363 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5364 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5366 | break 2 |
| 5367 | fi |
| 5368 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5369 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5370 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5371 | |
| 5372 | fi |
| 5373 | fi |
| 5374 | CXX=$ac_cv_prog_CXX |
| 5375 | if test -n "$CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 5377 | $as_echo "$CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5378 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5380 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5381 | fi |
| 5382 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5383 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5384 | test -n "$CXX" && break |
| 5385 | done |
| 5386 | fi |
| 5387 | if test -z "$CXX"; then |
| 5388 | ac_ct_CXX=$CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5389 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5390 | do |
| 5391 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5392 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5394 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5395 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5396 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5397 | else |
| 5398 | if test -n "$ac_ct_CXX"; then |
| 5399 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5400 | else |
| 5401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5402 | for as_dir in $PATH |
| 5403 | do |
| 5404 | IFS=$as_save_IFS |
| 5405 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5406 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5407 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5408 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5410 | break 2 |
| 5411 | fi |
| 5412 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5413 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5414 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5415 | |
| 5416 | fi |
| 5417 | fi |
| 5418 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5419 | if test -n "$ac_ct_CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 5421 | $as_echo "$ac_ct_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5422 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5424 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5425 | fi |
| 5426 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5427 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5428 | test -n "$ac_ct_CXX" && break |
| 5429 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5430 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5431 | if test "x$ac_ct_CXX" = x; then |
| 5432 | CXX="g++" |
| 5433 | else |
| 5434 | case $cross_compiling:$ac_tool_warned in |
| 5435 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5436 | { $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;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5438 | ac_tool_warned=yes ;; |
| 5439 | esac |
| 5440 | CXX=$ac_ct_CXX |
| 5441 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5442 | fi |
| 5443 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5444 | fi |
| 5445 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5446 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5447 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 5448 | set X $ac_compile |
| 5449 | ac_compiler=$2 |
| 5450 | for ac_option in --version -v -V -qversion; do |
| 5451 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5452 | case "(($ac_try" in |
| 5453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5454 | *) ac_try_echo=$ac_try;; |
| 5455 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5456 | eval 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 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5459 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5460 | 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 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5465 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 5466 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5467 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5468 | test $ac_status = 0; } |
| 5469 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5470 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5471 | { $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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5473 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5474 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5475 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5477 | /* end confdefs.h. */ |
| 5478 | |
| 5479 | int |
| 5480 | main () |
| 5481 | { |
| 5482 | #ifndef __GNUC__ |
| 5483 | choke me |
| 5484 | #endif |
| 5485 | |
| 5486 | ; |
| 5487 | return 0; |
| 5488 | } |
| 5489 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5490 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5491 | ac_compiler_gnu=yes |
| 5492 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5493 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5494 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5496 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5497 | |
| 5498 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5500 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 5501 | if test $ac_compiler_gnu = yes; then |
| 5502 | GXX=yes |
| 5503 | else |
| 5504 | GXX= |
| 5505 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5506 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5507 | ac_save_CXXFLAGS=$CXXFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5508 | { $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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5510 | if ${ac_cv_prog_cxx_g+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5511 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5512 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5513 | 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" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5518 | /* end confdefs.h. */ |
| 5519 | |
| 5520 | int |
| 5521 | main () |
| 5522 | { |
| 5523 | |
| 5524 | ; |
| 5525 | return 0; |
| 5526 | } |
| 5527 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5528 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5529 | ac_cv_prog_cxx_g=yes |
| 5530 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5531 | CXXFLAGS="" |
| 5532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5533 | /* end confdefs.h. */ |
| 5534 | |
| 5535 | int |
| 5536 | main () |
| 5537 | { |
| 5538 | |
| 5539 | ; |
| 5540 | return 0; |
| 5541 | } |
| 5542 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5543 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5544 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5545 | else |
| 5546 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5547 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5549 | /* end confdefs.h. */ |
| 5550 | |
| 5551 | int |
| 5552 | main () |
| 5553 | { |
| 5554 | |
| 5555 | ; |
| 5556 | return 0; |
| 5557 | } |
| 5558 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5559 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5560 | ac_cv_prog_cxx_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5561 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5563 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5565 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5567 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5568 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 5570 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5571 | if test "$ac_test_CXXFLAGS" = set; then |
| 5572 | CXXFLAGS=$ac_save_CXXFLAGS |
| 5573 | elif 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 |
| 5579 | else |
| 5580 | if test "$GXX" = yes; then |
| 5581 | CXXFLAGS="-O2" |
| 5582 | else |
| 5583 | CXXFLAGS= |
| 5584 | fi |
| 5585 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5586 | ac_ext=c |
| 5587 | ac_cpp='$CPP $CPPFLAGS' |
| 5588 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5589 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5590 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5591 | |
| 5592 | depcc="$CXX" am_compiler_list= |
| 5593 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5594 | { $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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5596 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5597 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5598 | else |
| 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5603 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 5604 | # in D". |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 5605 | rm -rf conftest.dir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5606 | 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 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5623 | am__universal=false |
| 5624 | case " $depcc " in #( |
| 5625 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 5626 | esac |
| 5627 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5628 | 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5639 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 5640 | # Solaris 10 /bin/sh. |
| 5641 | echo '/* dummy */' > sub/conftst$i.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5642 | done |
| 5643 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5644 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5645 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5646 | # mode. It turns out that the SunPro C++ compiler does not properly |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5647 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 5648 | # versions had trouble with output in subdirs. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5649 | am__obj=sub/conftest.${OBJEXT-o} |
| 5650 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5651 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5652 | gcc) |
| 5653 | # This depmode causes a compiler race in universal mode. |
| 5654 | test "$am__universal" = false || continue |
| 5655 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5656 | nosideeffect) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5657 | # After this tag, mechanisms are not by side-effect, so they'll |
| 5658 | # only be used when explicitly requested. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5659 | if test "x$enable_dependency_tracking" = xyes; then |
| 5660 | continue |
| 5661 | else |
| 5662 | break |
| 5663 | fi |
| 5664 | ;; |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 5665 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5666 | # This compiler won't grok '-c -o', but also, the minuso test has |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5667 | # 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 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5672 | none) break ;; |
| 5673 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5674 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5675 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5676 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5677 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5678 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5679 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5680 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5681 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5682 | ${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 |
| 5700 | else |
| 5701 | am_cv_CXX_dependencies_compiler_type=none |
| 5702 | fi |
| 5703 | |
| 5704 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5705 | { $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; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5707 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 5708 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5709 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5710 | test "x$enable_dependency_tracking" != xno \ |
| 5711 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 5712 | am__fastdepCXX_TRUE= |
| 5713 | am__fastdepCXX_FALSE='#' |
| 5714 | else |
| 5715 | am__fastdepCXX_TRUE='#' |
| 5716 | am__fastdepCXX_FALSE= |
| 5717 | fi |
| 5718 | |
| 5719 | |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5720 | if 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. |
| 5722 | set 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5725 | if ${ac_cv_prog_RANLIB+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5726 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5727 | else |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5728 | if test -n "$RANLIB"; then |
| 5729 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5730 | else |
| 5731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5732 | for as_dir in $PATH |
| 5733 | do |
| 5734 | IFS=$as_save_IFS |
| 5735 | test -z "$as_dir" && as_dir=. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5736 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5738 | 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 |
| 5742 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5743 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5744 | IFS=$as_save_IFS |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5745 | |
| 5746 | fi |
| 5747 | fi |
| 5748 | RANLIB=$ac_cv_prog_RANLIB |
| 5749 | if test -n "$RANLIB"; then |
| 5750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5751 | $as_echo "$RANLIB" >&6; } |
| 5752 | else |
| 5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5754 | $as_echo "no" >&6; } |
| 5755 | fi |
| 5756 | |
| 5757 | |
| 5758 | fi |
| 5759 | if 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. |
| 5762 | set 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5765 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5766 | $as_echo_n "(cached) " >&6 |
| 5767 | else |
| 5768 | if test -n "$ac_ct_RANLIB"; then |
| 5769 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5770 | else |
| 5771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5772 | for as_dir in $PATH |
| 5773 | do |
| 5774 | IFS=$as_save_IFS |
| 5775 | test -z "$as_dir" && as_dir=. |
| 5776 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5777 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5778 | 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 |
| 5782 | done |
| 5783 | done |
| 5784 | IFS=$as_save_IFS |
| 5785 | |
| 5786 | fi |
| 5787 | fi |
| 5788 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5789 | if 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; } |
| 5792 | else |
| 5793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5794 | $as_echo "no" >&6; } |
| 5795 | fi |
| 5796 | |
| 5797 | if test "x$ac_ct_RANLIB" = x; then |
| 5798 | RANLIB=":" |
| 5799 | else |
| 5800 | case $cross_compiling:$ac_tool_warned in |
| 5801 | yes:) |
| 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;} |
| 5804 | ac_tool_warned=yes ;; |
| 5805 | esac |
| 5806 | RANLIB=$ac_ct_RANLIB |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5807 | fi |
| 5808 | else |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5809 | RANLIB="$ac_cv_prog_RANLIB" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5810 | fi |
| 5811 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5812 | |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 5813 | # Check whether --enable-m32 was given. |
| 5814 | if 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 |
| 5828 | else |
| 5829 | usem32=false |
| 5830 | fi |
| 5831 | |
| 5832 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5833 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5834 | { $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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5836 | if ${ac_cv_path_GREP+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5837 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5838 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5839 | if test -z "$GREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5840 | ac_path_GREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5841 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5843 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5844 | do |
| 5845 | IFS=$as_save_IFS |
| 5846 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5847 | 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5850 | as_fn_executable_p "$ac_path_GREP" || continue |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5851 | # Check for GNU ac_path_GREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5852 | # Check for GNU $ac_path_GREP |
| 5853 | case `"$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 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5858 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5859 | while : |
| 5860 | do |
| 5861 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5862 | mv "conftest.tmp" "conftest.in" |
| 5863 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5864 | $as_echo 'GREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5865 | "$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 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5867 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5868 | 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 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5872 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5873 | # 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;; |
| 5877 | esac |
| 5878 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5879 | $ac_path_GREP_found && break 3 |
| 5880 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5881 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5882 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5883 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5884 | if test -z "$ac_cv_path_GREP"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5885 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5886 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5887 | else |
| 5888 | ac_cv_path_GREP=$GREP |
| 5889 | fi |
| 5890 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5891 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 5893 | $as_echo "$ac_cv_path_GREP" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5894 | GREP="$ac_cv_path_GREP" |
| 5895 | |
| 5896 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5898 | $as_echo_n "checking for egrep... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5899 | if ${ac_cv_path_EGREP+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5900 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5901 | else |
| 5902 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5903 | then ac_cv_path_EGREP="$GREP -E" |
| 5904 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5905 | if test -z "$EGREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5906 | ac_path_EGREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5907 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5909 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5910 | do |
| 5911 | IFS=$as_save_IFS |
| 5912 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5913 | 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5916 | as_fn_executable_p "$ac_path_EGREP" || continue |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5917 | # Check for GNU ac_path_EGREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5918 | # Check for GNU $ac_path_EGREP |
| 5919 | case `"$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 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5924 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5925 | while : |
| 5926 | do |
| 5927 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5928 | mv "conftest.tmp" "conftest.in" |
| 5929 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5930 | $as_echo 'EGREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5931 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5932 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5933 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5934 | 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;; |
| 5943 | esac |
| 5944 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5945 | $ac_path_EGREP_found && break 3 |
| 5946 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5947 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5948 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5949 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5950 | if test -z "$ac_cv_path_EGREP"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5951 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5952 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5953 | else |
| 5954 | ac_cv_path_EGREP=$EGREP |
| 5955 | fi |
| 5956 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5957 | fi |
| 5958 | fi |
| 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 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5964 | { $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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5966 | if ${ac_cv_header_stdc+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5967 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5968 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5970 | /* end confdefs.h. */ |
| 5971 | #include <stdlib.h> |
| 5972 | #include <stdarg.h> |
| 5973 | #include <string.h> |
| 5974 | #include <float.h> |
| 5975 | |
| 5976 | int |
| 5977 | main () |
| 5978 | { |
| 5979 | |
| 5980 | ; |
| 5981 | return 0; |
| 5982 | } |
| 5983 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5984 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5985 | ac_cv_header_stdc=yes |
| 5986 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5987 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5988 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5990 | |
| 5991 | if test $ac_cv_header_stdc = yes; then |
| 5992 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5994 | /* end confdefs.h. */ |
| 5995 | #include <string.h> |
| 5996 | |
| 5997 | _ACEOF |
| 5998 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5999 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 6000 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6001 | else |
| 6002 | ac_cv_header_stdc=no |
| 6003 | fi |
| 6004 | rm -f conftest* |
| 6005 | |
| 6006 | fi |
| 6007 | |
| 6008 | if test $ac_cv_header_stdc = yes; then |
| 6009 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6011 | /* end confdefs.h. */ |
| 6012 | #include <stdlib.h> |
| 6013 | |
| 6014 | _ACEOF |
| 6015 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6016 | $EGREP "free" >/dev/null 2>&1; then : |
| 6017 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6018 | else |
| 6019 | ac_cv_header_stdc=no |
| 6020 | fi |
| 6021 | rm -f conftest* |
| 6022 | |
| 6023 | fi |
| 6024 | |
| 6025 | if test $ac_cv_header_stdc = yes; then |
| 6026 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6027 | if test "$cross_compiling" = yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6028 | : |
| 6029 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6031 | /* end confdefs.h. */ |
| 6032 | #include <ctype.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6033 | #include <stdlib.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6034 | #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))) |
| 6046 | int |
| 6047 | main () |
| 6048 | { |
| 6049 | int i; |
| 6050 | for (i = 0; i < 256; i++) |
| 6051 | if (XOR (islower (i), ISLOWER (i)) |
| 6052 | || toupper (i) != TOUPPER (i)) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6053 | return 2; |
| 6054 | return 0; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6055 | } |
| 6056 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6057 | if ac_fn_c_try_run "$LINENO"; then : |
| 6058 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6059 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6060 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6061 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6062 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6063 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6064 | fi |
| 6065 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6066 | fi |
| 6067 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 6069 | $as_echo "$ac_cv_header_stdc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6070 | if test $ac_cv_header_stdc = yes; then |
| 6071 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6072 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6073 | |
| 6074 | fi |
| 6075 | |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 6076 | # Check whether --enable-largefile was given. |
| 6077 | if test "${enable_largefile+set}" = set; then : |
| 6078 | enableval=$enable_largefile; |
| 6079 | fi |
| 6080 | |
| 6081 | if 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; } |
| 6085 | if ${ac_cv_sys_largefile_CC+:} false; then : |
| 6086 | $as_echo_n "(cached) " >&6 |
| 6087 | else |
| 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 Zhang | 728bcdf | 2016-01-08 00:27:48 -0800 | [diff] [blame] | 6101 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 6102 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6103 | && LARGE_OFF_T % 2147483647 == 1) |
| 6104 | ? 1 : -1]; |
| 6105 | int |
| 6106 | main () |
| 6107 | { |
| 6108 | |
| 6109 | ; |
| 6110 | return 0; |
| 6111 | } |
| 6112 | _ACEOF |
| 6113 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6114 | break |
| 6115 | fi |
| 6116 | rm -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 |
| 6120 | fi |
| 6121 | rm -f core conftest.err conftest.$ac_objext |
| 6122 | break |
| 6123 | done |
| 6124 | CC=$ac_save_CC |
| 6125 | rm -f conftest.$ac_ext |
| 6126 | fi |
| 6127 | fi |
| 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; } |
| 6136 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
| 6137 | $as_echo_n "(cached) " >&6 |
| 6138 | else |
| 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 Zhang | 728bcdf | 2016-01-08 00:27:48 -0800 | [diff] [blame] | 6147 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 6148 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6149 | && LARGE_OFF_T % 2147483647 == 1) |
| 6150 | ? 1 : -1]; |
| 6151 | int |
| 6152 | main () |
| 6153 | { |
| 6154 | |
| 6155 | ; |
| 6156 | return 0; |
| 6157 | } |
| 6158 | _ACEOF |
| 6159 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6160 | ac_cv_sys_file_offset_bits=no; break |
| 6161 | fi |
| 6162 | rm -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 Zhang | 728bcdf | 2016-01-08 00:27:48 -0800 | [diff] [blame] | 6171 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 6172 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6173 | && LARGE_OFF_T % 2147483647 == 1) |
| 6174 | ? 1 : -1]; |
| 6175 | int |
| 6176 | main () |
| 6177 | { |
| 6178 | |
| 6179 | ; |
| 6180 | return 0; |
| 6181 | } |
| 6182 | _ACEOF |
| 6183 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6184 | ac_cv_sys_file_offset_bits=64; break |
| 6185 | fi |
| 6186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6187 | ac_cv_sys_file_offset_bits=unknown |
| 6188 | break |
| 6189 | done |
| 6190 | fi |
| 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; } |
| 6193 | case $ac_cv_sys_file_offset_bits in #( |
| 6194 | no | unknown) ;; |
| 6195 | *) |
| 6196 | cat >>confdefs.h <<_ACEOF |
| 6197 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 6198 | _ACEOF |
| 6199 | ;; |
| 6200 | esac |
| 6201 | rm -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; } |
| 6205 | if ${ac_cv_sys_large_files+:} false; then : |
| 6206 | $as_echo_n "(cached) " >&6 |
| 6207 | else |
| 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 Zhang | 728bcdf | 2016-01-08 00:27:48 -0800 | [diff] [blame] | 6216 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 6217 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6218 | && LARGE_OFF_T % 2147483647 == 1) |
| 6219 | ? 1 : -1]; |
| 6220 | int |
| 6221 | main () |
| 6222 | { |
| 6223 | |
| 6224 | ; |
| 6225 | return 0; |
| 6226 | } |
| 6227 | _ACEOF |
| 6228 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6229 | ac_cv_sys_large_files=no; break |
| 6230 | fi |
| 6231 | rm -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 Zhang | 728bcdf | 2016-01-08 00:27:48 -0800 | [diff] [blame] | 6240 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 6241 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6242 | && LARGE_OFF_T % 2147483647 == 1) |
| 6243 | ? 1 : -1]; |
| 6244 | int |
| 6245 | main () |
| 6246 | { |
| 6247 | |
| 6248 | ; |
| 6249 | return 0; |
| 6250 | } |
| 6251 | _ACEOF |
| 6252 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6253 | ac_cv_sys_large_files=1; break |
| 6254 | fi |
| 6255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6256 | ac_cv_sys_large_files=unknown |
| 6257 | break |
| 6258 | done |
| 6259 | fi |
| 6260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 6261 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 6262 | case $ac_cv_sys_large_files in #( |
| 6263 | no | unknown) ;; |
| 6264 | *) |
| 6265 | cat >>confdefs.h <<_ACEOF |
| 6266 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 6267 | _ACEOF |
| 6268 | ;; |
| 6269 | esac |
| 6270 | rm -rf conftest* |
| 6271 | fi |
| 6272 | |
| 6273 | |
| 6274 | fi |
| 6275 | |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6276 | |
| 6277 | |
| 6278 | |
| 6279 | ac_ext=c |
| 6280 | ac_cpp='$CPP $CPPFLAGS' |
| 6281 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6282 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6283 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6284 | |
| 6285 | ax_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: |
| 6294 | if 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 |
| 6308 | extern "C" |
| 6309 | #endif |
| 6310 | char pthread_join (); |
| 6311 | int |
| 6312 | main () |
| 6313 | { |
| 6314 | return pthread_join (); |
| 6315 | ; |
| 6316 | return 0; |
| 6317 | } |
| 6318 | _ACEOF |
| 6319 | if ac_fn_c_try_link "$LINENO"; then : |
| 6320 | ax_pthread_ok=yes |
| 6321 | fi |
| 6322 | rm -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" |
| 6332 | fi |
| 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 | |
| 6344 | ax_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 | |
| 6366 | case "${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 | ;; |
| 6383 | esac |
| 6384 | |
| 6385 | if test x"$ax_pthread_ok" = xno; then |
| 6386 | for 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. |
| 6402 | set 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6405 | if ${ac_cv_prog_ax_pthread_config+:} false; then : |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6406 | $as_echo_n "(cached) " >&6 |
| 6407 | else |
| 6408 | if test -n "$ax_pthread_config"; then |
| 6409 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. |
| 6410 | else |
| 6411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6412 | for as_dir in $PATH |
| 6413 | do |
| 6414 | IFS=$as_save_IFS |
| 6415 | test -z "$as_dir" && as_dir=. |
| 6416 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6417 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6418 | 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 |
| 6422 | done |
| 6423 | done |
| 6424 | IFS=$as_save_IFS |
| 6425 | |
| 6426 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" |
| 6427 | fi |
| 6428 | fi |
| 6429 | ax_pthread_config=$ac_cv_prog_ax_pthread_config |
| 6430 | if 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; } |
| 6433 | else |
| 6434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6435 | $as_echo "no" >&6; } |
| 6436 | fi |
| 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;} |
| 6470 | int |
| 6471 | main () |
| 6472 | { |
| 6473 | pthread_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 |
| 6483 | if ac_fn_c_try_link "$LINENO"; then : |
| 6484 | ax_pthread_ok=yes |
| 6485 | fi |
| 6486 | rm -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="" |
| 6500 | done |
| 6501 | fi |
| 6502 | |
| 6503 | # Various other checks: |
| 6504 | if 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> |
| 6518 | int |
| 6519 | main () |
| 6520 | { |
| 6521 | int attr=$attr; return attr; |
| 6522 | ; |
| 6523 | return 0; |
| 6524 | } |
| 6525 | _ACEOF |
| 6526 | if ac_fn_c_try_link "$LINENO"; then : |
| 6527 | attr_name=$attr; break |
| 6528 | fi |
| 6529 | rm -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 | |
| 6536 | cat >>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 |
| 6561 | do |
| 6562 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6563 | set 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6566 | if ${ac_cv_prog_PTHREAD_CC+:} false; then : |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6567 | $as_echo_n "(cached) " >&6 |
| 6568 | else |
| 6569 | if test -n "$PTHREAD_CC"; then |
| 6570 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 6571 | else |
| 6572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6573 | for as_dir in $PATH |
| 6574 | do |
| 6575 | IFS=$as_save_IFS |
| 6576 | test -z "$as_dir" && as_dir=. |
| 6577 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6578 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6579 | 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 |
| 6583 | done |
| 6584 | done |
| 6585 | IFS=$as_save_IFS |
| 6586 | |
| 6587 | fi |
| 6588 | fi |
| 6589 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 6590 | if test -n "$PTHREAD_CC"; then |
| 6591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 6592 | $as_echo "$PTHREAD_CC" >&6; } |
| 6593 | else |
| 6594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6595 | $as_echo "no" >&6; } |
| 6596 | fi |
| 6597 | |
| 6598 | |
| 6599 | test -n "$PTHREAD_CC" && break |
| 6600 | done |
| 6601 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" |
| 6602 | |
| 6603 | else |
| 6604 | PTHREAD_CC=$CC |
| 6605 | fi |
| 6606 | else |
| 6607 | PTHREAD_CC="$CC" |
| 6608 | fi |
| 6609 | |
| 6610 | |
| 6611 | |
| 6612 | |
| 6613 | |
| 6614 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 6615 | if test x"$ax_pthread_ok" = xyes; then |
| 6616 | |
| 6617 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| 6618 | |
| 6619 | : |
| 6620 | else |
| 6621 | ax_pthread_ok=no |
| 6622 | |
| 6623 | fi |
| 6624 | ac_ext=c |
| 6625 | ac_cpp='$CPP $CPPFLAGS' |
| 6626 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6627 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6628 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6629 | |
| 6630 | |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6631 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6632 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6633 | inttypes.h stdint.h unistd.h |
| 6634 | do : |
| 6635 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6636 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 6637 | " |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6638 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6639 | cat >>confdefs.h <<_ACEOF |
| 6640 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6641 | _ACEOF |
| 6642 | |
| 6643 | fi |
| 6644 | |
| 6645 | done |
| 6646 | |
| 6647 | |
Gabriele Svelto | a9fca58 | 2017-04-11 11:51:28 +0200 | [diff] [blame] | 6648 | for ac_header in a.out.h sys/random.h |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6649 | do : |
Gabriele Svelto | a9fca58 | 2017-04-11 11:51:28 +0200 | [diff] [blame] | 6650 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6651 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 6652 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6653 | cat >>confdefs.h <<_ACEOF |
Gabriele Svelto | a9fca58 | 2017-04-11 11:51:28 +0200 | [diff] [blame] | 6654 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6655 | _ACEOF |
| 6656 | |
| 6657 | fi |
| 6658 | |
| 6659 | done |
| 6660 | |
Gabriele Svelto | a9fca58 | 2017-04-11 11:51:28 +0200 | [diff] [blame] | 6661 | for ac_func in arc4random getrandom |
| 6662 | do : |
| 6663 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 6664 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 6665 | if 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 | |
| 6670 | fi |
| 6671 | done |
| 6672 | |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6673 | |
Lei Zhang | 728bcdf | 2016-01-08 00:27:48 -0800 | [diff] [blame] | 6674 | |
| 6675 | ax_cxx_compile_cxx11_required=true |
| 6676 | ac_ext=cpp |
| 6677 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6678 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6679 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6680 | ac_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; } |
| 6684 | if ${ax_cv_cxx_compile_cxx11+:} false; then : |
| 6685 | $as_echo_n "(cached) " >&6 |
| 6686 | else |
| 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 | |
| 6704 | namespace 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 |
| 6976 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 6977 | ax_cv_cxx_compile_cxx11=yes |
| 6978 | else |
| 6979 | ax_cv_cxx_compile_cxx11=no |
| 6980 | fi |
| 6981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6982 | fi |
| 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; } |
| 6996 | if eval \${$cachevar+:} false; then : |
| 6997 | $as_echo_n "(cached) " >&6 |
| 6998 | else |
| 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 | |
| 7018 | namespace 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 |
| 7290 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7291 | eval $cachevar=yes |
| 7292 | else |
| 7293 | eval $cachevar=no |
| 7294 | fi |
| 7295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7296 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 7297 | fi |
| 7298 | eval 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 |
| 7309 | ac_cpp='$CPP $CPPFLAGS' |
| 7310 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7311 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7312 | ac_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 Frysinger | 6cc0375 | 2017-02-06 15:10:13 -0500 | [diff] [blame] | 7334 | WARN_CXXFLAGS= |
| 7335 | ac_ext=cpp |
| 7336 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7337 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7338 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7339 | ac_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; } |
| 7343 | if ${ax_cv_check_cxxflags___Werror_unknown_warning_option+:} false; then : |
| 7344 | $as_echo_n "(cached) " >&6 |
| 7345 | else |
| 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 | |
| 7352 | int |
| 7353 | main () |
| 7354 | { |
| 7355 | |
| 7356 | ; |
| 7357 | return 0; |
| 7358 | } |
| 7359 | _ACEOF |
| 7360 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7361 | ax_cv_check_cxxflags___Werror_unknown_warning_option=yes |
| 7362 | else |
| 7363 | ax_cv_check_cxxflags___Werror_unknown_warning_option=no |
| 7364 | fi |
| 7365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7366 | CXXFLAGS=$ax_check_save_flags |
| 7367 | fi |
| 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; } |
| 7370 | if test "x$ax_cv_check_cxxflags___Werror_unknown_warning_option" = xyes; then : |
| 7371 | |
| 7372 | ax_compiler_flags_test="-Werror=unknown-warning-option" |
| 7373 | |
| 7374 | else |
| 7375 | |
| 7376 | ax_compiler_flags_test="" |
| 7377 | |
| 7378 | fi |
| 7379 | |
| 7380 | |
| 7381 | |
| 7382 | |
| 7383 | |
Tobias Sargeant | b37547b | 2017-03-24 12:51:47 +0000 | [diff] [blame] | 7384 | for flag in -Wmissing-braces -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-compare -Wunused-local-typedefs -Wunused-variable -Wvla ; do |
Mike Frysinger | 6cc0375 | 2017-02-06 15:10:13 -0500 | [diff] [blame] | 7385 | 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; } |
| 7388 | if eval \${$as_CACHEVAR+:} false; then : |
| 7389 | $as_echo_n "(cached) " >&6 |
| 7390 | else |
| 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 | |
| 7397 | int |
| 7398 | main () |
| 7399 | { |
| 7400 | |
| 7401 | ; |
| 7402 | return 0; |
| 7403 | } |
| 7404 | _ACEOF |
| 7405 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7406 | eval "$as_CACHEVAR=yes" |
| 7407 | else |
| 7408 | eval "$as_CACHEVAR=no" |
| 7409 | fi |
| 7410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7411 | CXXFLAGS=$ax_check_save_flags |
| 7412 | fi |
| 7413 | eval ac_res=\$$as_CACHEVAR |
| 7414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 7415 | $as_echo "$ac_res" >&6; } |
| 7416 | if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
| 7417 | |
| 7418 | if ${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 | ;; |
| 7436 | esac |
| 7437 | |
| 7438 | else |
| 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 | |
| 7447 | fi |
| 7448 | |
| 7449 | else |
| 7450 | : |
| 7451 | fi |
| 7452 | |
| 7453 | done |
| 7454 | |
| 7455 | as_fn_append WARN_CXXFLAGS " -Werror" |
| 7456 | ac_ext=c |
| 7457 | ac_cpp='$CPP $CPPFLAGS' |
| 7458 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7459 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7460 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7461 | |
| 7462 | |
| 7463 | |
Lars Volker | ffe3e47 | 2017-05-10 22:50:32 +0200 | [diff] [blame] | 7464 | |
| 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; } |
| 7467 | if ${ac_cv_defined_O_CLOEXEC_fcntl_h+:} false; then : |
| 7468 | $as_echo_n "(cached) " >&6 |
| 7469 | else |
| 7470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7471 | /* end confdefs.h. */ |
| 7472 | #include <fcntl.h> |
| 7473 | int |
| 7474 | main () |
| 7475 | { |
| 7476 | |
| 7477 | #ifdef O_CLOEXEC |
| 7478 | int ok; |
| 7479 | #else |
| 7480 | choke me |
| 7481 | #endif |
| 7482 | |
| 7483 | ; |
| 7484 | return 0; |
| 7485 | } |
| 7486 | _ACEOF |
| 7487 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7488 | ac_cv_defined_O_CLOEXEC_fcntl_h=yes |
| 7489 | else |
| 7490 | ac_cv_defined_O_CLOEXEC_fcntl_h=no |
| 7491 | fi |
| 7492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7493 | fi |
| 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; } |
| 7496 | if test $ac_cv_defined_O_CLOEXEC_fcntl_h != "no"; then : |
| 7497 | |
| 7498 | else |
| 7499 | |
| 7500 | $as_echo "#define O_CLOEXEC 0" >>confdefs.h |
| 7501 | |
| 7502 | fi |
| 7503 | |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 7504 | # Only build Linux client libs when compiling for Linux |
| 7505 | case $host in |
digit@chromium.org | 62d486b | 2012-08-21 14:34:48 +0000 | [diff] [blame] | 7506 | *-*-linux* | *-android* ) |
| 7507 | LINUX_HOST=true |
| 7508 | ;; |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 7509 | esac |
| 7510 | if test x$LINUX_HOST = xtrue; then |
| 7511 | LINUX_HOST_TRUE= |
| 7512 | LINUX_HOST_FALSE='#' |
| 7513 | else |
| 7514 | LINUX_HOST_TRUE='#' |
| 7515 | LINUX_HOST_FALSE= |
| 7516 | fi |
| 7517 | |
| 7518 | |
digit@chromium.org | 62d486b | 2012-08-21 14:34:48 +0000 | [diff] [blame] | 7519 | # Only use Android support headers when compiling for Android |
| 7520 | case $host in |
| 7521 | *-android*) |
| 7522 | ANDROID_HOST=true |
| 7523 | ;; |
| 7524 | esac |
| 7525 | if test x$ANDROID_HOST = xtrue; then |
| 7526 | ANDROID_HOST_TRUE= |
| 7527 | ANDROID_HOST_FALSE='#' |
| 7528 | else |
| 7529 | ANDROID_HOST_TRUE='#' |
| 7530 | ANDROID_HOST_FALSE= |
| 7531 | fi |
| 7532 | |
| 7533 | |
Mike Frysinger | 3f736ce | 2016-01-27 16:45:21 -0500 | [diff] [blame] | 7534 | # Some tools (like mac ones) only support x86 currently. |
| 7535 | case $host_cpu in |
| 7536 | i?86|x86_64) |
| 7537 | X86_HOST=true |
| 7538 | ;; |
| 7539 | esac |
| 7540 | if test x$X86_HOST = xtrue; then |
| 7541 | X86_HOST_TRUE= |
| 7542 | X86_HOST_FALSE='#' |
| 7543 | else |
| 7544 | X86_HOST_TRUE='#' |
| 7545 | X86_HOST_FALSE= |
| 7546 | fi |
| 7547 | |
| 7548 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 7549 | # Check whether --enable-processor was given. |
| 7550 | if 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7559 | as_fn_error $? "bad value ${enableval} for --disable-processor" "$LINENO" 5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 7560 | ;; |
| 7561 | esac |
| 7562 | else |
| 7563 | disable_processor=false |
| 7564 | fi |
| 7565 | |
| 7566 | if test x$disable_processor = xtrue; then |
| 7567 | DISABLE_PROCESSOR_TRUE= |
| 7568 | DISABLE_PROCESSOR_FALSE='#' |
| 7569 | else |
| 7570 | DISABLE_PROCESSOR_TRUE='#' |
| 7571 | DISABLE_PROCESSOR_FALSE= |
| 7572 | fi |
| 7573 | |
| 7574 | |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 7575 | # Check whether --enable-tools was given. |
| 7576 | if 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7585 | as_fn_error $? "bad value ${enableval} for --disable-tools" "$LINENO" 5 |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 7586 | ;; |
| 7587 | esac |
| 7588 | else |
| 7589 | disable_tools=false |
| 7590 | fi |
| 7591 | |
| 7592 | if test x$disable_tools = xtrue; then |
| 7593 | DISABLE_TOOLS_TRUE= |
| 7594 | DISABLE_TOOLS_FALSE='#' |
| 7595 | else |
| 7596 | DISABLE_TOOLS_TRUE='#' |
| 7597 | DISABLE_TOOLS_FALSE= |
| 7598 | fi |
| 7599 | |
| 7600 | |
| 7601 | if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue -a x$disable_tools = xtrue; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7602 | as_fn_error $? "--disable-processor and --disable-tools were specified, and not building for Linux. Nothing to build!" "$LINENO" 5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 7603 | fi |
| 7604 | |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 7605 | # Check whether --enable-system-test-libs was given. |
| 7606 | if 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 |
| 7618 | else |
| 7619 | system_test_libs=false |
| 7620 | fi |
| 7621 | |
| 7622 | if test x$system_test_libs = xtrue; then |
| 7623 | SYSTEM_TEST_LIBS_TRUE= |
| 7624 | SYSTEM_TEST_LIBS_FALSE='#' |
| 7625 | else |
| 7626 | SYSTEM_TEST_LIBS_TRUE='#' |
| 7627 | SYSTEM_TEST_LIBS_FALSE= |
| 7628 | fi |
| 7629 | |
| 7630 | |
| 7631 | |
| 7632 | |
| 7633 | |
| 7634 | |
| 7635 | |
| 7636 | |
| 7637 | if 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. |
| 7640 | set 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; } |
| 7643 | if ${ac_cv_prog_GMOCK_CONFIG+:} false; then : |
| 7644 | $as_echo_n "(cached) " >&6 |
| 7645 | else |
| 7646 | if test -n "$GMOCK_CONFIG"; then |
| 7647 | ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test. |
| 7648 | else |
| 7649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7650 | for as_dir in $PATH |
| 7651 | do |
| 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 |
| 7660 | done |
| 7661 | done |
| 7662 | IFS=$as_save_IFS |
| 7663 | |
| 7664 | fi |
| 7665 | fi |
| 7666 | GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG |
| 7667 | if test -n "$GMOCK_CONFIG"; then |
| 7668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMOCK_CONFIG" >&5 |
| 7669 | $as_echo "$GMOCK_CONFIG" >&6; } |
| 7670 | else |
| 7671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7672 | $as_echo "no" >&6; } |
| 7673 | fi |
| 7674 | |
| 7675 | |
| 7676 | fi |
| 7677 | if 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. |
| 7680 | set 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; } |
| 7683 | if ${ac_cv_prog_ac_ct_GMOCK_CONFIG+:} false; then : |
| 7684 | $as_echo_n "(cached) " >&6 |
| 7685 | else |
| 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. |
| 7688 | else |
| 7689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7690 | for as_dir in $PATH |
| 7691 | do |
| 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 |
| 7700 | done |
| 7701 | done |
| 7702 | IFS=$as_save_IFS |
| 7703 | |
| 7704 | fi |
| 7705 | fi |
| 7706 | ac_ct_GMOCK_CONFIG=$ac_cv_prog_ac_ct_GMOCK_CONFIG |
| 7707 | if 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; } |
| 7710 | else |
| 7711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7712 | $as_echo "no" >&6; } |
| 7713 | fi |
| 7714 | |
| 7715 | if test "x$ac_ct_GMOCK_CONFIG" = x; then |
| 7716 | GMOCK_CONFIG="" |
| 7717 | else |
| 7718 | case $cross_compiling:$ac_tool_warned in |
| 7719 | yes:) |
| 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;} |
| 7722 | ac_tool_warned=yes ;; |
| 7723 | esac |
| 7724 | GMOCK_CONFIG=$ac_ct_GMOCK_CONFIG |
| 7725 | fi |
| 7726 | else |
| 7727 | GMOCK_CONFIG="$ac_cv_prog_GMOCK_CONFIG" |
| 7728 | fi |
| 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. |
| 7732 | set 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; } |
| 7735 | if ${ac_cv_prog_GTEST_CONFIG+:} false; then : |
| 7736 | $as_echo_n "(cached) " >&6 |
| 7737 | else |
| 7738 | if test -n "$GTEST_CONFIG"; then |
| 7739 | ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test. |
| 7740 | else |
| 7741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7742 | for as_dir in $PATH |
| 7743 | do |
| 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 |
| 7752 | done |
| 7753 | done |
| 7754 | IFS=$as_save_IFS |
| 7755 | |
| 7756 | fi |
| 7757 | fi |
| 7758 | GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG |
| 7759 | if test -n "$GTEST_CONFIG"; then |
| 7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5 |
| 7761 | $as_echo "$GTEST_CONFIG" >&6; } |
| 7762 | else |
| 7763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7764 | $as_echo "no" >&6; } |
| 7765 | fi |
| 7766 | |
| 7767 | |
| 7768 | fi |
| 7769 | if 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. |
| 7772 | set 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; } |
| 7775 | if ${ac_cv_prog_ac_ct_GTEST_CONFIG+:} false; then : |
| 7776 | $as_echo_n "(cached) " >&6 |
| 7777 | else |
| 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. |
| 7780 | else |
| 7781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7782 | for as_dir in $PATH |
| 7783 | do |
| 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 |
| 7792 | done |
| 7793 | done |
| 7794 | IFS=$as_save_IFS |
| 7795 | |
| 7796 | fi |
| 7797 | fi |
| 7798 | ac_ct_GTEST_CONFIG=$ac_cv_prog_ac_ct_GTEST_CONFIG |
| 7799 | if 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; } |
| 7802 | else |
| 7803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7804 | $as_echo "no" >&6; } |
| 7805 | fi |
| 7806 | |
| 7807 | if test "x$ac_ct_GTEST_CONFIG" = x; then |
| 7808 | GTEST_CONFIG="" |
| 7809 | else |
| 7810 | case $cross_compiling:$ac_tool_warned in |
| 7811 | yes:) |
| 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;} |
| 7814 | ac_tool_warned=yes ;; |
| 7815 | esac |
| 7816 | GTEST_CONFIG=$ac_ct_GTEST_CONFIG |
| 7817 | fi |
| 7818 | else |
| 7819 | GTEST_CONFIG="$ac_cv_prog_GTEST_CONFIG" |
| 7820 | fi |
| 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` |
| 7826 | fi |
| 7827 | |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 7828 | # Check whether --enable-selftest was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7829 | if test "${enable_selftest+set}" = set; then : |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 7830 | enableval=$enable_selftest; case "${enableval}" in |
| 7831 | yes) |
| 7832 | selftest=true |
| 7833 | ;; |
| 7834 | no) |
| 7835 | selftest=false |
| 7836 | ;; |
| 7837 | *) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7838 | as_fn_error $? "bad value ${enableval} for --enable-selftest" "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 7839 | ;; |
| 7840 | esac |
| 7841 | else |
| 7842 | selftest=false |
| 7843 | fi |
| 7844 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 7845 | if test x$selftest = xtrue; then |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 7846 | SELFTEST_TRUE= |
| 7847 | SELFTEST_FALSE='#' |
| 7848 | else |
| 7849 | SELFTEST_TRUE='#' |
| 7850 | SELFTEST_FALSE= |
| 7851 | fi |
| 7852 | |
| 7853 | |
Ted Mielczarek | 2ecb2ba | 2016-10-24 15:16:28 -0400 | [diff] [blame] | 7854 | |
| 7855 | # Check whether --with-rust-demangle was given. |
| 7856 | if 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 |
| 7872 | else |
| 7873 | rust_demangle=false |
| 7874 | fi |
| 7875 | |
| 7876 | |
| 7877 | |
| 7878 | |
Lars Volker | 49907e1 | 2018-01-31 13:29:11 -0800 | [diff] [blame^] | 7879 | |
| 7880 | # Check whether --with-tests-as-root was given. |
| 7881 | if 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 |
| 7893 | else |
| 7894 | tests_as_root=false |
| 7895 | fi |
| 7896 | |
| 7897 | if test x$tests_as_root = xtrue; then |
| 7898 | TESTS_AS_ROOT_TRUE= |
| 7899 | TESTS_AS_ROOT_FALSE='#' |
| 7900 | else |
| 7901 | TESTS_AS_ROOT_TRUE='#' |
| 7902 | TESTS_AS_ROOT_FALSE= |
| 7903 | fi |
| 7904 | |
| 7905 | |
vapier@chromium.org | 1b309ed | 2014-08-27 02:10:55 +0000 | [diff] [blame] | 7906 | ac_config_files="$ac_config_files breakpad.pc breakpad-client.pc Makefile" |
| 7907 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7908 | |
| 7909 | cat >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. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7927 | # So, we kill variables containing newlines. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7928 | # 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. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7930 | ( |
| 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 #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7936 | *_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;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7938 | esac |
| 7939 | case $ac_var in #( |
| 7940 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7941 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 7942 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7943 | esac ;; |
| 7944 | esac |
| 7945 | done |
| 7946 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7947 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7948 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 7949 | *${as_nl}ac_space=\ *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7950 | # `set' does not quote correctly, so add quotes: double-quote |
| 7951 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7952 | sed -n \ |
| 7953 | "s/'/'\\\\''/g; |
| 7954 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7955 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7956 | *) |
| 7957 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7958 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7959 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7960 | esac | |
| 7961 | sort |
| 7962 | ) | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7963 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7964 | /^ac_cv_env_/b end |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7965 | t clear |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7966 | :clear |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7967 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 7968 | t end |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7969 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 7970 | :end' >>confcache |
| 7971 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 7972 | if test -w "$cache_file"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7973 | if test "x$cache_file" != "x/dev/null"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7974 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 7975 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7976 | 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 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7988 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7989 | { $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;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7991 | fi |
| 7992 | fi |
| 7993 | rm -f confcache |
| 7994 | |
| 7995 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 7996 | # Let make expand exec_prefix. |
| 7997 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 7998 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7999 | DEFS=-DHAVE_CONFIG_H |
| 8000 | |
| 8001 | ac_libobjs= |
| 8002 | ac_ltlibobjs= |
| 8003 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 8004 | # 1. Remove the extension, and $U if already installed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8005 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8006 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8007 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 8008 | # will be set to the directory where LIBOBJS objects are built. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8009 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 8010 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8011 | done |
| 8012 | LIBOBJS=$ac_libobjs |
| 8013 | |
| 8014 | LTLIBOBJS=$ac_ltlibobjs |
| 8015 | |
| 8016 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8017 | { $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; } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8025 | if test -n "$EXEEXT"; then |
| 8026 | am__EXEEXT_TRUE= |
| 8027 | am__EXEEXT_FALSE='#' |
| 8028 | else |
| 8029 | am__EXEEXT_TRUE='#' |
| 8030 | am__EXEEXT_FALSE= |
| 8031 | fi |
| 8032 | |
ted.mielczarek@gmail.com | 07bb231 | 2013-12-10 12:28:11 +0000 | [diff] [blame] | 8033 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 8034 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| 8035 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 8036 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8037 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8038 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8039 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8040 | fi |
| 8041 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8042 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8043 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8044 | fi |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 8045 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8046 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 8047 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 8048 | fi |
| 8049 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8050 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 8051 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 8052 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8053 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8054 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8055 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 8056 | fi |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 8057 | if test -z "${LINUX_HOST_TRUE}" && test -z "${LINUX_HOST_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8058 | as_fn_error $? "conditional \"LINUX_HOST\" was never defined. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 8059 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 8060 | fi |
digit@chromium.org | 62d486b | 2012-08-21 14:34:48 +0000 | [diff] [blame] | 8061 | if test -z "${ANDROID_HOST_TRUE}" && test -z "${ANDROID_HOST_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8062 | as_fn_error $? "conditional \"ANDROID_HOST\" was never defined. |
digit@chromium.org | 62d486b | 2012-08-21 14:34:48 +0000 | [diff] [blame] | 8063 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 8064 | fi |
Mike Frysinger | 3f736ce | 2016-01-27 16:45:21 -0500 | [diff] [blame] | 8065 | if test -z "${X86_HOST_TRUE}" && test -z "${X86_HOST_FALSE}"; then |
| 8066 | as_fn_error $? "conditional \"X86_HOST\" was never defined. |
| 8067 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 8068 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 8069 | if test -z "${DISABLE_PROCESSOR_TRUE}" && test -z "${DISABLE_PROCESSOR_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8070 | as_fn_error $? "conditional \"DISABLE_PROCESSOR\" was never defined. |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 8071 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 8072 | fi |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 8073 | if test -z "${DISABLE_TOOLS_TRUE}" && test -z "${DISABLE_TOOLS_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8074 | as_fn_error $? "conditional \"DISABLE_TOOLS\" was never defined. |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 8075 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 8076 | fi |
Mike Frysinger | f820ead | 2016-01-25 19:27:56 -0500 | [diff] [blame] | 8077 | if test -z "${SYSTEM_TEST_LIBS_TRUE}" && test -z "${SYSTEM_TEST_LIBS_FALSE}"; then |
| 8078 | as_fn_error $? "conditional \"SYSTEM_TEST_LIBS\" was never defined. |
| 8079 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 8080 | fi |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 8081 | if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8082 | as_fn_error $? "conditional \"SELFTEST\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8083 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 8084 | fi |
Lars Volker | 49907e1 | 2018-01-31 13:29:11 -0800 | [diff] [blame^] | 8085 | if test -z "${TESTS_AS_ROOT_TRUE}" && test -z "${TESTS_AS_ROOT_FALSE}"; then |
| 8086 | as_fn_error $? "conditional \"TESTS_AS_ROOT\" was never defined. |
| 8087 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 8088 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8089 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8090 | : "${CONFIG_STATUS=./config.status}" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8091 | ac_write_fail=0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8092 | ac_clean_files_save=$ac_clean_files |
| 8093 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8094 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 8095 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 8096 | as_write_fail=0 |
| 8097 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8098 | #! $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 | |
| 8104 | debug=false |
| 8105 | ac_cs_recheck=false |
| 8106 | ac_cs_silent=false |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8107 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8108 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 8109 | export SHELL |
| 8110 | _ASEOF |
| 8111 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 8112 | ## -------------------- ## |
| 8113 | ## M4sh Initialization. ## |
| 8114 | ## -------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8115 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 8116 | # Be more Bourne compatible |
| 8117 | DUALCASE=1; export DUALCASE # for MKS sh |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8118 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8119 | emulate sh |
| 8120 | NULLCMD=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8121 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8122 | # is contrary to our usage. Disable this feature. |
| 8123 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8124 | setopt NO_GLOB_SUBST |
| 8125 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8126 | case `(set -o) 2>/dev/null` in #( |
| 8127 | *posix*) : |
| 8128 | set -o posix ;; #( |
| 8129 | *) : |
| 8130 | ;; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 8131 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8132 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 8133 | |
| 8134 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8135 | as_nl=' |
| 8136 | ' |
| 8137 | export as_nl |
| 8138 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 8139 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 8140 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 8141 | as_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. |
| 8144 | if 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 --' |
| 8148 | elif (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' |
| 8151 | else |
| 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' |
| 8171 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8172 | |
| 8173 | # The user is always right. |
| 8174 | if test "${PATH_SEPARATOR+set}" != set; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8175 | 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 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8180 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8181 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8182 | |
| 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.) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8188 | IFS=" "" $as_nl" |
| 8189 | |
| 8190 | # Find who we are. Look in the path if we contain no directory separator. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8191 | as_myself= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8192 | case $0 in #(( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8193 | *[\\/]* ) as_myself=$0 ;; |
| 8194 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8195 | for as_dir in $PATH |
| 8196 | do |
| 8197 | IFS=$as_save_IFS |
| 8198 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8199 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 8200 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8201 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8202 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8203 | ;; |
| 8204 | esac |
| 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. |
| 8207 | if test "x$as_myself" = x; then |
| 8208 | as_myself=$0 |
| 8209 | fi |
| 8210 | if test ! -f "$as_myself"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8211 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 8212 | exit 1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8213 | fi |
| 8214 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8215 | # 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. |
| 8219 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 8220 | do eval test x\${$as_var+set} = xset \ |
| 8221 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8222 | done |
| 8223 | PS1='$ ' |
| 8224 | PS2='> ' |
| 8225 | PS4='+ ' |
| 8226 | |
| 8227 | # NLS nuisances. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8228 | LC_ALL=C |
| 8229 | export LC_ALL |
| 8230 | LANGUAGE=C |
| 8231 | export LANGUAGE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8232 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8233 | # CDPATH. |
| 8234 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 8235 | |
| 8236 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8237 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 8238 | # ---------------------------------------- |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8239 | # 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8241 | # script with STATUS, using 1 if that was 0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8242 | as_fn_error () |
| 8243 | { |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8244 | 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 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8248 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8249 | $as_echo "$as_me: error: $2" >&2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8250 | as_fn_exit $as_status |
| 8251 | } # as_fn_error |
| 8252 | |
| 8253 | |
| 8254 | # as_fn_set_status STATUS |
| 8255 | # ----------------------- |
| 8256 | # Set $? to STATUS, without forking. |
| 8257 | as_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. |
| 8265 | as_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. |
| 8275 | as_fn_unset () |
| 8276 | { |
| 8277 | { eval $1=; unset $1;} |
| 8278 | } |
| 8279 | as_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. |
| 8286 | if (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 | }' |
| 8291 | else |
| 8292 | as_fn_append () |
| 8293 | { |
| 8294 | eval $1=\$$1\$2 |
| 8295 | } |
| 8296 | fi # 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. |
| 8303 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 8304 | eval 'as_fn_arith () |
| 8305 | { |
| 8306 | as_val=$(( $* )) |
| 8307 | }' |
| 8308 | else |
| 8309 | as_fn_arith () |
| 8310 | { |
| 8311 | as_val=`expr "$@" || test $? -eq 1` |
| 8312 | } |
| 8313 | fi # as_fn_arith |
| 8314 | |
| 8315 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8316 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 8317 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 8318 | as_expr=expr |
| 8319 | else |
| 8320 | as_expr=false |
| 8321 | fi |
| 8322 | |
| 8323 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 8324 | as_basename=basename |
| 8325 | else |
| 8326 | as_basename=false |
| 8327 | fi |
| 8328 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8329 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 8330 | as_dirname=dirname |
| 8331 | else |
| 8332 | as_dirname=false |
| 8333 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8334 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8335 | as_me=`$as_basename -- "$0" || |
| 8336 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 8337 | X"$0" : 'X\(//\)$' \| \ |
| 8338 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8339 | $as_echo X/"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8340 | 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 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8354 | # Avoid depending upon Character Ranges. |
| 8355 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 8356 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 8357 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 8358 | as_cr_digits='0123456789' |
| 8359 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8360 | |
| 8361 | ECHO_C= ECHO_N= ECHO_T= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8362 | case `echo -n x` in #((((( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8363 | -n*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8364 | case `echo 'xy\c'` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8365 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8366 | xy) ECHO_C='\c';; |
| 8367 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 8368 | ECHO_T=' ';; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8369 | esac;; |
| 8370 | *) |
| 8371 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8372 | esac |
| 8373 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8374 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8375 | if test -d conf$$.dir; then |
| 8376 | rm -f conf$$.dir/conf$$.file |
| 8377 | else |
| 8378 | rm -f conf$$.dir |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8379 | mkdir conf$$.dir 2>/dev/null |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8380 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8381 | if (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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8387 | # In both cases, we have to default to `cp -pR'. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8388 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8389 | as_ln_s='cp -pR' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8390 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 8391 | as_ln_s=ln |
| 8392 | else |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8393 | as_ln_s='cp -pR' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8394 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8395 | else |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8396 | as_ln_s='cp -pR' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8397 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8398 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 8399 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8400 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8401 | |
| 8402 | # as_fn_mkdir_p |
| 8403 | # ------------- |
| 8404 | # Create "$as_dir" as a directory, including parents if necessary. |
| 8405 | as_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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8445 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8446 | |
| 8447 | |
| 8448 | } # as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8449 | if mkdir -p . 2>/dev/null; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8450 | as_mkdir_p='mkdir -p "$as_dir"' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8451 | else |
| 8452 | test -d ./-p && rmdir ./-p |
| 8453 | as_mkdir_p=false |
| 8454 | fi |
| 8455 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8456 | |
| 8457 | # as_fn_executable_p FILE |
| 8458 | # ----------------------- |
| 8459 | # Test if FILE is an executable regular file. |
| 8460 | as_fn_executable_p () |
| 8461 | { |
| 8462 | test -f "$1" && test -x "$1" |
| 8463 | } # as_fn_executable_p |
| 8464 | as_test_x='test -x' |
| 8465 | as_executable_p=as_fn_executable_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8466 | |
| 8467 | # Sed expression to map a string onto a valid CPP name. |
| 8468 | as_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. |
| 8471 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 8472 | |
| 8473 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8474 | exec 6>&1 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8475 | ## ----------------------------------- ## |
| 8476 | ## Main body of $CONFIG_STATUS script. ## |
| 8477 | ## ----------------------------------- ## |
| 8478 | _ASEOF |
| 8479 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8480 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8481 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8482 | # Save the log message, to keep $0 and so on meaningful, and to |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8483 | # report actual input values of CONFIG_FILES etc. instead of their |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8484 | # values after options handling. |
| 8485 | ac_log=" |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 8486 | This file was extended by breakpad $as_me 0.1, which was |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8487 | generated by GNU Autoconf 2.69. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8488 | |
| 8489 | CONFIG_FILES = $CONFIG_FILES |
| 8490 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 8491 | CONFIG_LINKS = $CONFIG_LINKS |
| 8492 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 8493 | $ $0 $@ |
| 8494 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8495 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 8496 | " |
| 8497 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8498 | _ACEOF |
| 8499 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8500 | case $ac_config_files in *" |
| 8501 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 8502 | esac |
| 8503 | |
| 8504 | case $ac_config_headers in *" |
| 8505 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 8506 | esac |
| 8507 | |
| 8508 | |
| 8509 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8510 | # Files that config.status was made for. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8511 | config_files="$ac_config_files" |
| 8512 | config_headers="$ac_config_headers" |
| 8513 | config_commands="$ac_config_commands" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8514 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8515 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8516 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8517 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8518 | ac_cs_usage="\ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8519 | \`$as_me' instantiates files and other configuration actions |
| 8520 | from templates according to the current configuration. Unless the files |
| 8521 | and actions are specified as TAGs, all are instantiated by default. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8522 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8523 | Usage: $0 [OPTION]... [TAG]... |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8524 | |
| 8525 | -h, --help print this help, then exit |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 8526 | -V, --version print version number and configuration settings, then exit |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 8527 | --config print configuration, then exit |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8528 | -q, --quiet, --silent |
| 8529 | do not print progress messages |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8530 | -d, --debug don't remove temporary files |
| 8531 | --recheck update $as_me by reconfiguring in the same conditions |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8532 | --file=FILE[:TEMPLATE] |
| 8533 | instantiate the configuration file FILE |
| 8534 | --header=FILE[:TEMPLATE] |
| 8535 | instantiate the configuration header FILE |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8536 | |
| 8537 | Configuration files: |
| 8538 | $config_files |
| 8539 | |
| 8540 | Configuration headers: |
| 8541 | $config_headers |
| 8542 | |
| 8543 | Configuration commands: |
| 8544 | $config_commands |
| 8545 | |
thestig@chromium.org | 43e6db7 | 2010-11-08 19:49:41 +0000 | [diff] [blame] | 8546 | Report bugs to <google-breakpad-dev@googlegroups.com>." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8547 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8548 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8549 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 8550 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8551 | ac_cs_version="\\ |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 8552 | breakpad config.status 0.1 |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8553 | configured by $0, generated by GNU Autoconf 2.69, |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 8554 | with options \\"\$ac_cs_config\\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8555 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8556 | Copyright (C) 2012 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8557 | This config.status script is free software; the Free Software Foundation |
| 8558 | gives unlimited permission to copy, distribute and modify it." |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8559 | |
| 8560 | ac_pwd='$ac_pwd' |
| 8561 | srcdir='$srcdir' |
| 8562 | INSTALL='$INSTALL' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 8563 | MKDIR_P='$MKDIR_P' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8564 | AWK='$AWK' |
| 8565 | test -n "\$AWK" || AWK=awk |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8566 | _ACEOF |
| 8567 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8568 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8569 | # The default lists apply if the user does not specify any file. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8570 | ac_need_defaults=: |
| 8571 | while test $# != 0 |
| 8572 | do |
| 8573 | case $1 in |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8574 | --*=?*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8575 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 8576 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8577 | ac_shift=: |
| 8578 | ;; |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8579 | --*=) |
| 8580 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 8581 | ac_optarg= |
| 8582 | ac_shift=: |
| 8583 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8584 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8585 | ac_option=$1 |
| 8586 | ac_optarg=$2 |
| 8587 | ac_shift=shift |
| 8588 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8589 | esac |
| 8590 | |
| 8591 | case $ac_option in |
| 8592 | # Handling of the options. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8593 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 8594 | ac_cs_recheck=: ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8595 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8596 | $as_echo "$ac_cs_version"; exit ;; |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 8597 | --config | --confi | --conf | --con | --co | --c ) |
| 8598 | $as_echo "$ac_cs_config"; exit ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8599 | --debug | --debu | --deb | --de | --d | -d ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8600 | debug=: ;; |
| 8601 | --file | --fil | --fi | --f ) |
| 8602 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8603 | case $ac_optarg in |
| 8604 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8605 | '') as_fn_error $? "missing file argument" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8606 | esac |
| 8607 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8608 | ac_need_defaults=false;; |
| 8609 | --header | --heade | --head | --hea ) |
| 8610 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8611 | case $ac_optarg in |
| 8612 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 8613 | esac |
| 8614 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8615 | ac_need_defaults=false;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8616 | --he | --h) |
| 8617 | # Conflict between --help and --header |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8618 | as_fn_error $? "ambiguous option: \`$1' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8619 | Try \`$0 --help' for more information.";; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8620 | --help | --hel | -h ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8621 | $as_echo "$ac_cs_usage"; exit ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8622 | -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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8627 | -*) as_fn_error $? "unrecognized option: \`$1' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8628 | Try \`$0 --help' for more information." ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8629 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8630 | *) as_fn_append ac_config_targets " $1" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8631 | ac_need_defaults=false ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8632 | |
| 8633 | esac |
| 8634 | shift |
| 8635 | done |
| 8636 | |
| 8637 | ac_configure_extra_args= |
| 8638 | |
| 8639 | if $ac_cs_silent; then |
| 8640 | exec 6>/dev/null |
| 8641 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 8642 | fi |
| 8643 | |
| 8644 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8645 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8646 | if \$ac_cs_recheck; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8647 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8648 | shift |
| 8649 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 8650 | CONFIG_SHELL='$SHELL' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8651 | export CONFIG_SHELL |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8652 | exec "\$@" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8653 | fi |
| 8654 | |
| 8655 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8656 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8657 | exec 5>>config.log |
| 8658 | { |
| 8659 | echo |
| 8660 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 8661 | ## Running $as_me. ## |
| 8662 | _ASBOX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8663 | $as_echo "$ac_log" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8664 | } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8665 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8666 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8667 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8668 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8669 | # INIT-COMMANDS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8670 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8671 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 8672 | |
| 8673 | _ACEOF |
| 8674 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8675 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8676 | |
| 8677 | # Handling of arguments. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8678 | for ac_config_target in $ac_config_targets |
| 8679 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8680 | 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.org | 1b309ed | 2014-08-27 02:10:55 +0000 | [diff] [blame] | 8683 | "breakpad.pc") CONFIG_FILES="$CONFIG_FILES breakpad.pc" ;; |
| 8684 | "breakpad-client.pc") CONFIG_FILES="$CONFIG_FILES breakpad-client.pc" ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8685 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 8686 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8687 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8688 | esac |
| 8689 | done |
| 8690 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8691 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8692 | # 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. |
| 8696 | if $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 |
| 8700 | fi |
| 8701 | |
| 8702 | # Have a temporary directory for convenience. Make it in the build tree |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8703 | # simply because there is no reason against having it here, and in addition, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8704 | # creating and moving files from /tmp can sometimes cause problems. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8705 | # 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'. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8708 | $debug || |
| 8709 | { |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8710 | tmp= ac_tmp= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8711 | trap 'exit_status=$? |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8712 | : "${ac_tmp:=$tmp}" |
| 8713 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8714 | ' 0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8715 | trap 'as_fn_exit 1' 1 2 13 15 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8716 | } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8717 | # Create a (secure) tmp directory for tmp files. |
| 8718 | |
| 8719 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8720 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8721 | test -d "$tmp" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8722 | } || |
| 8723 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8724 | tmp=./conf$$-$RANDOM |
| 8725 | (umask 077 && mkdir "$tmp") |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8726 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 8727 | ac_tmp=$tmp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8728 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8729 | # 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'. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8732 | if test -n "$CONFIG_FILES"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8733 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8734 | |
| 8735 | ac_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. |
| 8739 | if test "x$ac_cr" = x; then |
| 8740 | eval ac_cr=\$\'\\r\' |
| 8741 | fi |
| 8742 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 8743 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8744 | ac_cs_awk_cr='\\r' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8745 | else |
| 8746 | ac_cs_awk_cr=$ac_cr |
| 8747 | fi |
| 8748 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8749 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8750 | _ACEOF |
| 8751 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8752 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8753 | { |
| 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8758 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 8759 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8760 | ac_delim='%!_!# ' |
| 8761 | for ac_last_try in false false false false false :; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8762 | . ./conf$$subs.sh || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8763 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8764 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8765 | 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 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8767 | break |
| 8768 | elif $ac_last_try; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8769 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8770 | else |
| 8771 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8772 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8773 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8774 | rm -f conf$$subs.sh |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8775 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8776 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8777 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8778 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8779 | sed -n ' |
| 8780 | h |
| 8781 | s/^/S["/; s/!.*/"]=/ |
| 8782 | p |
| 8783 | g |
| 8784 | s/^[^!]*!// |
| 8785 | :repl |
| 8786 | t repl |
| 8787 | s/'"$ac_delim"'$// |
| 8788 | t delim |
| 8789 | :nl |
| 8790 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 8791 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8792 | t more1 |
| 8793 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 8794 | p |
| 8795 | n |
| 8796 | b repl |
| 8797 | :more1 |
| 8798 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 8799 | p |
| 8800 | g |
| 8801 | s/.\{148\}// |
| 8802 | t nl |
| 8803 | :delim |
| 8804 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 8805 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8806 | t more2 |
| 8807 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 8808 | p |
| 8809 | b |
| 8810 | :more2 |
| 8811 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 8812 | p |
| 8813 | g |
| 8814 | s/.\{148\}// |
| 8815 | t delim |
| 8816 | ' <conf$$subs.awk | sed ' |
| 8817 | /^[^""]/{ |
| 8818 | N |
| 8819 | s/\n// |
| 8820 | } |
| 8821 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 8822 | rm -f conf$$subs.awk |
| 8823 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8824 | _ACAWK |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8825 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8826 | 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 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8851 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8852 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8853 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 8854 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 8855 | else |
| 8856 | cat |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8857 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 8858 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8859 | _ACEOF |
| 8860 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8861 | # 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 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8863 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 8864 | # (actually we leave an empty line to preserve line numbers). |
| 8865 | if test "x$srcdir" = x.; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8866 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 8867 | h |
| 8868 | s/// |
| 8869 | s/^/:/ |
| 8870 | s/[ ]*$/:/ |
| 8871 | s/:\$(srcdir):/:/g |
| 8872 | s/:\${srcdir}:/:/g |
| 8873 | s/:@srcdir@:/:/g |
| 8874 | s/^:*// |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8875 | s/:*$// |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8876 | x |
| 8877 | s/\(=[ ]*\).*/\1/ |
| 8878 | G |
| 8879 | s/\n// |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8880 | s/^[^=]*=[ ]*$// |
| 8881 | }' |
| 8882 | fi |
| 8883 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8884 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8885 | fi # test -n "$CONFIG_FILES" |
| 8886 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8887 | # 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'. |
| 8890 | if test -n "$CONFIG_HEADERS"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8891 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8892 | BEGIN { |
| 8893 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8894 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8895 | # 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. |
| 8901 | ac_delim='%!_!# ' |
| 8902 | for ac_last_try in false false :; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8903 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 8904 | if test -z "$ac_tt"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8905 | break |
| 8906 | elif $ac_last_try; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8907 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8908 | else |
| 8909 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 8910 | fi |
| 8911 | done |
| 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 | |
| 8917 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 8918 | sed -n ' |
| 8919 | s/.\{148\}/&'"$ac_delim"'/g |
| 8920 | t rset |
| 8921 | :rset |
| 8922 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 8923 | t def |
| 8924 | d |
| 8925 | :def |
| 8926 | s/\\$// |
| 8927 | t bsnl |
| 8928 | s/["\\]/\\&/g |
| 8929 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 8930 | D["\1"]=" \3"/p |
| 8931 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 8932 | d |
| 8933 | :bsnl |
| 8934 | s/["\\]/\\&/g |
| 8935 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 8936 | D["\1"]=" \3\\\\\\n"\\/p |
| 8937 | t cont |
| 8938 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 8939 | t cont |
| 8940 | d |
| 8941 | :cont |
| 8942 | n |
| 8943 | s/.\{148\}/&'"$ac_delim"'/g |
| 8944 | t clear |
| 8945 | :clear |
| 8946 | s/\\$// |
| 8947 | t bsnlc |
| 8948 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 8949 | d |
| 8950 | :bsnlc |
| 8951 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 8952 | b cont |
| 8953 | ' <confdefs.h | sed ' |
| 8954 | s/'"$ac_delim"'/"\\\ |
| 8955 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 8956 | |
| 8957 | cat >>$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 |
| 8991 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8992 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8993 | fi # test -n "$CONFIG_HEADERS" |
| 8994 | |
| 8995 | |
| 8996 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 8997 | shift |
| 8998 | for ac_tag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8999 | do |
| 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9005 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9006 | :[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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9024 | -) ac_f="$ac_tmp/stdin";; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9025 | *) # 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9033 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9034 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9035 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 9036 | as_fn_append ac_file_inputs " '$ac_f'" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9037 | 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. */ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9042 | configure_input='Generated from '` |
| 9043 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 9044 | `' by configure.' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9045 | if test x"$ac_file" != x-; then |
| 9046 | configure_input="$ac_file. $configure_input" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9047 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 9048 | $as_echo "$as_me: creating $ac_file" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9049 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9050 | # 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 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9057 | |
| 9058 | case $ac_tag in |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9059 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 9060 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9061 | esac |
| 9062 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9063 | esac |
| 9064 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9065 | ac_dir=`$as_dirname -- "$ac_file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9066 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9067 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 9068 | X"$ac_file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9069 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9070 | $as_echo X"$ac_file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9071 | 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'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9088 | as_dir="$ac_dir"; as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9089 | ac_builddir=. |
| 9090 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9091 | case "$ac_dir" in |
| 9092 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 9093 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9094 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9095 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9096 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9097 | 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 ;; |
| 9101 | esac |
| 9102 | ac_abs_top_builddir=$ac_pwd |
| 9103 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 9104 | # for backward compatibility: |
| 9105 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9106 | |
| 9107 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9108 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9109 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9110 | ac_top_srcdir=$ac_top_builddir_sub |
| 9111 | ac_abs_top_srcdir=$ac_pwd ;; |
| 9112 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9113 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9114 | 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 ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9120 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9121 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9122 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9123 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9124 | case $ac_mode in |
| 9125 | :F) |
| 9126 | # |
| 9127 | # CONFIG_FILE |
| 9128 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9129 | |
| 9130 | case $INSTALL in |
| 9131 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9132 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9133 | esac |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 9134 | ac_MKDIR_P=$MKDIR_P |
| 9135 | case $MKDIR_P in |
| 9136 | [\\/$]* | ?:[\\/]* ) ;; |
| 9137 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 9138 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9139 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9140 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9141 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9142 | # If the template does not know about datarootdir, expand it. |
| 9143 | # FIXME: This hack should be removed a few years after 2.60. |
| 9144 | ac_datarootdir_hack=; ac_datarootdir_seen= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9145 | ac_sed_dataroot=' |
| 9146 | /datarootdir/ { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9147 | p |
| 9148 | q |
| 9149 | } |
| 9150 | /@datadir@/p |
| 9151 | /@docdir@/p |
| 9152 | /@infodir@/p |
| 9153 | /@localedir@/p |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9154 | /@mandir@/p' |
| 9155 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9156 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 9157 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9158 | { $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;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9160 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9161 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9162 | 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 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9168 | s&\\\${datarootdir}&$datarootdir&g' ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9169 | esac |
| 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? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9175 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 9176 | ac_sed_extra="$ac_vpsub |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9177 | $extrasub |
| 9178 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9179 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9180 | :t |
| 9181 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9182 | s|@configure_input@|$ac_sed_conf_input|;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9183 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9184 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9185 | s&@srcdir@&$ac_srcdir&;t t |
| 9186 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 9187 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 9188 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 9189 | s&@builddir@&$ac_builddir&;t t |
| 9190 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 9191 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 9192 | s&@INSTALL@&$ac_INSTALL&;t t |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 9193 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9194 | $ac_datarootdir_hack |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9195 | " |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9196 | eval 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 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9198 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9199 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9200 | { 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"; } && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9203 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9204 | which seems to be undefined. Please make sure it is defined" >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9205 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9206 | which seems to be undefined. Please make sure it is defined" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9207 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9208 | rm -f "$ac_tmp/stdin" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9209 | case $ac_file in |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9210 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 9211 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9212 | esac \ |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9213 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9214 | ;; |
| 9215 | :H) |
| 9216 | # |
| 9217 | # CONFIG_HEADER |
| 9218 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9219 | if test x"$ac_file" != x-; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9220 | { |
| 9221 | $as_echo "/* $configure_input */" \ |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9222 | && 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 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9226 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 9227 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9228 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9229 | rm -f "$ac_file" |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9230 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 9231 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9232 | fi |
| 9233 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9234 | $as_echo "/* $configure_input */" \ |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9235 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 9236 | || as_fn_error $? "could not create -" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9237 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9238 | # Compute "$ac_file"'s index in $config_headers. |
| 9239 | _am_arg="$ac_file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9240 | _am_stamp_count=1 |
| 9241 | for _am_header in $config_headers :; do |
| 9242 | case $_am_header in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9243 | $_am_arg | $_am_arg:* ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9244 | break ;; |
| 9245 | * ) |
| 9246 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 9247 | esac |
| 9248 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9249 | echo "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" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9255 | 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 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9273 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9274 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 9275 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9276 | ;; |
| 9277 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9278 | |
| 9279 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9280 | case $ac_file$ac_mode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9281 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9282 | # Older Autoconf quotes --file arguments for eval, but not when files |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9283 | # 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9295 | # We used to match only the files named 'Makefile.in', but |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9296 | # 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" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9303 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9304 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 9305 | X"$mf" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9306 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9307 | $as_echo X"$mf" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9308 | 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'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9325 | else |
| 9326 | continue |
| 9327 | fi |
| 9328 | # Extract the definition of DEPDIR, am__include, and am__quote |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9329 | # from the Makefile without running 'make'. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9330 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 9331 | test -z "$DEPDIR" && continue |
| 9332 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9333 | test -z "$am__include" && continue |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9334 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9335 | # 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9341 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9342 | # Make sure the directory exists. |
| 9343 | test -f "$dirpart/$file" && continue |
| 9344 | fdir=`$as_dirname -- "$file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9345 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9346 | X"$file" : 'X\(//\)[^/]' \| \ |
| 9347 | X"$file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9348 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9349 | $as_echo X"$file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9350 | 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'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9367 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 9368 | # echo "creating $dirpart/$file" |
| 9369 | echo '# dummy' > "$dirpart/$file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9370 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9371 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9372 | } |
| 9373 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9374 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9375 | esac |
| 9376 | done # for ac_tag |
| 9377 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9378 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9379 | as_fn_exit 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9380 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9381 | ac_clean_files=$ac_clean_files_save |
| 9382 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9383 | test $ac_write_fail = 0 || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9384 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9385 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9386 | |
| 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. |
| 9395 | if 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.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 9405 | $ac_cs_success || as_fn_exit 1 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9406 | fi |
| 9407 | if 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;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9410 | fi |
| 9411 | |