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 | |
| 588 | ac_unique_file="README" |
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 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 629 | SELFTEST_FALSE |
| 630 | SELFTEST_TRUE |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 631 | DISABLE_TOOLS_FALSE |
| 632 | DISABLE_TOOLS_TRUE |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 633 | DISABLE_PROCESSOR_FALSE |
| 634 | DISABLE_PROCESSOR_TRUE |
digit@chromium.org | 62d486b | 2012-08-21 14:34:48 +0000 | [diff] [blame] | 635 | ANDROID_HOST_FALSE |
| 636 | ANDROID_HOST_TRUE |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 637 | LINUX_HOST_FALSE |
| 638 | LINUX_HOST_TRUE |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 639 | PTHREAD_CFLAGS |
| 640 | PTHREAD_LIBS |
| 641 | PTHREAD_CC |
| 642 | ax_pthread_config |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 643 | EGREP |
| 644 | GREP |
ivan.penkov@gmail.com | 5f6e1f0 | 2012-07-02 22:55:57 +0000 | [diff] [blame] | 645 | GCC_FALSE |
| 646 | GCC_TRUE |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 647 | RANLIB |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 648 | am__fastdepCXX_FALSE |
| 649 | am__fastdepCXX_TRUE |
| 650 | CXXDEPMODE |
| 651 | ac_ct_CXX |
| 652 | CXXFLAGS |
| 653 | CXX |
| 654 | CPP |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 655 | am__fastdepCCAS_FALSE |
| 656 | am__fastdepCCAS_TRUE |
| 657 | CCASDEPMODE |
| 658 | CCASFLAGS |
| 659 | CCAS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 660 | am__fastdepCC_FALSE |
| 661 | am__fastdepCC_TRUE |
| 662 | CCDEPMODE |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 663 | am__nodep |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 664 | AMDEPBACKSLASH |
| 665 | AMDEP_FALSE |
| 666 | AMDEP_TRUE |
| 667 | am__quote |
| 668 | am__include |
| 669 | DEPDIR |
| 670 | OBJEXT |
| 671 | EXEEXT |
| 672 | ac_ct_CC |
| 673 | CPPFLAGS |
| 674 | LDFLAGS |
| 675 | CFLAGS |
| 676 | CC |
ted.mielczarek@gmail.com | 07bb231 | 2013-12-10 12:28:11 +0000 | [diff] [blame] | 677 | MAINT |
| 678 | MAINTAINER_MODE_FALSE |
| 679 | MAINTAINER_MODE_TRUE |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 680 | AM_BACKSLASH |
| 681 | AM_DEFAULT_VERBOSITY |
| 682 | AM_DEFAULT_V |
| 683 | AM_V |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 684 | am__untar |
| 685 | am__tar |
| 686 | AMTAR |
| 687 | am__leading_dot |
| 688 | SET_MAKE |
| 689 | AWK |
| 690 | mkdir_p |
| 691 | MKDIR_P |
| 692 | INSTALL_STRIP_PROGRAM |
| 693 | STRIP |
| 694 | install_sh |
| 695 | MAKEINFO |
| 696 | AUTOHEADER |
| 697 | AUTOMAKE |
| 698 | AUTOCONF |
| 699 | ACLOCAL |
| 700 | VERSION |
| 701 | PACKAGE |
| 702 | CYGPATH_W |
| 703 | am__isrc |
| 704 | INSTALL_DATA |
| 705 | INSTALL_SCRIPT |
| 706 | INSTALL_PROGRAM |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 707 | host_os |
| 708 | host_vendor |
| 709 | host_cpu |
| 710 | host |
| 711 | build_os |
| 712 | build_vendor |
| 713 | build_cpu |
| 714 | build |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 715 | target_alias |
| 716 | host_alias |
| 717 | build_alias |
| 718 | LIBS |
| 719 | ECHO_T |
| 720 | ECHO_N |
| 721 | ECHO_C |
| 722 | DEFS |
| 723 | mandir |
| 724 | localedir |
| 725 | libdir |
| 726 | psdir |
| 727 | pdfdir |
| 728 | dvidir |
| 729 | htmldir |
| 730 | infodir |
| 731 | docdir |
| 732 | oldincludedir |
| 733 | includedir |
| 734 | localstatedir |
| 735 | sharedstatedir |
| 736 | sysconfdir |
| 737 | datadir |
| 738 | datarootdir |
| 739 | libexecdir |
| 740 | sbindir |
| 741 | bindir |
| 742 | program_transform_name |
| 743 | prefix |
| 744 | exec_prefix |
| 745 | PACKAGE_URL |
| 746 | PACKAGE_BUGREPORT |
| 747 | PACKAGE_STRING |
| 748 | PACKAGE_VERSION |
| 749 | PACKAGE_TARNAME |
| 750 | PACKAGE_NAME |
| 751 | PATH_SEPARATOR |
| 752 | SHELL' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 753 | ac_subst_files='' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 754 | ac_user_opts=' |
| 755 | enable_option_checking |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 756 | enable_silent_rules |
ted.mielczarek@gmail.com | 07bb231 | 2013-12-10 12:28:11 +0000 | [diff] [blame] | 757 | enable_maintainer_mode |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 758 | enable_dependency_tracking |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 759 | enable_m32 |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 760 | enable_largefile |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 761 | enable_processor |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 762 | enable_tools |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 763 | enable_selftest |
| 764 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 765 | ac_precious_vars='build_alias |
| 766 | host_alias |
| 767 | target_alias |
| 768 | CC |
| 769 | CFLAGS |
| 770 | LDFLAGS |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 771 | LIBS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 772 | CPPFLAGS |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 773 | CCAS |
| 774 | CCASFLAGS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 775 | CPP |
| 776 | CXX |
| 777 | CXXFLAGS |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 778 | CCC' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 779 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 780 | |
| 781 | # Initialize some variables set by options. |
| 782 | ac_init_help= |
| 783 | ac_init_version=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 784 | ac_unrecognized_opts= |
| 785 | ac_unrecognized_sep= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 786 | # The variables have the same names as the options, with |
| 787 | # dashes changed to underlines. |
| 788 | cache_file=/dev/null |
| 789 | exec_prefix=NONE |
| 790 | no_create= |
| 791 | no_recursion= |
| 792 | prefix=NONE |
| 793 | program_prefix=NONE |
| 794 | program_suffix=NONE |
| 795 | program_transform_name=s,x,x, |
| 796 | silent= |
| 797 | site= |
| 798 | srcdir= |
| 799 | verbose= |
| 800 | x_includes=NONE |
| 801 | x_libraries=NONE |
| 802 | |
| 803 | # Installation directory options. |
| 804 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 805 | # and all the variables that are supposed to be based on exec_prefix |
| 806 | # by default will actually change. |
| 807 | # Use braces instead of parens because sh, perl, etc. also accept them. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 808 | # (The list follows the same order as the GNU Coding Standards.) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 809 | bindir='${exec_prefix}/bin' |
| 810 | sbindir='${exec_prefix}/sbin' |
| 811 | libexecdir='${exec_prefix}/libexec' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 812 | datarootdir='${prefix}/share' |
| 813 | datadir='${datarootdir}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 814 | sysconfdir='${prefix}/etc' |
| 815 | sharedstatedir='${prefix}/com' |
| 816 | localstatedir='${prefix}/var' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 817 | includedir='${prefix}/include' |
| 818 | oldincludedir='/usr/include' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 819 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 820 | infodir='${datarootdir}/info' |
| 821 | htmldir='${docdir}' |
| 822 | dvidir='${docdir}' |
| 823 | pdfdir='${docdir}' |
| 824 | psdir='${docdir}' |
| 825 | libdir='${exec_prefix}/lib' |
| 826 | localedir='${datarootdir}/locale' |
| 827 | mandir='${datarootdir}/man' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 828 | |
| 829 | ac_prev= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 830 | ac_dashdash= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 831 | for ac_option |
| 832 | do |
| 833 | # If the previous option needs an argument, assign it. |
| 834 | if test -n "$ac_prev"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 835 | eval $ac_prev=\$ac_option |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 836 | ac_prev= |
| 837 | continue |
| 838 | fi |
| 839 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 840 | case $ac_option in |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 841 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 842 | *=) ac_optarg= ;; |
| 843 | *) ac_optarg=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 844 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 845 | |
| 846 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 847 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 848 | case $ac_dashdash$ac_option in |
| 849 | --) |
| 850 | ac_dashdash=yes ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 851 | |
| 852 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 853 | ac_prev=bindir ;; |
| 854 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 855 | bindir=$ac_optarg ;; |
| 856 | |
| 857 | -build | --build | --buil | --bui | --bu) |
| 858 | ac_prev=build_alias ;; |
| 859 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 860 | build_alias=$ac_optarg ;; |
| 861 | |
| 862 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 863 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 864 | ac_prev=cache_file ;; |
| 865 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 866 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 867 | cache_file=$ac_optarg ;; |
| 868 | |
| 869 | --config-cache | -C) |
| 870 | cache_file=config.cache ;; |
| 871 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 872 | -datadir | --datadir | --datadi | --datad) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 873 | ac_prev=datadir ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 874 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 875 | datadir=$ac_optarg ;; |
| 876 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 877 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 878 | | --dataroo | --dataro | --datar) |
| 879 | ac_prev=datarootdir ;; |
| 880 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 881 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 882 | datarootdir=$ac_optarg ;; |
| 883 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 884 | -disable-* | --disable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 885 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 886 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 887 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 888 | as_fn_error $? "invalid feature name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 889 | ac_useropt_orig=$ac_useropt |
| 890 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 891 | case $ac_user_opts in |
| 892 | *" |
| 893 | "enable_$ac_useropt" |
| 894 | "*) ;; |
| 895 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 896 | ac_unrecognized_sep=', ';; |
| 897 | esac |
| 898 | eval enable_$ac_useropt=no ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 899 | |
| 900 | -docdir | --docdir | --docdi | --doc | --do) |
| 901 | ac_prev=docdir ;; |
| 902 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 903 | docdir=$ac_optarg ;; |
| 904 | |
| 905 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 906 | ac_prev=dvidir ;; |
| 907 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 908 | dvidir=$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 909 | |
| 910 | -enable-* | --enable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 911 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 912 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 913 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 914 | as_fn_error $? "invalid feature name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 915 | ac_useropt_orig=$ac_useropt |
| 916 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 917 | case $ac_user_opts in |
| 918 | *" |
| 919 | "enable_$ac_useropt" |
| 920 | "*) ;; |
| 921 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 922 | ac_unrecognized_sep=', ';; |
| 923 | esac |
| 924 | eval enable_$ac_useropt=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 925 | |
| 926 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 927 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 928 | | --exec | --exe | --ex) |
| 929 | ac_prev=exec_prefix ;; |
| 930 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 931 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 932 | | --exec=* | --exe=* | --ex=*) |
| 933 | exec_prefix=$ac_optarg ;; |
| 934 | |
| 935 | -gas | --gas | --ga | --g) |
| 936 | # Obsolete; use --with-gas. |
| 937 | with_gas=yes ;; |
| 938 | |
| 939 | -help | --help | --hel | --he | -h) |
| 940 | ac_init_help=long ;; |
| 941 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 942 | ac_init_help=recursive ;; |
| 943 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 944 | ac_init_help=short ;; |
| 945 | |
| 946 | -host | --host | --hos | --ho) |
| 947 | ac_prev=host_alias ;; |
| 948 | -host=* | --host=* | --hos=* | --ho=*) |
| 949 | host_alias=$ac_optarg ;; |
| 950 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 951 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 952 | ac_prev=htmldir ;; |
| 953 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 954 | | --ht=*) |
| 955 | htmldir=$ac_optarg ;; |
| 956 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 957 | -includedir | --includedir | --includedi | --included | --include \ |
| 958 | | --includ | --inclu | --incl | --inc) |
| 959 | ac_prev=includedir ;; |
| 960 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 961 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 962 | includedir=$ac_optarg ;; |
| 963 | |
| 964 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 965 | ac_prev=infodir ;; |
| 966 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 967 | infodir=$ac_optarg ;; |
| 968 | |
| 969 | -libdir | --libdir | --libdi | --libd) |
| 970 | ac_prev=libdir ;; |
| 971 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 972 | libdir=$ac_optarg ;; |
| 973 | |
| 974 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 975 | | --libexe | --libex | --libe) |
| 976 | ac_prev=libexecdir ;; |
| 977 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 978 | | --libexe=* | --libex=* | --libe=*) |
| 979 | libexecdir=$ac_optarg ;; |
| 980 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 981 | -localedir | --localedir | --localedi | --localed | --locale) |
| 982 | ac_prev=localedir ;; |
| 983 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 984 | localedir=$ac_optarg ;; |
| 985 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 986 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 987 | | --localstate | --localstat | --localsta | --localst | --locals) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 988 | ac_prev=localstatedir ;; |
| 989 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 990 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 991 | localstatedir=$ac_optarg ;; |
| 992 | |
| 993 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 994 | ac_prev=mandir ;; |
| 995 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 996 | mandir=$ac_optarg ;; |
| 997 | |
| 998 | -nfp | --nfp | --nf) |
| 999 | # Obsolete; use --without-fp. |
| 1000 | with_fp=no ;; |
| 1001 | |
| 1002 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1003 | | --no-cr | --no-c | -n) |
| 1004 | no_create=yes ;; |
| 1005 | |
| 1006 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1007 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1008 | no_recursion=yes ;; |
| 1009 | |
| 1010 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1011 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1012 | | --oldin | --oldi | --old | --ol | --o) |
| 1013 | ac_prev=oldincludedir ;; |
| 1014 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1015 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1016 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1017 | oldincludedir=$ac_optarg ;; |
| 1018 | |
| 1019 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1020 | ac_prev=prefix ;; |
| 1021 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1022 | prefix=$ac_optarg ;; |
| 1023 | |
| 1024 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1025 | | --program-pre | --program-pr | --program-p) |
| 1026 | ac_prev=program_prefix ;; |
| 1027 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1028 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1029 | program_prefix=$ac_optarg ;; |
| 1030 | |
| 1031 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1032 | | --program-suf | --program-su | --program-s) |
| 1033 | ac_prev=program_suffix ;; |
| 1034 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1035 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1036 | program_suffix=$ac_optarg ;; |
| 1037 | |
| 1038 | -program-transform-name | --program-transform-name \ |
| 1039 | | --program-transform-nam | --program-transform-na \ |
| 1040 | | --program-transform-n | --program-transform- \ |
| 1041 | | --program-transform | --program-transfor \ |
| 1042 | | --program-transfo | --program-transf \ |
| 1043 | | --program-trans | --program-tran \ |
| 1044 | | --progr-tra | --program-tr | --program-t) |
| 1045 | ac_prev=program_transform_name ;; |
| 1046 | -program-transform-name=* | --program-transform-name=* \ |
| 1047 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1048 | | --program-transform-n=* | --program-transform-=* \ |
| 1049 | | --program-transform=* | --program-transfor=* \ |
| 1050 | | --program-transfo=* | --program-transf=* \ |
| 1051 | | --program-trans=* | --program-tran=* \ |
| 1052 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1053 | program_transform_name=$ac_optarg ;; |
| 1054 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1055 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1056 | ac_prev=pdfdir ;; |
| 1057 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1058 | pdfdir=$ac_optarg ;; |
| 1059 | |
| 1060 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1061 | ac_prev=psdir ;; |
| 1062 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1063 | psdir=$ac_optarg ;; |
| 1064 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1065 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1066 | | -silent | --silent | --silen | --sile | --sil) |
| 1067 | silent=yes ;; |
| 1068 | |
| 1069 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1070 | ac_prev=sbindir ;; |
| 1071 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1072 | | --sbi=* | --sb=*) |
| 1073 | sbindir=$ac_optarg ;; |
| 1074 | |
| 1075 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1076 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1077 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1078 | | --sha | --sh) |
| 1079 | ac_prev=sharedstatedir ;; |
| 1080 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1081 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1082 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1083 | | --sha=* | --sh=*) |
| 1084 | sharedstatedir=$ac_optarg ;; |
| 1085 | |
| 1086 | -site | --site | --sit) |
| 1087 | ac_prev=site ;; |
| 1088 | -site=* | --site=* | --sit=*) |
| 1089 | site=$ac_optarg ;; |
| 1090 | |
| 1091 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1092 | ac_prev=srcdir ;; |
| 1093 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1094 | srcdir=$ac_optarg ;; |
| 1095 | |
| 1096 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1097 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1098 | ac_prev=sysconfdir ;; |
| 1099 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1100 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1101 | sysconfdir=$ac_optarg ;; |
| 1102 | |
| 1103 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1104 | ac_prev=target_alias ;; |
| 1105 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1106 | target_alias=$ac_optarg ;; |
| 1107 | |
| 1108 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1109 | verbose=yes ;; |
| 1110 | |
| 1111 | -version | --version | --versio | --versi | --vers | -V) |
| 1112 | ac_init_version=: ;; |
| 1113 | |
| 1114 | -with-* | --with-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1115 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1116 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1117 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1118 | as_fn_error $? "invalid package name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1119 | ac_useropt_orig=$ac_useropt |
| 1120 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1121 | case $ac_user_opts in |
| 1122 | *" |
| 1123 | "with_$ac_useropt" |
| 1124 | "*) ;; |
| 1125 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1126 | ac_unrecognized_sep=', ';; |
| 1127 | esac |
| 1128 | eval with_$ac_useropt=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1129 | |
| 1130 | -without-* | --without-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1131 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1132 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1133 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1134 | as_fn_error $? "invalid package name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1135 | ac_useropt_orig=$ac_useropt |
| 1136 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1137 | case $ac_user_opts in |
| 1138 | *" |
| 1139 | "with_$ac_useropt" |
| 1140 | "*) ;; |
| 1141 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1142 | ac_unrecognized_sep=', ';; |
| 1143 | esac |
| 1144 | eval with_$ac_useropt=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1145 | |
| 1146 | --x) |
| 1147 | # Obsolete; use --with-x. |
| 1148 | with_x=yes ;; |
| 1149 | |
| 1150 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1151 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1152 | ac_prev=x_includes ;; |
| 1153 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1154 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1155 | x_includes=$ac_optarg ;; |
| 1156 | |
| 1157 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1158 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1159 | ac_prev=x_libraries ;; |
| 1160 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1161 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1162 | x_libraries=$ac_optarg ;; |
| 1163 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1164 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1165 | Try \`$0 --help' for more information" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1166 | ;; |
| 1167 | |
| 1168 | *=*) |
| 1169 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1170 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1171 | case $ac_envvar in #( |
| 1172 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1173 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1174 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1175 | eval $ac_envvar=\$ac_optarg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1176 | export $ac_envvar ;; |
| 1177 | |
| 1178 | *) |
| 1179 | # FIXME: should be removed in autoconf 3.0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1180 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1181 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1182 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1183 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1184 | ;; |
| 1185 | |
| 1186 | esac |
| 1187 | done |
| 1188 | |
| 1189 | if test -n "$ac_prev"; then |
| 1190 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1191 | as_fn_error $? "missing argument to $ac_option" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1192 | fi |
| 1193 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1194 | if test -n "$ac_unrecognized_opts"; then |
| 1195 | case $enable_option_checking in |
| 1196 | no) ;; |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1197 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1198 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1199 | esac |
| 1200 | fi |
| 1201 | |
| 1202 | # Check all directory arguments for consistency. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1203 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1204 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1205 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1206 | libdir localedir mandir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1207 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1208 | eval ac_val=\$$ac_var |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1209 | # Remove trailing slashes. |
| 1210 | case $ac_val in |
| 1211 | */ ) |
| 1212 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1213 | eval $ac_var=\$ac_val;; |
| 1214 | esac |
| 1215 | # Be sure to have absolute directory names. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1216 | case $ac_val in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1217 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1218 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1219 | esac |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1220 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1221 | done |
| 1222 | |
| 1223 | # There might be people who depend on the old broken behavior: `$host' |
| 1224 | # used to hold the argument of --host etc. |
| 1225 | # FIXME: To remove some day. |
| 1226 | build=$build_alias |
| 1227 | host=$host_alias |
| 1228 | target=$target_alias |
| 1229 | |
| 1230 | # FIXME: To remove some day. |
| 1231 | if test "x$host_alias" != x; then |
| 1232 | if test "x$build_alias" = x; then |
| 1233 | cross_compiling=maybe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1234 | elif test "x$build_alias" != "x$host_alias"; then |
| 1235 | cross_compiling=yes |
| 1236 | fi |
| 1237 | fi |
| 1238 | |
| 1239 | ac_tool_prefix= |
| 1240 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1241 | |
| 1242 | test "$silent" = yes && exec 6>/dev/null |
| 1243 | |
| 1244 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1245 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1246 | ac_ls_di=`ls -di .` && |
| 1247 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1248 | as_fn_error $? "working directory cannot be determined" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1249 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1250 | as_fn_error $? "pwd does not report name of working directory" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1251 | |
| 1252 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1253 | # Find the source files, if location was not specified. |
| 1254 | if test -z "$srcdir"; then |
| 1255 | ac_srcdir_defaulted=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1256 | # Try the directory containing this script, then the parent directory. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1257 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1258 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1259 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1260 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1261 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1262 | $as_echo X"$as_myself" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1263 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1264 | s//\1/ |
| 1265 | q |
| 1266 | } |
| 1267 | /^X\(\/\/\)[^/].*/{ |
| 1268 | s//\1/ |
| 1269 | q |
| 1270 | } |
| 1271 | /^X\(\/\/\)$/{ |
| 1272 | s//\1/ |
| 1273 | q |
| 1274 | } |
| 1275 | /^X\(\/\).*/{ |
| 1276 | s//\1/ |
| 1277 | q |
| 1278 | } |
| 1279 | s/.*/./; q'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1280 | srcdir=$ac_confdir |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1281 | if test ! -r "$srcdir/$ac_unique_file"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1282 | srcdir=.. |
| 1283 | fi |
| 1284 | else |
| 1285 | ac_srcdir_defaulted=no |
| 1286 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1287 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1288 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1289 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1290 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1291 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1292 | ac_abs_confdir=`( |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1293 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1294 | pwd)` |
| 1295 | # When building in place, set srcdir=. |
| 1296 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1297 | srcdir=. |
| 1298 | fi |
| 1299 | # Remove unnecessary trailing slashes from srcdir. |
| 1300 | # Double slashes in file names in object file debugging info |
| 1301 | # mess up M-x gdb in Emacs. |
| 1302 | case $srcdir in |
| 1303 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1304 | esac |
| 1305 | for ac_var in $ac_precious_vars; do |
| 1306 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1307 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1308 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1309 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1310 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1311 | |
| 1312 | # |
| 1313 | # Report the --help message. |
| 1314 | # |
| 1315 | if test "$ac_init_help" = "long"; then |
| 1316 | # Omit some internal or obsolete options to make the list less imposing. |
| 1317 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1318 | cat <<_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1319 | \`configure' configures breakpad 0.1 to adapt to many kinds of systems. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1320 | |
| 1321 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1322 | |
| 1323 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1324 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1325 | |
| 1326 | Defaults for the options are specified in brackets. |
| 1327 | |
| 1328 | Configuration: |
| 1329 | -h, --help display this help and exit |
| 1330 | --help=short display options specific to this package |
| 1331 | --help=recursive display the short help of all the included packages |
| 1332 | -V, --version display version information and exit |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1333 | -q, --quiet, --silent do not print \`checking ...' messages |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1334 | --cache-file=FILE cache test results in FILE [disabled] |
| 1335 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1336 | -n, --no-create do not create output files |
| 1337 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1338 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1339 | Installation directories: |
| 1340 | --prefix=PREFIX install architecture-independent files in PREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1341 | [$ac_default_prefix] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1342 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1343 | [PREFIX] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1344 | |
| 1345 | By default, \`make install' will install all the files in |
| 1346 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1347 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1348 | for instance \`--prefix=\$HOME'. |
| 1349 | |
| 1350 | For better control, use the options below. |
| 1351 | |
| 1352 | Fine tuning of the installation directories: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1353 | --bindir=DIR user executables [EPREFIX/bin] |
| 1354 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1355 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1356 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1357 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1358 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1359 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1360 | --includedir=DIR C header files [PREFIX/include] |
| 1361 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1362 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1363 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1364 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1365 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1366 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1367 | --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad] |
| 1368 | --htmldir=DIR html documentation [DOCDIR] |
| 1369 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1370 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1371 | --psdir=DIR ps documentation [DOCDIR] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1372 | _ACEOF |
| 1373 | |
| 1374 | cat <<\_ACEOF |
| 1375 | |
| 1376 | Program names: |
| 1377 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1378 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1379 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1380 | |
| 1381 | System types: |
| 1382 | --build=BUILD configure for building on BUILD [guessed] |
| 1383 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1384 | _ACEOF |
| 1385 | fi |
| 1386 | |
| 1387 | if test -n "$ac_init_help"; then |
| 1388 | case $ac_init_help in |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1389 | short | recursive ) echo "Configuration of breakpad 0.1:";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1390 | esac |
| 1391 | cat <<\_ACEOF |
| 1392 | |
| 1393 | Optional Features: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1394 | --disable-option-checking ignore unrecognized --enable/--with options |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1395 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1396 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1397 | --enable-silent-rules less verbose build output (undo: "make V=1") |
| 1398 | --disable-silent-rules verbose build output (undo: "make V=0") |
ted.mielczarek@gmail.com | 07bb231 | 2013-12-10 12:28:11 +0000 | [diff] [blame] | 1399 | --enable-maintainer-mode |
| 1400 | enable make rules and dependencies not useful (and |
| 1401 | sometimes confusing) to the casual installer |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1402 | --enable-dependency-tracking |
| 1403 | do not reject slow dependency extractors |
| 1404 | --disable-dependency-tracking |
| 1405 | speeds up one-time build |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 1406 | --enable-m32 Compile/build with -m32 (default is no) |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 1407 | --disable-largefile omit support for large files |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 1408 | --disable-processor Don't build processor library (default is no) |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1409 | --disable-tools Don't build tool binaries (default is no) |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 1410 | --enable-selftest Run extra tests with "make check" (may conflict with |
| 1411 | optimizations) (default is no) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1412 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1413 | Some influential environment variables: |
| 1414 | CC C compiler command |
| 1415 | CFLAGS C compiler flags |
| 1416 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1417 | nonstandard directory <lib dir> |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 1418 | LIBS libraries to pass to the linker, e.g. -l<library> |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1419 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1420 | you have headers in a nonstandard directory <include dir> |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 1421 | CCAS assembler compiler command (defaults to CC) |
| 1422 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1423 | CPP C preprocessor |
| 1424 | CXX C++ compiler command |
| 1425 | CXXFLAGS C++ compiler flags |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1426 | |
| 1427 | Use these variables to override the choices made by `configure' or to help |
| 1428 | it to find libraries and programs with nonstandard names/locations. |
| 1429 | |
thestig@chromium.org | 43e6db7 | 2010-11-08 19:49:41 +0000 | [diff] [blame] | 1430 | Report bugs to <google-breakpad-dev@googlegroups.com>. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1431 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1432 | ac_status=$? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1433 | fi |
| 1434 | |
| 1435 | if test "$ac_init_help" = "recursive"; then |
| 1436 | # If there are subdirs, report their specific --help. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1437 | 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] | 1438 | test -d "$ac_dir" || |
| 1439 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1440 | continue |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1441 | ac_builddir=. |
| 1442 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1443 | case "$ac_dir" in |
| 1444 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1445 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1446 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1447 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1448 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1449 | case $ac_top_builddir_sub in |
| 1450 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1451 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1452 | esac ;; |
| 1453 | esac |
| 1454 | ac_abs_top_builddir=$ac_pwd |
| 1455 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1456 | # for backward compatibility: |
| 1457 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1458 | |
| 1459 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1460 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1461 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1462 | ac_top_srcdir=$ac_top_builddir_sub |
| 1463 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1464 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1465 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1466 | ac_top_srcdir=$srcdir |
| 1467 | ac_abs_top_srcdir=$srcdir ;; |
| 1468 | *) # Relative name. |
| 1469 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1470 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1471 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1472 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1473 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1474 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1475 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1476 | # Check for guested configure. |
| 1477 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1478 | echo && |
| 1479 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1480 | elif test -f "$ac_srcdir/configure"; then |
| 1481 | echo && |
| 1482 | $SHELL "$ac_srcdir/configure" --help=recursive |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1483 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1484 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1485 | fi || ac_status=$? |
| 1486 | cd "$ac_pwd" || { ac_status=$?; break; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1487 | done |
| 1488 | fi |
| 1489 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1490 | test -n "$ac_init_help" && exit $ac_status |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1491 | if $ac_init_version; then |
| 1492 | cat <<\_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1493 | breakpad configure 0.1 |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1494 | generated by GNU Autoconf 2.69 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1495 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1496 | Copyright (C) 2012 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1497 | This configure script is free software; the Free Software Foundation |
| 1498 | gives unlimited permission to copy, distribute and modify it. |
| 1499 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1500 | exit |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1501 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1502 | |
| 1503 | ## ------------------------ ## |
| 1504 | ## Autoconf initialization. ## |
| 1505 | ## ------------------------ ## |
| 1506 | |
| 1507 | # ac_fn_c_try_compile LINENO |
| 1508 | # -------------------------- |
| 1509 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1510 | ac_fn_c_try_compile () |
| 1511 | { |
| 1512 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1513 | rm -f conftest.$ac_objext |
| 1514 | if { { ac_try="$ac_compile" |
| 1515 | case "(($ac_try" in |
| 1516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1517 | *) ac_try_echo=$ac_try;; |
| 1518 | esac |
| 1519 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1520 | $as_echo "$ac_try_echo"; } >&5 |
| 1521 | (eval "$ac_compile") 2>conftest.err |
| 1522 | ac_status=$? |
| 1523 | if test -s conftest.err; then |
| 1524 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1525 | cat conftest.er1 >&5 |
| 1526 | mv -f conftest.er1 conftest.err |
| 1527 | fi |
| 1528 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1529 | test $ac_status = 0; } && { |
| 1530 | test -z "$ac_c_werror_flag" || |
| 1531 | test ! -s conftest.err |
| 1532 | } && test -s conftest.$ac_objext; then : |
| 1533 | ac_retval=0 |
| 1534 | else |
| 1535 | $as_echo "$as_me: failed program was:" >&5 |
| 1536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1537 | |
| 1538 | ac_retval=1 |
| 1539 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1540 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1541 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1542 | |
| 1543 | } # ac_fn_c_try_compile |
| 1544 | |
| 1545 | # ac_fn_c_try_cpp LINENO |
| 1546 | # ---------------------- |
| 1547 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1548 | ac_fn_c_try_cpp () |
| 1549 | { |
| 1550 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1551 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1552 | case "(($ac_try" in |
| 1553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1554 | *) ac_try_echo=$ac_try;; |
| 1555 | esac |
| 1556 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1557 | $as_echo "$ac_try_echo"; } >&5 |
| 1558 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1559 | ac_status=$? |
| 1560 | if test -s conftest.err; then |
| 1561 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1562 | cat conftest.er1 >&5 |
| 1563 | mv -f conftest.er1 conftest.err |
| 1564 | fi |
| 1565 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1566 | test $ac_status = 0; } > conftest.i && { |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1567 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1568 | test ! -s conftest.err |
| 1569 | }; then : |
| 1570 | ac_retval=0 |
| 1571 | else |
| 1572 | $as_echo "$as_me: failed program was:" >&5 |
| 1573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1574 | |
| 1575 | ac_retval=1 |
| 1576 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1577 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1578 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1579 | |
| 1580 | } # ac_fn_c_try_cpp |
| 1581 | |
| 1582 | # ac_fn_cxx_try_compile LINENO |
| 1583 | # ---------------------------- |
| 1584 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1585 | ac_fn_cxx_try_compile () |
| 1586 | { |
| 1587 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1588 | rm -f conftest.$ac_objext |
| 1589 | if { { ac_try="$ac_compile" |
| 1590 | case "(($ac_try" in |
| 1591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1592 | *) ac_try_echo=$ac_try;; |
| 1593 | esac |
| 1594 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1595 | $as_echo "$ac_try_echo"; } >&5 |
| 1596 | (eval "$ac_compile") 2>conftest.err |
| 1597 | ac_status=$? |
| 1598 | if test -s conftest.err; then |
| 1599 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1600 | cat conftest.er1 >&5 |
| 1601 | mv -f conftest.er1 conftest.err |
| 1602 | fi |
| 1603 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1604 | test $ac_status = 0; } && { |
| 1605 | test -z "$ac_cxx_werror_flag" || |
| 1606 | test ! -s conftest.err |
| 1607 | } && test -s conftest.$ac_objext; then : |
| 1608 | ac_retval=0 |
| 1609 | else |
| 1610 | $as_echo "$as_me: failed program was:" >&5 |
| 1611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1612 | |
| 1613 | ac_retval=1 |
| 1614 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1615 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1616 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1617 | |
| 1618 | } # ac_fn_cxx_try_compile |
| 1619 | |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 1620 | # ac_fn_c_try_run LINENO |
| 1621 | # ---------------------- |
| 1622 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1623 | # that executables *can* be run. |
| 1624 | ac_fn_c_try_run () |
| 1625 | { |
| 1626 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1627 | if { { ac_try="$ac_link" |
| 1628 | case "(($ac_try" in |
| 1629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1630 | *) ac_try_echo=$ac_try;; |
| 1631 | esac |
| 1632 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1633 | $as_echo "$ac_try_echo"; } >&5 |
| 1634 | (eval "$ac_link") 2>&5 |
| 1635 | ac_status=$? |
| 1636 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1637 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1638 | { { case "(($ac_try" in |
| 1639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1640 | *) ac_try_echo=$ac_try;; |
| 1641 | esac |
| 1642 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1643 | $as_echo "$ac_try_echo"; } >&5 |
| 1644 | (eval "$ac_try") 2>&5 |
| 1645 | ac_status=$? |
| 1646 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1647 | test $ac_status = 0; }; }; then : |
| 1648 | ac_retval=0 |
| 1649 | else |
| 1650 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1651 | $as_echo "$as_me: failed program was:" >&5 |
| 1652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1653 | |
| 1654 | ac_retval=$ac_status |
| 1655 | fi |
| 1656 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1657 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 1658 | as_fn_set_status $ac_retval |
| 1659 | |
| 1660 | } # ac_fn_c_try_run |
| 1661 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1662 | # ac_fn_c_try_link LINENO |
| 1663 | # ----------------------- |
| 1664 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1665 | ac_fn_c_try_link () |
| 1666 | { |
| 1667 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1668 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1669 | if { { ac_try="$ac_link" |
| 1670 | case "(($ac_try" in |
| 1671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1672 | *) ac_try_echo=$ac_try;; |
| 1673 | esac |
| 1674 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1675 | $as_echo "$ac_try_echo"; } >&5 |
| 1676 | (eval "$ac_link") 2>conftest.err |
| 1677 | ac_status=$? |
| 1678 | if test -s conftest.err; then |
| 1679 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1680 | cat conftest.er1 >&5 |
| 1681 | mv -f conftest.er1 conftest.err |
| 1682 | fi |
| 1683 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1684 | test $ac_status = 0; } && { |
| 1685 | test -z "$ac_c_werror_flag" || |
| 1686 | test ! -s conftest.err |
| 1687 | } && test -s conftest$ac_exeext && { |
| 1688 | test "$cross_compiling" = yes || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1689 | test -x conftest$ac_exeext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1690 | }; then : |
| 1691 | ac_retval=0 |
| 1692 | else |
| 1693 | $as_echo "$as_me: failed program was:" >&5 |
| 1694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1695 | |
| 1696 | ac_retval=1 |
| 1697 | fi |
| 1698 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1699 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1700 | # interfere with the next link command; also delete a directory that is |
| 1701 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1702 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1703 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1704 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1705 | |
| 1706 | } # ac_fn_c_try_link |
| 1707 | |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1708 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1709 | # ------------------------------------------------------- |
| 1710 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1711 | # the include files in INCLUDES and setting the cache variable VAR |
| 1712 | # accordingly. |
| 1713 | ac_fn_c_check_header_mongrel () |
| 1714 | { |
| 1715 | 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] | 1716 | if eval \${$3+:} false; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1718 | $as_echo_n "checking for $2... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1719 | if eval \${$3+:} false; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1720 | $as_echo_n "(cached) " >&6 |
| 1721 | fi |
| 1722 | eval ac_res=\$$3 |
| 1723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1724 | $as_echo "$ac_res" >&6; } |
| 1725 | else |
| 1726 | # Is the header compilable? |
| 1727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1728 | $as_echo_n "checking $2 usability... " >&6; } |
| 1729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1730 | /* end confdefs.h. */ |
| 1731 | $4 |
| 1732 | #include <$2> |
| 1733 | _ACEOF |
| 1734 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1735 | ac_header_compiler=yes |
| 1736 | else |
| 1737 | ac_header_compiler=no |
| 1738 | fi |
| 1739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1741 | $as_echo "$ac_header_compiler" >&6; } |
| 1742 | |
| 1743 | # Is the header present? |
| 1744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1745 | $as_echo_n "checking $2 presence... " >&6; } |
| 1746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1747 | /* end confdefs.h. */ |
| 1748 | #include <$2> |
| 1749 | _ACEOF |
| 1750 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1751 | ac_header_preproc=yes |
| 1752 | else |
| 1753 | ac_header_preproc=no |
| 1754 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1755 | rm -f conftest.err conftest.i conftest.$ac_ext |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1757 | $as_echo "$ac_header_preproc" >&6; } |
| 1758 | |
| 1759 | # So? What about this header? |
| 1760 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1761 | yes:no: ) |
| 1762 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1763 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1764 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1765 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1766 | ;; |
| 1767 | no:yes:* ) |
| 1768 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1769 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1770 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1771 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1772 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1773 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1774 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1775 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1776 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1777 | $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] | 1778 | ( $as_echo "## --------------------------------------------------- ## |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1779 | ## Report this to google-breakpad-dev@googlegroups.com ## |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1780 | ## --------------------------------------------------- ##" |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1781 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1782 | ;; |
| 1783 | esac |
| 1784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1785 | $as_echo_n "checking for $2... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1786 | if eval \${$3+:} false; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1787 | $as_echo_n "(cached) " >&6 |
| 1788 | else |
| 1789 | eval "$3=\$ac_header_compiler" |
| 1790 | fi |
| 1791 | eval ac_res=\$$3 |
| 1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1793 | $as_echo "$ac_res" >&6; } |
| 1794 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1795 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1796 | |
| 1797 | } # ac_fn_c_check_header_mongrel |
| 1798 | |
| 1799 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1800 | # ------------------------------------------------------- |
| 1801 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1802 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1803 | ac_fn_c_check_header_compile () |
| 1804 | { |
| 1805 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1807 | $as_echo_n "checking for $2... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1808 | if eval \${$3+:} false; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1809 | $as_echo_n "(cached) " >&6 |
| 1810 | else |
| 1811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1812 | /* end confdefs.h. */ |
| 1813 | $4 |
| 1814 | #include <$2> |
| 1815 | _ACEOF |
| 1816 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1817 | eval "$3=yes" |
| 1818 | else |
| 1819 | eval "$3=no" |
| 1820 | fi |
| 1821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1822 | fi |
| 1823 | eval ac_res=\$$3 |
| 1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1825 | $as_echo "$ac_res" >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1826 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 1827 | |
| 1828 | } # ac_fn_c_check_header_compile |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1829 | cat >config.log <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1830 | This file contains any messages produced by compilers while |
| 1831 | running configure, to aid debugging if configure makes a mistake. |
| 1832 | |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1833 | It was created by breakpad $as_me 0.1, which was |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1834 | generated by GNU Autoconf 2.69. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1835 | |
| 1836 | $ $0 $@ |
| 1837 | |
| 1838 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1839 | exec 5>>config.log |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1840 | { |
| 1841 | cat <<_ASUNAME |
| 1842 | ## --------- ## |
| 1843 | ## Platform. ## |
| 1844 | ## --------- ## |
| 1845 | |
| 1846 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1847 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1848 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1849 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1850 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1851 | |
| 1852 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1853 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1854 | |
| 1855 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1856 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1857 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1858 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1859 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1860 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1861 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1862 | |
| 1863 | _ASUNAME |
| 1864 | |
| 1865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1866 | for as_dir in $PATH |
| 1867 | do |
| 1868 | IFS=$as_save_IFS |
| 1869 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1870 | $as_echo "PATH: $as_dir" |
| 1871 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1872 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1873 | |
| 1874 | } >&5 |
| 1875 | |
| 1876 | cat >&5 <<_ACEOF |
| 1877 | |
| 1878 | |
| 1879 | ## ----------- ## |
| 1880 | ## Core tests. ## |
| 1881 | ## ----------- ## |
| 1882 | |
| 1883 | _ACEOF |
| 1884 | |
| 1885 | |
| 1886 | # Keep a trace of the command line. |
| 1887 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1888 | # Strip out --silent because we don't want to record it for future runs. |
| 1889 | # Also quote any args containing shell meta-characters. |
| 1890 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1891 | ac_configure_args= |
| 1892 | ac_configure_args0= |
| 1893 | ac_configure_args1= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1894 | ac_must_keep_next=false |
| 1895 | for ac_pass in 1 2 |
| 1896 | do |
| 1897 | for ac_arg |
| 1898 | do |
| 1899 | case $ac_arg in |
| 1900 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1901 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1902 | | -silent | --silent | --silen | --sile | --sil) |
| 1903 | continue ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1904 | *\'*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1905 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1906 | esac |
| 1907 | case $ac_pass in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1908 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1909 | 2) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1910 | as_fn_append ac_configure_args1 " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1911 | if test $ac_must_keep_next = true; then |
| 1912 | ac_must_keep_next=false # Got value, back to normal. |
| 1913 | else |
| 1914 | case $ac_arg in |
| 1915 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1916 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1917 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1918 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1919 | case "$ac_configure_args0 " in |
| 1920 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1921 | esac |
| 1922 | ;; |
| 1923 | -* ) ac_must_keep_next=true ;; |
| 1924 | esac |
| 1925 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1926 | as_fn_append ac_configure_args " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1927 | ;; |
| 1928 | esac |
| 1929 | done |
| 1930 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1931 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1932 | { ac_configure_args1=; unset ac_configure_args1;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1933 | |
| 1934 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1935 | # config.log. We remove comments because anyway the quotes in there |
| 1936 | # would cause problems or look ugly. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1937 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1938 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1939 | trap 'exit_status=$? |
| 1940 | # Save into config.log some information that might help in debugging. |
| 1941 | { |
| 1942 | echo |
| 1943 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1944 | $as_echo "## ---------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1945 | ## Cache variables. ## |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1946 | ## ---------------- ##" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1947 | echo |
| 1948 | # The following way of writing the cache mishandles newlines in values, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1949 | ( |
| 1950 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1951 | eval ac_val=\$$ac_var |
| 1952 | case $ac_val in #( |
| 1953 | *${as_nl}*) |
| 1954 | case $ac_var in #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1955 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1956 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1957 | esac |
| 1958 | case $ac_var in #( |
| 1959 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1960 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1961 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1962 | esac ;; |
| 1963 | esac |
| 1964 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1965 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1966 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1967 | *${as_nl}ac_space=\ *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1968 | sed -n \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1969 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1970 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1971 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1972 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1973 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1974 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1975 | esac | |
| 1976 | sort |
| 1977 | ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1978 | echo |
| 1979 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1980 | $as_echo "## ----------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1981 | ## Output variables. ## |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1982 | ## ----------------- ##" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1983 | echo |
| 1984 | for ac_var in $ac_subst_vars |
| 1985 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1986 | eval ac_val=\$$ac_var |
| 1987 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1988 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1989 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1990 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1991 | done | sort |
| 1992 | echo |
| 1993 | |
| 1994 | if test -n "$ac_subst_files"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1995 | $as_echo "## ------------------- ## |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1996 | ## File substitutions. ## |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 1997 | ## ------------------- ##" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1998 | echo |
| 1999 | for ac_var in $ac_subst_files |
| 2000 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2001 | eval ac_val=\$$ac_var |
| 2002 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2003 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2004 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2005 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2006 | done | sort |
| 2007 | echo |
| 2008 | fi |
| 2009 | |
| 2010 | if test -s confdefs.h; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2011 | $as_echo "## ----------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2012 | ## confdefs.h. ## |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2013 | ## ----------- ##" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2014 | echo |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2015 | cat confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2016 | echo |
| 2017 | fi |
| 2018 | test "$ac_signal" != 0 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2019 | $as_echo "$as_me: caught signal $ac_signal" |
| 2020 | $as_echo "$as_me: exit $exit_status" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2021 | } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2022 | rm -f core *.core core.conftest.* && |
| 2023 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2024 | exit $exit_status |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2025 | ' 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2026 | for ac_signal in 1 2 13 15; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2027 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2028 | done |
| 2029 | ac_signal=0 |
| 2030 | |
| 2031 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2032 | rm -f -r conftest* confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2033 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2034 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2035 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2036 | # Predefined preprocessor variables. |
| 2037 | |
| 2038 | cat >>confdefs.h <<_ACEOF |
| 2039 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2040 | _ACEOF |
| 2041 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2042 | cat >>confdefs.h <<_ACEOF |
| 2043 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2044 | _ACEOF |
| 2045 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2046 | cat >>confdefs.h <<_ACEOF |
| 2047 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2048 | _ACEOF |
| 2049 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2050 | cat >>confdefs.h <<_ACEOF |
| 2051 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2052 | _ACEOF |
| 2053 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2054 | cat >>confdefs.h <<_ACEOF |
| 2055 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2056 | _ACEOF |
| 2057 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2058 | cat >>confdefs.h <<_ACEOF |
| 2059 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2060 | _ACEOF |
| 2061 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2062 | |
| 2063 | # Let the site file select an alternate cache file if it wants to. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2064 | # Prefer an explicitly selected file to automatically selected ones. |
| 2065 | ac_site_file1=NONE |
| 2066 | ac_site_file2=NONE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2067 | if test -n "$CONFIG_SITE"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2068 | # We do not want a PATH search for config.site. |
| 2069 | case $CONFIG_SITE in #(( |
| 2070 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2071 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2072 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2073 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2074 | elif test "x$prefix" != xNONE; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2075 | ac_site_file1=$prefix/share/config.site |
| 2076 | ac_site_file2=$prefix/etc/config.site |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2077 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2078 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2079 | ac_site_file2=$ac_default_prefix/etc/config.site |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2080 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2081 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2082 | do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2083 | test "x$ac_site_file" = xNONE && continue |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2084 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2085 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2086 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2087 | sed 's/^/| /' "$ac_site_file" >&5 |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2088 | . "$ac_site_file" \ |
| 2089 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2090 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2091 | as_fn_error $? "failed to load site script $ac_site_file |
| 2092 | See \`config.log' for more details" "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2093 | fi |
| 2094 | done |
| 2095 | |
| 2096 | if test -r "$cache_file"; then |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2097 | # Some versions of bash will fail to source /dev/null (special files |
| 2098 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2099 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2100 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2101 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2102 | case $cache_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2103 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2104 | *) . "./$cache_file";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2105 | esac |
| 2106 | fi |
| 2107 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2108 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2109 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2110 | >$cache_file |
| 2111 | fi |
| 2112 | |
| 2113 | # Check that the precious variables saved in the cache have kept the same |
| 2114 | # value. |
| 2115 | ac_cache_corrupted=false |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2116 | for ac_var in $ac_precious_vars; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2117 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2118 | eval ac_new_set=\$ac_env_${ac_var}_set |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2119 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2120 | eval ac_new_val=\$ac_env_${ac_var}_value |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2121 | case $ac_old_set,$ac_new_set in |
| 2122 | set,) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2123 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2124 | $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] | 2125 | ac_cache_corrupted=: ;; |
| 2126 | ,set) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2127 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2128 | $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] | 2129 | ac_cache_corrupted=: ;; |
| 2130 | ,);; |
| 2131 | *) |
| 2132 | if test "x$ac_old_val" != "x$ac_new_val"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2133 | # differences in whitespace do not lead to failure. |
| 2134 | ac_old_val_w=`echo x $ac_old_val` |
| 2135 | ac_new_val_w=`echo x $ac_new_val` |
| 2136 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2137 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2138 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2139 | ac_cache_corrupted=: |
| 2140 | else |
| 2141 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2142 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2143 | eval $ac_var=\$ac_old_val |
| 2144 | fi |
| 2145 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2146 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2147 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2148 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2149 | fi;; |
| 2150 | esac |
| 2151 | # Pass precious variables to config.status. |
| 2152 | if test "$ac_new_set" = set; then |
| 2153 | case $ac_new_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2154 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2155 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2156 | esac |
| 2157 | case " $ac_configure_args " in |
| 2158 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2159 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2160 | esac |
| 2161 | fi |
| 2162 | done |
| 2163 | if $ac_cache_corrupted; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2164 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2165 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2166 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2167 | $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] | 2168 | 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] | 2169 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2170 | ## -------------------- ## |
| 2171 | ## Main body of script. ## |
| 2172 | ## -------------------- ## |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2173 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2174 | ac_ext=c |
| 2175 | ac_cpp='$CPP $CPPFLAGS' |
| 2176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2179 | |
| 2180 | |
| 2181 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2182 | ac_aux_dir= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2183 | for ac_dir in autotools "$srcdir"/autotools; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2184 | if test -f "$ac_dir/install-sh"; then |
| 2185 | ac_aux_dir=$ac_dir |
| 2186 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2187 | break |
| 2188 | elif test -f "$ac_dir/install.sh"; then |
| 2189 | ac_aux_dir=$ac_dir |
| 2190 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2191 | break |
| 2192 | elif test -f "$ac_dir/shtool"; then |
| 2193 | ac_aux_dir=$ac_dir |
| 2194 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2195 | break |
| 2196 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2197 | done |
| 2198 | if test -z "$ac_aux_dir"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2199 | 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] | 2200 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2201 | |
| 2202 | # These three variables are undocumented and unsupported, |
| 2203 | # and are intended to be withdrawn in a future Autoconf release. |
| 2204 | # They can cause serious problems if a builder's source tree is in a directory |
| 2205 | # whose full name contains unusual characters. |
| 2206 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2207 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2208 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2209 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2210 | |
mmentovai | 425d256 | 2006-08-30 20:05:05 +0000 | [diff] [blame] | 2211 | |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2212 | # Make sure we can run config.sub. |
| 2213 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2214 | 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] | 2215 | |
| 2216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2217 | $as_echo_n "checking build system type... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2218 | if ${ac_cv_build+:} false; then : |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2219 | $as_echo_n "(cached) " >&6 |
| 2220 | else |
| 2221 | ac_build_alias=$build_alias |
| 2222 | test "x$ac_build_alias" = x && |
| 2223 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2224 | test "x$ac_build_alias" = x && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2225 | 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] | 2226 | 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] | 2227 | 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] | 2228 | |
| 2229 | fi |
| 2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2231 | $as_echo "$ac_cv_build" >&6; } |
| 2232 | case $ac_cv_build in |
| 2233 | *-*-*) ;; |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2234 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2235 | esac |
| 2236 | build=$ac_cv_build |
| 2237 | ac_save_IFS=$IFS; IFS='-' |
| 2238 | set x $ac_cv_build |
| 2239 | shift |
| 2240 | build_cpu=$1 |
| 2241 | build_vendor=$2 |
| 2242 | shift; shift |
| 2243 | # Remember, the first character of IFS is used to create $*, |
| 2244 | # except with old shells: |
| 2245 | build_os=$* |
| 2246 | IFS=$ac_save_IFS |
| 2247 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2248 | |
| 2249 | |
| 2250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2251 | $as_echo_n "checking host system type... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2252 | if ${ac_cv_host+:} false; then : |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2253 | $as_echo_n "(cached) " >&6 |
| 2254 | else |
| 2255 | if test "x$host_alias" = x; then |
| 2256 | ac_cv_host=$ac_cv_build |
| 2257 | else |
| 2258 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2259 | 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] | 2260 | fi |
| 2261 | |
| 2262 | fi |
| 2263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2264 | $as_echo "$ac_cv_host" >&6; } |
| 2265 | case $ac_cv_host in |
| 2266 | *-*-*) ;; |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2267 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2268 | esac |
| 2269 | host=$ac_cv_host |
| 2270 | ac_save_IFS=$IFS; IFS='-' |
| 2271 | set x $ac_cv_host |
| 2272 | shift |
| 2273 | host_cpu=$1 |
| 2274 | host_vendor=$2 |
| 2275 | shift; shift |
| 2276 | # Remember, the first character of IFS is used to create $*, |
| 2277 | # except with old shells: |
| 2278 | host_os=$* |
| 2279 | IFS=$ac_save_IFS |
| 2280 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2281 | |
| 2282 | |
| 2283 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2284 | am__api_version='1.14' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2285 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2286 | # Find a good install program. We prefer a C program (faster), |
| 2287 | # so one script is as good as another. But avoid the broken or |
| 2288 | # incompatible versions: |
| 2289 | # SysV /etc/install, /usr/sbin/install |
| 2290 | # SunOS /usr/etc/install |
| 2291 | # IRIX /sbin/install |
| 2292 | # AIX /bin/install |
| 2293 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2294 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2295 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2296 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2297 | # OS/2's system install, which has a completely different semantic |
| 2298 | # ./install, which can be erroneously created by make from ./install.sh. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2299 | # Reject install programs that cannot install multiple files. |
| 2300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2301 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2302 | if test -z "$INSTALL"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2303 | if ${ac_cv_path_install+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2304 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2305 | else |
| 2306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2307 | for as_dir in $PATH |
| 2308 | do |
| 2309 | IFS=$as_save_IFS |
| 2310 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2311 | # Account for people who put trailing slashes in PATH elements. |
| 2312 | case $as_dir/ in #(( |
| 2313 | ./ | .// | /[cC]/* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2314 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2315 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2316 | /usr/ucb/* ) ;; |
| 2317 | *) |
| 2318 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2319 | # Don't use installbsd from OSF since it installs stuff as root |
| 2320 | # by default. |
| 2321 | for ac_prog in ginstall scoinst install; do |
| 2322 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2323 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2324 | if test $ac_prog = install && |
| 2325 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2326 | # AIX install. It has an incompatible calling convention. |
| 2327 | : |
| 2328 | elif test $ac_prog = install && |
| 2329 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2330 | # program-specific install script used by HP pwplus--don't use. |
| 2331 | : |
| 2332 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2333 | rm -rf conftest.one conftest.two conftest.dir |
| 2334 | echo one > conftest.one |
| 2335 | echo two > conftest.two |
| 2336 | mkdir conftest.dir |
| 2337 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2338 | test -s conftest.one && test -s conftest.two && |
| 2339 | test -s conftest.dir/conftest.one && |
| 2340 | test -s conftest.dir/conftest.two |
| 2341 | then |
| 2342 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2343 | break 3 |
| 2344 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2345 | fi |
| 2346 | fi |
| 2347 | done |
| 2348 | done |
| 2349 | ;; |
| 2350 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2351 | |
| 2352 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2353 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2354 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2355 | rm -rf conftest.one conftest.two conftest.dir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2356 | |
| 2357 | fi |
| 2358 | if test "${ac_cv_path_install+set}" = set; then |
| 2359 | INSTALL=$ac_cv_path_install |
| 2360 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2361 | # As a last resort, use the slow shell script. Don't cache a |
| 2362 | # value for INSTALL within a source directory, because that will |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2363 | # break other packages using the cache if that directory is |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2364 | # removed, or if the value is a relative name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2365 | INSTALL=$ac_install_sh |
| 2366 | fi |
| 2367 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2369 | $as_echo "$INSTALL" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2370 | |
| 2371 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2372 | # It thinks the first close brace ends the variable substitution. |
| 2373 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2374 | |
| 2375 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2376 | |
| 2377 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2378 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2380 | $as_echo_n "checking whether build environment is sane... " >&6; } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2381 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2382 | # name. Accept space and tab only in the latter. |
| 2383 | am_lf=' |
| 2384 | ' |
| 2385 | case `pwd` in |
| 2386 | *[\\\"\#\$\&\'\`$am_lf]*) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2387 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2388 | esac |
| 2389 | case $srcdir in |
| 2390 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2391 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2392 | esac |
| 2393 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2394 | # 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] | 2395 | # arguments. Must try -L first in case configure is actually a |
| 2396 | # symlink; some systems play weird games with the mod time of symlinks |
| 2397 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2398 | # directory). |
| 2399 | if ( |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2400 | am_has_slept=no |
| 2401 | for am_try in 1 2; do |
| 2402 | echo "timestamp, slept: $am_has_slept" > conftest.file |
| 2403 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 2404 | if test "$*" = "X"; then |
| 2405 | # -L didn't work. |
| 2406 | set X `ls -t "$srcdir/configure" conftest.file` |
| 2407 | fi |
| 2408 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2409 | && test "$*" != "X conftest.file $srcdir/configure"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2410 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2411 | # If neither matched, then we have a broken ls. This can happen |
| 2412 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2413 | # broken ls alias from the environment. This has actually |
| 2414 | # happened. Such a system could not be considered "sane". |
| 2415 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 2416 | alias in your environment" "$LINENO" 5 |
| 2417 | fi |
| 2418 | if test "$2" = conftest.file || test $am_try -eq 2; then |
| 2419 | break |
| 2420 | fi |
| 2421 | # Just in case. |
| 2422 | sleep 1 |
| 2423 | am_has_slept=yes |
| 2424 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2425 | test "$2" = conftest.file |
| 2426 | ) |
| 2427 | then |
| 2428 | # Ok. |
| 2429 | : |
| 2430 | else |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2431 | as_fn_error $? "newly created file is older than distributed files! |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2432 | Check your system clock" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2433 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2435 | $as_echo "yes" >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2436 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 2437 | # generated files are strictly newer. |
| 2438 | am_sleep_pid= |
| 2439 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 2440 | ( sleep 1 ) & |
| 2441 | am_sleep_pid=$! |
| 2442 | fi |
| 2443 | |
| 2444 | rm -f conftest.file |
| 2445 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2446 | test "$program_prefix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2447 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2448 | # Use a double $ so make ignores it. |
| 2449 | test "$program_suffix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2450 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2451 | # Double any \ or $. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2452 | # By default was `s,x,x', remove it if useless. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2453 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2454 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2455 | |
| 2456 | # expand $ac_aux_dir to an absolute path |
| 2457 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2458 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2459 | if test x"${MISSING+set}" != xset; then |
| 2460 | case $am_aux_dir in |
| 2461 | *\ * | *\ *) |
| 2462 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2463 | *) |
| 2464 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2465 | esac |
| 2466 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2467 | # Use eval to expand $SHELL |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2468 | if eval "$MISSING --is-lightweight"; then |
| 2469 | am_missing_run="$MISSING " |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2470 | else |
| 2471 | am_missing_run= |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 2473 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2474 | fi |
| 2475 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2476 | if test x"${install_sh}" != xset; then |
| 2477 | case $am_aux_dir in |
| 2478 | *\ * | *\ *) |
| 2479 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2480 | *) |
| 2481 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2482 | esac |
| 2483 | fi |
| 2484 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2485 | # Installed binaries are usually stripped using 'strip' when the user |
| 2486 | # run "make install-strip". However 'strip' might not be the right |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2487 | # tool to use in cross-compilation environments, therefore Automake |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2488 | # will honor the 'STRIP' environment variable to overrule this program. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2489 | if test "$cross_compiling" != no; then |
| 2490 | if test -n "$ac_tool_prefix"; then |
| 2491 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2492 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2494 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2495 | if ${ac_cv_prog_STRIP+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2496 | $as_echo_n "(cached) " >&6 |
| 2497 | else |
| 2498 | if test -n "$STRIP"; then |
| 2499 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2500 | else |
| 2501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2502 | for as_dir in $PATH |
| 2503 | do |
| 2504 | IFS=$as_save_IFS |
| 2505 | test -z "$as_dir" && as_dir=. |
| 2506 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2507 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2508 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2509 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2510 | break 2 |
| 2511 | fi |
| 2512 | done |
| 2513 | done |
| 2514 | IFS=$as_save_IFS |
| 2515 | |
| 2516 | fi |
| 2517 | fi |
| 2518 | STRIP=$ac_cv_prog_STRIP |
| 2519 | if test -n "$STRIP"; then |
| 2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2521 | $as_echo "$STRIP" >&6; } |
| 2522 | else |
| 2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2524 | $as_echo "no" >&6; } |
| 2525 | fi |
| 2526 | |
| 2527 | |
| 2528 | fi |
| 2529 | if test -z "$ac_cv_prog_STRIP"; then |
| 2530 | ac_ct_STRIP=$STRIP |
| 2531 | # Extract the first word of "strip", so it can be a program name with args. |
| 2532 | set dummy strip; ac_word=$2 |
| 2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2534 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2535 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2536 | $as_echo_n "(cached) " >&6 |
| 2537 | else |
| 2538 | if test -n "$ac_ct_STRIP"; then |
| 2539 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2540 | else |
| 2541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2542 | for as_dir in $PATH |
| 2543 | do |
| 2544 | IFS=$as_save_IFS |
| 2545 | test -z "$as_dir" && as_dir=. |
| 2546 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2547 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2548 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2549 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2550 | break 2 |
| 2551 | fi |
| 2552 | done |
| 2553 | done |
| 2554 | IFS=$as_save_IFS |
| 2555 | |
| 2556 | fi |
| 2557 | fi |
| 2558 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2559 | if test -n "$ac_ct_STRIP"; then |
| 2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2561 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2562 | else |
| 2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2564 | $as_echo "no" >&6; } |
| 2565 | fi |
| 2566 | |
| 2567 | if test "x$ac_ct_STRIP" = x; then |
| 2568 | STRIP=":" |
| 2569 | else |
| 2570 | case $cross_compiling:$ac_tool_warned in |
| 2571 | yes:) |
| 2572 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2573 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2574 | ac_tool_warned=yes ;; |
| 2575 | esac |
| 2576 | STRIP=$ac_ct_STRIP |
| 2577 | fi |
| 2578 | else |
| 2579 | STRIP="$ac_cv_prog_STRIP" |
| 2580 | fi |
| 2581 | |
| 2582 | fi |
| 2583 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2584 | |
| 2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2586 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2587 | if test -z "$MKDIR_P"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2588 | if ${ac_cv_path_mkdir+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2589 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2590 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2592 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2593 | do |
| 2594 | IFS=$as_save_IFS |
| 2595 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2596 | for ac_prog in mkdir gmkdir; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2597 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2598 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2599 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2600 | 'mkdir (GNU coreutils) '* | \ |
| 2601 | 'mkdir (coreutils) '* | \ |
| 2602 | 'mkdir (fileutils) '4.1*) |
| 2603 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2604 | break 3;; |
| 2605 | esac |
| 2606 | done |
| 2607 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2608 | done |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2609 | IFS=$as_save_IFS |
| 2610 | |
| 2611 | fi |
| 2612 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2613 | test -d ./--version && rmdir ./--version |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2614 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2615 | MKDIR_P="$ac_cv_path_mkdir -p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2616 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2617 | # As a last resort, use the slow shell script. Don't cache a |
| 2618 | # value for MKDIR_P within a source directory, because that will |
| 2619 | # break other packages using the cache if that directory is |
| 2620 | # removed, or if the value is a relative name. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2621 | MKDIR_P="$ac_install_sh -d" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2622 | fi |
| 2623 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2625 | $as_echo "$MKDIR_P" >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2626 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2627 | for ac_prog in gawk mawk nawk awk |
| 2628 | do |
| 2629 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2630 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2632 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2633 | if ${ac_cv_prog_AWK+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2634 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2635 | else |
| 2636 | if test -n "$AWK"; then |
| 2637 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2638 | else |
| 2639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2640 | for as_dir in $PATH |
| 2641 | do |
| 2642 | IFS=$as_save_IFS |
| 2643 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2644 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2645 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2646 | ac_cv_prog_AWK="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2647 | $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] | 2648 | break 2 |
| 2649 | fi |
| 2650 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2651 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2652 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2653 | |
| 2654 | fi |
| 2655 | fi |
| 2656 | AWK=$ac_cv_prog_AWK |
| 2657 | if test -n "$AWK"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2659 | $as_echo "$AWK" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2660 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2662 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2663 | fi |
| 2664 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2665 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2666 | test -n "$AWK" && break |
| 2667 | done |
| 2668 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2670 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2671 | set x ${MAKE-make} |
| 2672 | 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] | 2673 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2674 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2675 | else |
| 2676 | cat >conftest.make <<\_ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2677 | SHELL = /bin/sh |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2678 | all: |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2679 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2680 | _ACEOF |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2681 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2682 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2683 | *@@@%%%=?*=@@@%%%*) |
| 2684 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2685 | *) |
| 2686 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2687 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2688 | rm -f conftest.make |
| 2689 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2690 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2692 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2693 | SET_MAKE= |
| 2694 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2696 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2697 | SET_MAKE="MAKE=${MAKE-make}" |
| 2698 | fi |
| 2699 | |
| 2700 | rm -rf .tst 2>/dev/null |
| 2701 | mkdir .tst 2>/dev/null |
| 2702 | if test -d .tst; then |
| 2703 | am__leading_dot=. |
| 2704 | else |
| 2705 | am__leading_dot=_ |
| 2706 | fi |
| 2707 | rmdir .tst 2>/dev/null |
| 2708 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2709 | # Check whether --enable-silent-rules was given. |
| 2710 | if test "${enable_silent_rules+set}" = set; then : |
| 2711 | enableval=$enable_silent_rules; |
| 2712 | fi |
| 2713 | |
| 2714 | case $enable_silent_rules in # ((( |
| 2715 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 2716 | no) AM_DEFAULT_VERBOSITY=1;; |
| 2717 | *) AM_DEFAULT_VERBOSITY=1;; |
| 2718 | esac |
| 2719 | am_make=${MAKE-make} |
| 2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 2721 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
| 2722 | if ${am_cv_make_support_nested_variables+:} false; then : |
| 2723 | $as_echo_n "(cached) " >&6 |
| 2724 | else |
| 2725 | if $as_echo 'TRUE=$(BAR$(V)) |
| 2726 | BAR0=false |
| 2727 | BAR1=true |
| 2728 | V=1 |
| 2729 | am__doit: |
| 2730 | @$(TRUE) |
| 2731 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 2732 | am_cv_make_support_nested_variables=yes |
| 2733 | else |
| 2734 | am_cv_make_support_nested_variables=no |
| 2735 | fi |
| 2736 | fi |
| 2737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 2738 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
| 2739 | if test $am_cv_make_support_nested_variables = yes; then |
| 2740 | AM_V='$(V)' |
| 2741 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 2742 | else |
| 2743 | AM_V=$AM_DEFAULT_VERBOSITY |
| 2744 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 2745 | fi |
| 2746 | AM_BACKSLASH='\' |
| 2747 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2748 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2749 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2750 | # is not polluted with repeated "-I." |
| 2751 | am__isrc=' -I$(srcdir)' |
| 2752 | # test to see if srcdir already configured |
| 2753 | if test -f $srcdir/config.status; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2754 | 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] | 2755 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2756 | fi |
| 2757 | |
| 2758 | # test whether we have cygpath |
| 2759 | if test -z "$CYGPATH_W"; then |
| 2760 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2761 | CYGPATH_W='cygpath -w' |
| 2762 | else |
| 2763 | CYGPATH_W=echo |
| 2764 | fi |
| 2765 | fi |
| 2766 | |
| 2767 | |
| 2768 | # Define the identity of the package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 2769 | PACKAGE='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2770 | VERSION='0.1' |
| 2771 | |
| 2772 | |
| 2773 | cat >>confdefs.h <<_ACEOF |
| 2774 | #define PACKAGE "$PACKAGE" |
| 2775 | _ACEOF |
| 2776 | |
| 2777 | |
| 2778 | cat >>confdefs.h <<_ACEOF |
| 2779 | #define VERSION "$VERSION" |
| 2780 | _ACEOF |
| 2781 | |
| 2782 | # Some tools Automake needs. |
| 2783 | |
| 2784 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2785 | |
| 2786 | |
| 2787 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2788 | |
| 2789 | |
| 2790 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2791 | |
| 2792 | |
| 2793 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2794 | |
| 2795 | |
| 2796 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2797 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2798 | # For better backward compatibility. To be removed once Automake 1.9.x |
| 2799 | # dies out for good. For more background, see: |
| 2800 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 2801 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 2802 | mkdir_p='$(MKDIR_P)' |
| 2803 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2804 | # We need awk for the "check" target. The system "awk" is bad on |
| 2805 | # some platforms. |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 2806 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 2807 | # in the wild :-( We should find a proper way to deprecate it ... |
| 2808 | AMTAR='$${TAR-tar}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2809 | |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2810 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2811 | # 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] | 2812 | _am_tools='gnutar plaintar pax cpio none' |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2813 | |
| 2814 | # The POSIX 1988 'ustar' format is defined with fixed-size fields. |
| 2815 | # There is notably a 21 bits limit for the UID and the GID. In fact, |
| 2816 | # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 |
| 2817 | # and bug#13588). |
| 2818 | am_max_uid=2097151 # 2^21 - 1 |
| 2819 | am_max_gid=$am_max_uid |
| 2820 | # The $UID and $GID variables are not portable, so we need to resort |
| 2821 | # to the POSIX-mandated id(1) utility. Errors in the 'id' calls |
| 2822 | # below are definitely unexpected, so allow the users to see them |
| 2823 | # (that is, avoid stderr redirection). |
| 2824 | am_uid=`id -u || echo unknown` |
| 2825 | am_gid=`id -g || echo unknown` |
| 2826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 |
| 2827 | $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } |
| 2828 | if test $am_uid -le $am_max_uid; then |
| 2829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2830 | $as_echo "yes" >&6; } |
| 2831 | else |
| 2832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2833 | $as_echo "no" >&6; } |
| 2834 | _am_tools=none |
| 2835 | fi |
| 2836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 |
| 2837 | $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } |
| 2838 | if test $am_gid -le $am_max_gid; then |
| 2839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2840 | $as_echo "yes" >&6; } |
| 2841 | else |
| 2842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2843 | $as_echo "no" >&6; } |
| 2844 | _am_tools=none |
| 2845 | fi |
| 2846 | |
| 2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 |
| 2848 | $as_echo_n "checking how to create a ustar tar archive... " >&6; } |
| 2849 | |
| 2850 | # Go ahead even if we have the value already cached. We do so because we |
| 2851 | # need to set the values for the 'am__tar' and 'am__untar' variables. |
| 2852 | _am_tools=${am_cv_prog_tar_ustar-$_am_tools} |
| 2853 | |
| 2854 | for _am_tool in $_am_tools; do |
| 2855 | case $_am_tool in |
| 2856 | gnutar) |
| 2857 | for _am_tar in tar gnutar gtar; do |
| 2858 | { echo "$as_me:$LINENO: $_am_tar --version" >&5 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2859 | ($_am_tar --version) >&5 2>&5 |
| 2860 | ac_status=$? |
| 2861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2862 | (exit $ac_status); } && break |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2863 | done |
| 2864 | am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' |
| 2865 | am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' |
| 2866 | am__untar="$_am_tar -xf -" |
| 2867 | ;; |
| 2868 | plaintar) |
| 2869 | # Must skip GNU tar: if it does not support --format= it doesn't create |
| 2870 | # ustar tarball either. |
| 2871 | (tar --version) >/dev/null 2>&1 && continue |
| 2872 | am__tar='tar chf - "$$tardir"' |
| 2873 | am__tar_='tar chf - "$tardir"' |
| 2874 | am__untar='tar xf -' |
| 2875 | ;; |
| 2876 | pax) |
| 2877 | am__tar='pax -L -x ustar -w "$$tardir"' |
| 2878 | am__tar_='pax -L -x ustar -w "$tardir"' |
| 2879 | am__untar='pax -r' |
| 2880 | ;; |
| 2881 | cpio) |
| 2882 | am__tar='find "$$tardir" -print | cpio -o -H ustar -L' |
| 2883 | am__tar_='find "$tardir" -print | cpio -o -H ustar -L' |
| 2884 | am__untar='cpio -i -H ustar -d' |
| 2885 | ;; |
| 2886 | none) |
| 2887 | am__tar=false |
| 2888 | am__tar_=false |
| 2889 | am__untar=false |
| 2890 | ;; |
| 2891 | esac |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2892 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2893 | # If the value was cached, stop now. We just wanted to have am__tar |
| 2894 | # and am__untar set. |
| 2895 | test -n "${am_cv_prog_tar_ustar}" && break |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2896 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2897 | # tar/untar a dummy directory, and stop if the command works. |
| 2898 | rm -rf conftest.dir |
| 2899 | mkdir conftest.dir |
| 2900 | echo GrepMe > conftest.dir/file |
| 2901 | { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2902 | (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 |
| 2903 | ac_status=$? |
| 2904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2905 | (exit $ac_status); } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2906 | rm -rf conftest.dir |
| 2907 | if test -s conftest.tar; then |
| 2908 | { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2909 | ($am__untar <conftest.tar) >&5 2>&5 |
| 2910 | ac_status=$? |
| 2911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2912 | (exit $ac_status); } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2913 | { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 |
| 2914 | (cat conftest.dir/file) >&5 2>&5 |
| 2915 | ac_status=$? |
| 2916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2917 | (exit $ac_status); } |
| 2918 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 2919 | fi |
| 2920 | done |
| 2921 | rm -rf conftest.dir |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2922 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2923 | if ${am_cv_prog_tar_ustar+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2924 | $as_echo_n "(cached) " >&6 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2925 | else |
| 2926 | am_cv_prog_tar_ustar=$_am_tool |
| 2927 | fi |
| 2928 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2929 | { $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] | 2930 | $as_echo "$am_cv_prog_tar_ustar" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2931 | |
| 2932 | |
| 2933 | |
| 2934 | |
| 2935 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 2936 | |
| 2937 | # POSIX will say in a future version that running "rm -f" with no argument |
| 2938 | # is OK; and we want to be able to make that assumption in our Makefile |
| 2939 | # recipes. So use an aggressive probe to check that the usage we want is |
| 2940 | # actually supported "in the wild" to an acceptable degree. |
| 2941 | # See automake bug#10828. |
| 2942 | # To make any issue more visible, cause the running configure to be aborted |
| 2943 | # by default if the 'rm' program in use doesn't match our expectations; the |
| 2944 | # user can still override this though. |
| 2945 | if rm -f && rm -fr && rm -rf; then : OK; else |
| 2946 | cat >&2 <<'END' |
| 2947 | Oops! |
| 2948 | |
| 2949 | Your 'rm' program seems unable to run without file operands specified |
| 2950 | on the command line, even when the '-f' option is present. This is contrary |
| 2951 | to the behaviour of most rm programs out there, and not conforming with |
| 2952 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 2953 | |
| 2954 | Please tell bug-automake@gnu.org about your system, including the value |
| 2955 | of your $PATH and any error possibly output before this message. This |
| 2956 | can help us improve future automake versions. |
| 2957 | |
| 2958 | END |
| 2959 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 2960 | echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 2961 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 2962 | echo >&2 |
| 2963 | else |
| 2964 | cat >&2 <<'END' |
| 2965 | Aborting the configuration process, to ensure you take notice of the issue. |
| 2966 | |
| 2967 | You can download and install GNU coreutils to get an 'rm' implementation |
| 2968 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
| 2969 | |
| 2970 | If you want to complete the configuration process using your problematic |
| 2971 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 2972 | to "yes", and re-run configure. |
| 2973 | |
| 2974 | END |
| 2975 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 2976 | fi |
| 2977 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2978 | ac_config_headers="$ac_config_headers src/config.h" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2979 | |
| 2980 | |
ted.mielczarek@gmail.com | 07bb231 | 2013-12-10 12:28:11 +0000 | [diff] [blame] | 2981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 2982 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 2983 | # Check whether --enable-maintainer-mode was given. |
| 2984 | if test "${enable_maintainer_mode+set}" = set; then : |
| 2985 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 2986 | else |
| 2987 | USE_MAINTAINER_MODE=no |
| 2988 | fi |
| 2989 | |
| 2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 2991 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 2992 | if test $USE_MAINTAINER_MODE = yes; then |
| 2993 | MAINTAINER_MODE_TRUE= |
| 2994 | MAINTAINER_MODE_FALSE='#' |
| 2995 | else |
| 2996 | MAINTAINER_MODE_TRUE='#' |
| 2997 | MAINTAINER_MODE_FALSE= |
| 2998 | fi |
| 2999 | |
| 3000 | MAINT=$MAINTAINER_MODE_TRUE |
| 3001 | |
| 3002 | |
| 3003 | |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3004 | DEPDIR="${am__leading_dot}deps" |
| 3005 | |
| 3006 | ac_config_commands="$ac_config_commands depfiles" |
| 3007 | |
| 3008 | |
| 3009 | am_make=${MAKE-make} |
| 3010 | cat > confinc << 'END' |
| 3011 | am__doit: |
| 3012 | @echo this is the am__doit target |
| 3013 | .PHONY: am__doit |
| 3014 | END |
| 3015 | # If we don't find an include directive, just comment out the code. |
| 3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 3017 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 3018 | am__include="#" |
| 3019 | am__quote= |
| 3020 | _am_result=none |
| 3021 | # First try GNU make style include. |
| 3022 | echo "include confinc" > confmf |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3023 | # Ignore all kinds of additional output from 'make'. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3024 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3025 | *the\ am__doit\ target*) |
| 3026 | am__include=include |
| 3027 | am__quote= |
| 3028 | _am_result=GNU |
| 3029 | ;; |
| 3030 | esac |
| 3031 | # Now try BSD make style include. |
| 3032 | if test "$am__include" = "#"; then |
| 3033 | echo '.include "confinc"' > confmf |
| 3034 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3035 | *the\ am__doit\ target*) |
| 3036 | am__include=.include |
| 3037 | am__quote="\"" |
| 3038 | _am_result=BSD |
| 3039 | ;; |
| 3040 | esac |
| 3041 | fi |
| 3042 | |
| 3043 | |
| 3044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3045 | $as_echo "$_am_result" >&6; } |
| 3046 | rm -f confinc confmf |
| 3047 | |
| 3048 | # Check whether --enable-dependency-tracking was given. |
| 3049 | if test "${enable_dependency_tracking+set}" = set; then : |
| 3050 | enableval=$enable_dependency_tracking; |
| 3051 | fi |
| 3052 | |
| 3053 | if test "x$enable_dependency_tracking" != xno; then |
| 3054 | am_depcomp="$ac_aux_dir/depcomp" |
| 3055 | AMDEPBACKSLASH='\' |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 3056 | am__nodep='_no' |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3057 | fi |
| 3058 | if test "x$enable_dependency_tracking" != xno; then |
| 3059 | AMDEP_TRUE= |
| 3060 | AMDEP_FALSE='#' |
| 3061 | else |
| 3062 | AMDEP_TRUE='#' |
| 3063 | AMDEP_FALSE= |
| 3064 | fi |
| 3065 | |
| 3066 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3067 | ac_ext=c |
| 3068 | ac_cpp='$CPP $CPPFLAGS' |
| 3069 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3070 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3071 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3072 | if test -n "$ac_tool_prefix"; then |
| 3073 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3074 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3076 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3077 | if ${ac_cv_prog_CC+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3078 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3079 | else |
| 3080 | if test -n "$CC"; then |
| 3081 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3082 | else |
| 3083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3084 | for as_dir in $PATH |
| 3085 | do |
| 3086 | IFS=$as_save_IFS |
| 3087 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3088 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3089 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3090 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3091 | $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] | 3092 | break 2 |
| 3093 | fi |
| 3094 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3095 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3096 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3097 | |
| 3098 | fi |
| 3099 | fi |
| 3100 | CC=$ac_cv_prog_CC |
| 3101 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3103 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3104 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3106 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3107 | fi |
| 3108 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3109 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3110 | fi |
| 3111 | if test -z "$ac_cv_prog_CC"; then |
| 3112 | ac_ct_CC=$CC |
| 3113 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3114 | set dummy gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3116 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3117 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3118 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3119 | else |
| 3120 | if test -n "$ac_ct_CC"; then |
| 3121 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3122 | else |
| 3123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3124 | for as_dir in $PATH |
| 3125 | do |
| 3126 | IFS=$as_save_IFS |
| 3127 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3128 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3129 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3130 | ac_cv_prog_ac_ct_CC="gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3131 | $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] | 3132 | break 2 |
| 3133 | fi |
| 3134 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3135 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3136 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3137 | |
| 3138 | fi |
| 3139 | fi |
| 3140 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3141 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3143 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3144 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3146 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3147 | fi |
| 3148 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3149 | if test "x$ac_ct_CC" = x; then |
| 3150 | CC="" |
| 3151 | else |
| 3152 | case $cross_compiling:$ac_tool_warned in |
| 3153 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3154 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3155 | $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] | 3156 | ac_tool_warned=yes ;; |
| 3157 | esac |
| 3158 | CC=$ac_ct_CC |
| 3159 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3160 | else |
| 3161 | CC="$ac_cv_prog_CC" |
| 3162 | fi |
| 3163 | |
| 3164 | if test -z "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3165 | if test -n "$ac_tool_prefix"; then |
| 3166 | # 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] | 3167 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3169 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3170 | if ${ac_cv_prog_CC+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3171 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3172 | else |
| 3173 | if test -n "$CC"; then |
| 3174 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3175 | else |
| 3176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3177 | for as_dir in $PATH |
| 3178 | do |
| 3179 | IFS=$as_save_IFS |
| 3180 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3181 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3182 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3183 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3184 | $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] | 3185 | break 2 |
| 3186 | fi |
| 3187 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3188 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3189 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3190 | |
| 3191 | fi |
| 3192 | fi |
| 3193 | CC=$ac_cv_prog_CC |
| 3194 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3196 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3197 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3199 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3200 | fi |
| 3201 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3202 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3203 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3204 | fi |
| 3205 | if test -z "$CC"; then |
| 3206 | # Extract the first word of "cc", so it can be a program name with args. |
| 3207 | set dummy cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3209 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3210 | if ${ac_cv_prog_CC+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3211 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3212 | else |
| 3213 | if test -n "$CC"; then |
| 3214 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3215 | else |
| 3216 | ac_prog_rejected=no |
| 3217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3218 | for as_dir in $PATH |
| 3219 | do |
| 3220 | IFS=$as_save_IFS |
| 3221 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3222 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3223 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3224 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3225 | ac_prog_rejected=yes |
| 3226 | continue |
| 3227 | fi |
| 3228 | ac_cv_prog_CC="cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3229 | $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] | 3230 | break 2 |
| 3231 | fi |
| 3232 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3233 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3234 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3235 | |
| 3236 | if test $ac_prog_rejected = yes; then |
| 3237 | # We found a bogon in the path, so make sure we never use it. |
| 3238 | set dummy $ac_cv_prog_CC |
| 3239 | shift |
| 3240 | if test $# != 0; then |
| 3241 | # We chose a different compiler from the bogus one. |
| 3242 | # However, it has the same basename, so the bogon will be chosen |
| 3243 | # first if we set CC to just the basename; use the full file name. |
| 3244 | shift |
| 3245 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3246 | fi |
| 3247 | fi |
| 3248 | fi |
| 3249 | fi |
| 3250 | CC=$ac_cv_prog_CC |
| 3251 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3253 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3254 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3256 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3257 | fi |
| 3258 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3259 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3260 | fi |
| 3261 | if test -z "$CC"; then |
| 3262 | if test -n "$ac_tool_prefix"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3263 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3264 | do |
| 3265 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3266 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3268 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3269 | if ${ac_cv_prog_CC+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3270 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3271 | else |
| 3272 | if test -n "$CC"; then |
| 3273 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3274 | else |
| 3275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3276 | for as_dir in $PATH |
| 3277 | do |
| 3278 | IFS=$as_save_IFS |
| 3279 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3280 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3281 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3282 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3283 | $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] | 3284 | break 2 |
| 3285 | fi |
| 3286 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3287 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3288 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3289 | |
| 3290 | fi |
| 3291 | fi |
| 3292 | CC=$ac_cv_prog_CC |
| 3293 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3295 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3296 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3298 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3299 | fi |
| 3300 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3301 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3302 | test -n "$CC" && break |
| 3303 | done |
| 3304 | fi |
| 3305 | if test -z "$CC"; then |
| 3306 | ac_ct_CC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3307 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3308 | do |
| 3309 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3310 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3312 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3313 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3314 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3315 | else |
| 3316 | if test -n "$ac_ct_CC"; then |
| 3317 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3318 | else |
| 3319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3320 | for as_dir in $PATH |
| 3321 | do |
| 3322 | IFS=$as_save_IFS |
| 3323 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3324 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3325 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3326 | ac_cv_prog_ac_ct_CC="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3327 | $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] | 3328 | break 2 |
| 3329 | fi |
| 3330 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3331 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3332 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3333 | |
| 3334 | fi |
| 3335 | fi |
| 3336 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3337 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3339 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3340 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3342 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3343 | fi |
| 3344 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3345 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3346 | test -n "$ac_ct_CC" && break |
| 3347 | done |
| 3348 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3349 | if test "x$ac_ct_CC" = x; then |
| 3350 | CC="" |
| 3351 | else |
| 3352 | case $cross_compiling:$ac_tool_warned in |
| 3353 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3354 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3355 | $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] | 3356 | ac_tool_warned=yes ;; |
| 3357 | esac |
| 3358 | CC=$ac_ct_CC |
| 3359 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3360 | fi |
| 3361 | |
| 3362 | fi |
| 3363 | |
| 3364 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3365 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3366 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3367 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3368 | See \`config.log' for more details" "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3369 | |
| 3370 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3371 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3372 | set X $ac_compile |
| 3373 | ac_compiler=$2 |
| 3374 | for ac_option in --version -v -V -qversion; do |
| 3375 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3376 | case "(($ac_try" in |
| 3377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3378 | *) ac_try_echo=$ac_try;; |
| 3379 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3380 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3381 | $as_echo "$ac_try_echo"; } >&5 |
| 3382 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3383 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3384 | if test -s conftest.err; then |
| 3385 | sed '10a\ |
| 3386 | ... rest of stderr output deleted ... |
| 3387 | 10q' conftest.err >conftest.er1 |
| 3388 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3389 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3390 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3391 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3392 | test $ac_status = 0; } |
| 3393 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3394 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3396 | /* end confdefs.h. */ |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3397 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3398 | int |
| 3399 | main () |
| 3400 | { |
| 3401 | |
| 3402 | ; |
| 3403 | return 0; |
| 3404 | } |
| 3405 | _ACEOF |
| 3406 | ac_clean_files_save=$ac_clean_files |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3407 | 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] | 3408 | # Try to create an executable without -o first, disregard a.out. |
| 3409 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3410 | # of exeext. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3412 | $as_echo_n "checking whether the C compiler works... " >&6; } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3413 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3414 | |
| 3415 | # The possible output files: |
| 3416 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3417 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3418 | ac_rmfiles= |
| 3419 | for ac_file in $ac_files |
| 3420 | do |
| 3421 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3422 | *.$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] | 3423 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3424 | esac |
| 3425 | done |
| 3426 | rm -f $ac_rmfiles |
| 3427 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3428 | if { { ac_try="$ac_link_default" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3429 | case "(($ac_try" in |
| 3430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3431 | *) ac_try_echo=$ac_try;; |
| 3432 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3433 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3434 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3435 | (eval "$ac_link_default") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3436 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3437 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3438 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3439 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3440 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3441 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3442 | # so that the user can short-circuit this test for compilers unknown to |
| 3443 | # Autoconf. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3444 | for ac_file in $ac_files '' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3445 | do |
| 3446 | test -f "$ac_file" || continue |
| 3447 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3448 | *.$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] | 3449 | ;; |
| 3450 | [ab].out ) |
| 3451 | # We found the default executable, but exeext='' is most |
| 3452 | # certainly right. |
| 3453 | break;; |
| 3454 | *.* ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3455 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3456 | then :; else |
| 3457 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3458 | fi |
| 3459 | # We set ac_cv_exeext here because the later test for it is not |
| 3460 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3461 | # argument, so we may need to know it at that point already. |
| 3462 | # Even if this section looks crufty: it has the advantage of |
| 3463 | # actually working. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3464 | break;; |
| 3465 | * ) |
| 3466 | break;; |
| 3467 | esac |
| 3468 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3469 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3470 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3471 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3472 | ac_file='' |
| 3473 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3474 | if test -z "$ac_file"; then : |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3476 | $as_echo "no" >&6; } |
| 3477 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3479 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3480 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3481 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3482 | as_fn_error 77 "C compiler cannot create executables |
| 3483 | See \`config.log' for more details" "$LINENO" 5; } |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3484 | else |
| 3485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3486 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3487 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3489 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3491 | $as_echo "$ac_file" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3492 | ac_exeext=$ac_cv_exeext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3493 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3494 | 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] | 3495 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3497 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3498 | if { { ac_try="$ac_link" |
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 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3505 | (eval "$ac_link") 2>&5 |
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 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3508 | test $ac_status = 0; }; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3509 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3510 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3511 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3512 | # `rm'. |
| 3513 | for ac_file in conftest.exe conftest conftest.*; do |
| 3514 | test -f "$ac_file" || continue |
| 3515 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3516 | *.$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] | 3517 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3518 | break;; |
| 3519 | * ) break;; |
| 3520 | esac |
| 3521 | done |
| 3522 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3523 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3524 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3525 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3526 | See \`config.log' for more details" "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3527 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3528 | rm -f conftest conftest$ac_cv_exeext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3530 | $as_echo "$ac_cv_exeext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3531 | |
| 3532 | rm -f conftest.$ac_ext |
| 3533 | EXEEXT=$ac_cv_exeext |
| 3534 | ac_exeext=$EXEEXT |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3536 | /* end confdefs.h. */ |
| 3537 | #include <stdio.h> |
| 3538 | int |
| 3539 | main () |
| 3540 | { |
| 3541 | FILE *f = fopen ("conftest.out", "w"); |
| 3542 | return ferror (f) || fclose (f) != 0; |
| 3543 | |
| 3544 | ; |
| 3545 | return 0; |
| 3546 | } |
| 3547 | _ACEOF |
| 3548 | ac_clean_files="$ac_clean_files conftest.out" |
| 3549 | # Check that the compiler produces executables we can run. If not, either |
| 3550 | # the compiler is broken, or we cross compile. |
| 3551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3552 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3553 | if test "$cross_compiling" != yes; then |
| 3554 | { { ac_try="$ac_link" |
| 3555 | case "(($ac_try" in |
| 3556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3557 | *) ac_try_echo=$ac_try;; |
| 3558 | esac |
| 3559 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3560 | $as_echo "$ac_try_echo"; } >&5 |
| 3561 | (eval "$ac_link") 2>&5 |
| 3562 | ac_status=$? |
| 3563 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3564 | test $ac_status = 0; } |
| 3565 | if { ac_try='./conftest$ac_cv_exeext' |
| 3566 | { { case "(($ac_try" in |
| 3567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3568 | *) ac_try_echo=$ac_try;; |
| 3569 | esac |
| 3570 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3571 | $as_echo "$ac_try_echo"; } >&5 |
| 3572 | (eval "$ac_try") 2>&5 |
| 3573 | ac_status=$? |
| 3574 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3575 | test $ac_status = 0; }; }; then |
| 3576 | cross_compiling=no |
| 3577 | else |
| 3578 | if test "$cross_compiling" = maybe; then |
| 3579 | cross_compiling=yes |
| 3580 | else |
| 3581 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3582 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3583 | as_fn_error $? "cannot run C compiled programs. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3584 | If you meant to cross compile, use \`--host'. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3585 | See \`config.log' for more details" "$LINENO" 5; } |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3586 | fi |
| 3587 | fi |
| 3588 | fi |
| 3589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3590 | $as_echo "$cross_compiling" >&6; } |
| 3591 | |
| 3592 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3593 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3595 | $as_echo_n "checking for suffix of object files... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3596 | if ${ac_cv_objext+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3597 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3598 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3600 | /* end confdefs.h. */ |
| 3601 | |
| 3602 | int |
| 3603 | main () |
| 3604 | { |
| 3605 | |
| 3606 | ; |
| 3607 | return 0; |
| 3608 | } |
| 3609 | _ACEOF |
| 3610 | rm -f conftest.o conftest.obj |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3611 | if { { ac_try="$ac_compile" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3612 | case "(($ac_try" in |
| 3613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3614 | *) ac_try_echo=$ac_try;; |
| 3615 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3616 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3617 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3618 | (eval "$ac_compile") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3619 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3620 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3621 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3622 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3623 | test -f "$ac_file" || continue; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3624 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3625 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3626 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3627 | break;; |
| 3628 | esac |
| 3629 | done |
| 3630 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3631 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3633 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3634 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3635 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3636 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3637 | See \`config.log' for more details" "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3638 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3639 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3640 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3642 | $as_echo "$ac_cv_objext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3643 | OBJEXT=$ac_cv_objext |
| 3644 | ac_objext=$OBJEXT |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3646 | $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] | 3647 | if ${ac_cv_c_compiler_gnu+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3648 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3649 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3651 | /* end confdefs.h. */ |
| 3652 | |
| 3653 | int |
| 3654 | main () |
| 3655 | { |
| 3656 | #ifndef __GNUC__ |
| 3657 | choke me |
| 3658 | #endif |
| 3659 | |
| 3660 | ; |
| 3661 | return 0; |
| 3662 | } |
| 3663 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3664 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3665 | ac_compiler_gnu=yes |
| 3666 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3667 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3668 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3670 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3671 | |
| 3672 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3674 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3675 | if test $ac_compiler_gnu = yes; then |
| 3676 | GCC=yes |
| 3677 | else |
| 3678 | GCC= |
| 3679 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3680 | ac_test_CFLAGS=${CFLAGS+set} |
| 3681 | ac_save_CFLAGS=$CFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3683 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3684 | if ${ac_cv_prog_cc_g+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3685 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3686 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3687 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3688 | ac_c_werror_flag=yes |
| 3689 | ac_cv_prog_cc_g=no |
| 3690 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3692 | /* end confdefs.h. */ |
| 3693 | |
| 3694 | int |
| 3695 | main () |
| 3696 | { |
| 3697 | |
| 3698 | ; |
| 3699 | return 0; |
| 3700 | } |
| 3701 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3702 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3703 | ac_cv_prog_cc_g=yes |
| 3704 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3705 | CFLAGS="" |
| 3706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3707 | /* end confdefs.h. */ |
| 3708 | |
| 3709 | int |
| 3710 | main () |
| 3711 | { |
| 3712 | |
| 3713 | ; |
| 3714 | return 0; |
| 3715 | } |
| 3716 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3717 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3718 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3719 | else |
| 3720 | ac_c_werror_flag=$ac_save_c_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3721 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3723 | /* end confdefs.h. */ |
| 3724 | |
| 3725 | int |
| 3726 | main () |
| 3727 | { |
| 3728 | |
| 3729 | ; |
| 3730 | return 0; |
| 3731 | } |
| 3732 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3733 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3734 | ac_cv_prog_cc_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3735 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3737 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3739 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3741 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3742 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3744 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3745 | if test "$ac_test_CFLAGS" = set; then |
| 3746 | CFLAGS=$ac_save_CFLAGS |
| 3747 | elif test $ac_cv_prog_cc_g = yes; then |
| 3748 | if test "$GCC" = yes; then |
| 3749 | CFLAGS="-g -O2" |
| 3750 | else |
| 3751 | CFLAGS="-g" |
| 3752 | fi |
| 3753 | else |
| 3754 | if test "$GCC" = yes; then |
| 3755 | CFLAGS="-O2" |
| 3756 | else |
| 3757 | CFLAGS= |
| 3758 | fi |
| 3759 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3761 | $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] | 3762 | if ${ac_cv_prog_cc_c89+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3763 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3764 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3765 | ac_cv_prog_cc_c89=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3766 | ac_save_CC=$CC |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3768 | /* end confdefs.h. */ |
| 3769 | #include <stdarg.h> |
| 3770 | #include <stdio.h> |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3771 | struct stat; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3772 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3773 | struct buf { int x; }; |
| 3774 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3775 | static char *e (p, i) |
| 3776 | char **p; |
| 3777 | int i; |
| 3778 | { |
| 3779 | return p[i]; |
| 3780 | } |
| 3781 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3782 | { |
| 3783 | char *s; |
| 3784 | va_list v; |
| 3785 | va_start (v,p); |
| 3786 | s = g (p, va_arg (v,int)); |
| 3787 | va_end (v); |
| 3788 | return s; |
| 3789 | } |
| 3790 | |
| 3791 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3792 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3793 | These don't provoke an error unfortunately, instead are silently treated |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3794 | as 'x'. The following induces an error, until -std is added to get |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3795 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3796 | 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] | 3797 | that's true only with -std. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3798 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3799 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3800 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3801 | inside strings and character constants. */ |
| 3802 | #define FOO(x) 'x' |
| 3803 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3804 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3805 | int test (int i, double x); |
| 3806 | struct s1 {int (*f) (int a);}; |
| 3807 | struct s2 {int (*f) (double a);}; |
| 3808 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3809 | int argc; |
| 3810 | char **argv; |
| 3811 | int |
| 3812 | main () |
| 3813 | { |
| 3814 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3815 | ; |
| 3816 | return 0; |
| 3817 | } |
| 3818 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3819 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3820 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3821 | do |
| 3822 | CC="$ac_save_CC $ac_arg" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3823 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3824 | ac_cv_prog_cc_c89=$ac_arg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3825 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3826 | rm -f core conftest.err conftest.$ac_objext |
| 3827 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3828 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3829 | rm -f conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3830 | CC=$ac_save_CC |
| 3831 | |
| 3832 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3833 | # AC_CACHE_VAL |
| 3834 | case "x$ac_cv_prog_cc_c89" in |
| 3835 | x) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3837 | $as_echo "none needed" >&6; } ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3838 | xno) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3840 | $as_echo "unsupported" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3841 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3842 | CC="$CC $ac_cv_prog_cc_c89" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3844 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3845 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3846 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3847 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3848 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3849 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3850 | ac_ext=c |
| 3851 | ac_cpp='$CPP $CPPFLAGS' |
| 3852 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3853 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3854 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3855 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3856 | ac_ext=c |
| 3857 | ac_cpp='$CPP $CPPFLAGS' |
| 3858 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3859 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3860 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 3862 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 3863 | if ${am_cv_prog_cc_c_o+:} false; then : |
| 3864 | $as_echo_n "(cached) " >&6 |
| 3865 | else |
| 3866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3867 | /* end confdefs.h. */ |
| 3868 | |
| 3869 | int |
| 3870 | main () |
| 3871 | { |
| 3872 | |
| 3873 | ; |
| 3874 | return 0; |
| 3875 | } |
| 3876 | _ACEOF |
| 3877 | # Make sure it works both with $CC and with simple cc. |
| 3878 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 3879 | # compilers refuse to overwrite an existing .o file with -o, |
| 3880 | # though they will create one. |
| 3881 | am_cv_prog_cc_c_o=yes |
| 3882 | for am_i in 1 2; do |
| 3883 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 3884 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 3885 | ac_status=$? |
| 3886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3887 | (exit $ac_status); } \ |
| 3888 | && test -f conftest2.$ac_objext; then |
| 3889 | : OK |
| 3890 | else |
| 3891 | am_cv_prog_cc_c_o=no |
| 3892 | break |
| 3893 | fi |
| 3894 | done |
| 3895 | rm -f core conftest* |
| 3896 | unset am_i |
| 3897 | fi |
| 3898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 3899 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 3900 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 3901 | # Losing compiler, so override with the script. |
| 3902 | # FIXME: It is wrong to rewrite CC. |
| 3903 | # But if we don't then we get into trouble of one sort or another. |
| 3904 | # A longer-term fix would be to have automake use am__CC in this case, |
| 3905 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 3906 | CC="$am_aux_dir/compile $CC" |
| 3907 | fi |
| 3908 | ac_ext=c |
| 3909 | ac_cpp='$CPP $CPPFLAGS' |
| 3910 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3911 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3912 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3913 | |
| 3914 | |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3915 | depcc="$CC" am_compiler_list= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3916 | |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 3918 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3919 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3920 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3921 | else |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3922 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3923 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3924 | # making bogus files that we don't know about and never remove. For |
| 3925 | # 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] | 3926 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 3927 | # in D". |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 3928 | rm -rf conftest.dir |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3929 | mkdir conftest.dir |
| 3930 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3931 | # using a relative directory. |
| 3932 | cp "$am_depcomp" conftest.dir |
| 3933 | cd conftest.dir |
| 3934 | # We will build objects and dependencies in a subdirectory because |
| 3935 | # it helps to detect inapplicable dependency modes. For instance |
| 3936 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3937 | # side effect of compilation, but ICC will put the dependencies in |
| 3938 | # the current directory while Tru64 will put them in the object |
| 3939 | # directory. |
| 3940 | mkdir sub |
| 3941 | |
| 3942 | am_cv_CC_dependencies_compiler_type=none |
| 3943 | if test "$am_compiler_list" = ""; then |
| 3944 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3945 | fi |
| 3946 | am__universal=false |
| 3947 | case " $depcc " in #( |
| 3948 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 3949 | esac |
| 3950 | |
| 3951 | for depmode in $am_compiler_list; do |
| 3952 | # Setup a source with many dependencies, because some compilers |
| 3953 | # like to wrap large dependency lists on column 80 (with \), and |
| 3954 | # we should not choose a depcomp mode which is confused by this. |
| 3955 | # |
| 3956 | # We need to recreate these files for each test, as the compiler may |
| 3957 | # overwrite some of them when testing with obscure command lines. |
| 3958 | # This happens at least with the AIX C compiler. |
| 3959 | : > sub/conftest.c |
| 3960 | for i in 1 2 3 4 5 6; do |
| 3961 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3962 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 3963 | # Solaris 10 /bin/sh. |
| 3964 | echo '/* dummy */' > sub/conftst$i.h |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3965 | done |
| 3966 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3967 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3968 | # 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] | 3969 | # 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] | 3970 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 3971 | # versions had trouble with output in subdirs. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3972 | am__obj=sub/conftest.${OBJEXT-o} |
| 3973 | am__minus_obj="-o $am__obj" |
| 3974 | case $depmode in |
| 3975 | gcc) |
| 3976 | # This depmode causes a compiler race in universal mode. |
| 3977 | test "$am__universal" = false || continue |
| 3978 | ;; |
| 3979 | nosideeffect) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3980 | # After this tag, mechanisms are not by side-effect, so they'll |
| 3981 | # only be used when explicitly requested. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 3982 | if test "x$enable_dependency_tracking" = xyes; then |
| 3983 | continue |
| 3984 | else |
| 3985 | break |
| 3986 | fi |
| 3987 | ;; |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 3988 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 3989 | # 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] | 3990 | # not run yet. These depmodes are late enough in the game, and |
| 3991 | # so weak that their functioning should not be impacted. |
| 3992 | am__obj=conftest.${OBJEXT-o} |
| 3993 | am__minus_obj= |
| 3994 | ;; |
| 3995 | none) break ;; |
| 3996 | esac |
| 3997 | if depmode=$depmode \ |
| 3998 | source=sub/conftest.c object=$am__obj \ |
| 3999 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4000 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4001 | >/dev/null 2>conftest.err && |
| 4002 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4003 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4004 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4005 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4006 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4007 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4008 | # that says an option was ignored or not supported. |
| 4009 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4010 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4011 | # The diagnosis changed in icc 8.0: |
| 4012 | # icc: Command line remark: option '-MP' not supported |
| 4013 | if (grep 'ignoring option' conftest.err || |
| 4014 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4015 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4016 | break |
| 4017 | fi |
| 4018 | fi |
| 4019 | done |
| 4020 | |
| 4021 | cd .. |
| 4022 | rm -rf conftest.dir |
| 4023 | else |
| 4024 | am_cv_CC_dependencies_compiler_type=none |
| 4025 | fi |
| 4026 | |
| 4027 | fi |
| 4028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4029 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 4030 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4031 | |
| 4032 | if |
| 4033 | test "x$enable_dependency_tracking" != xno \ |
| 4034 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4035 | am__fastdepCC_TRUE= |
| 4036 | am__fastdepCC_FALSE='#' |
| 4037 | else |
| 4038 | am__fastdepCC_TRUE='#' |
| 4039 | am__fastdepCC_FALSE= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4040 | fi |
| 4041 | |
| 4042 | |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4043 | # By default we simply use the C compiler to build assembly code. |
| 4044 | |
| 4045 | test "${CCAS+set}" = set || CCAS=$CC |
| 4046 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS |
| 4047 | |
| 4048 | |
| 4049 | |
| 4050 | depcc="$CCAS" am_compiler_list= |
| 4051 | |
| 4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4053 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4054 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4055 | $as_echo_n "(cached) " >&6 |
| 4056 | else |
| 4057 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4058 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4059 | # making bogus files that we don't know about and never remove. For |
| 4060 | # 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] | 4061 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 4062 | # in D". |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 4063 | rm -rf conftest.dir |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4064 | mkdir conftest.dir |
| 4065 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4066 | # using a relative directory. |
| 4067 | cp "$am_depcomp" conftest.dir |
| 4068 | cd conftest.dir |
| 4069 | # We will build objects and dependencies in a subdirectory because |
| 4070 | # it helps to detect inapplicable dependency modes. For instance |
| 4071 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4072 | # side effect of compilation, but ICC will put the dependencies in |
| 4073 | # the current directory while Tru64 will put them in the object |
| 4074 | # directory. |
| 4075 | mkdir sub |
| 4076 | |
| 4077 | am_cv_CCAS_dependencies_compiler_type=none |
| 4078 | if test "$am_compiler_list" = ""; then |
| 4079 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4080 | fi |
| 4081 | am__universal=false |
| 4082 | |
| 4083 | |
| 4084 | for depmode in $am_compiler_list; do |
| 4085 | # Setup a source with many dependencies, because some compilers |
| 4086 | # like to wrap large dependency lists on column 80 (with \), and |
| 4087 | # we should not choose a depcomp mode which is confused by this. |
| 4088 | # |
| 4089 | # We need to recreate these files for each test, as the compiler may |
| 4090 | # overwrite some of them when testing with obscure command lines. |
| 4091 | # This happens at least with the AIX C compiler. |
| 4092 | : > sub/conftest.c |
| 4093 | for i in 1 2 3 4 5 6; do |
| 4094 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4095 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 4096 | # Solaris 10 /bin/sh. |
| 4097 | echo '/* dummy */' > sub/conftst$i.h |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4098 | done |
| 4099 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4100 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4101 | # 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] | 4102 | # 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] | 4103 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 4104 | # versions had trouble with output in subdirs. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4105 | am__obj=sub/conftest.${OBJEXT-o} |
| 4106 | am__minus_obj="-o $am__obj" |
| 4107 | case $depmode in |
| 4108 | gcc) |
| 4109 | # This depmode causes a compiler race in universal mode. |
| 4110 | test "$am__universal" = false || continue |
| 4111 | ;; |
| 4112 | nosideeffect) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4113 | # After this tag, mechanisms are not by side-effect, so they'll |
| 4114 | # only be used when explicitly requested. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4115 | if test "x$enable_dependency_tracking" = xyes; then |
| 4116 | continue |
| 4117 | else |
| 4118 | break |
| 4119 | fi |
| 4120 | ;; |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 4121 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4122 | # 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] | 4123 | # not run yet. These depmodes are late enough in the game, and |
| 4124 | # so weak that their functioning should not be impacted. |
| 4125 | am__obj=conftest.${OBJEXT-o} |
| 4126 | am__minus_obj= |
| 4127 | ;; |
| 4128 | none) break ;; |
| 4129 | esac |
| 4130 | if depmode=$depmode \ |
| 4131 | source=sub/conftest.c object=$am__obj \ |
| 4132 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4133 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4134 | >/dev/null 2>conftest.err && |
| 4135 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4136 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4137 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4138 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4139 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4140 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4141 | # that says an option was ignored or not supported. |
| 4142 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4143 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4144 | # The diagnosis changed in icc 8.0: |
| 4145 | # icc: Command line remark: option '-MP' not supported |
| 4146 | if (grep 'ignoring option' conftest.err || |
| 4147 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4148 | am_cv_CCAS_dependencies_compiler_type=$depmode |
| 4149 | break |
| 4150 | fi |
| 4151 | fi |
| 4152 | done |
| 4153 | |
| 4154 | cd .. |
| 4155 | rm -rf conftest.dir |
| 4156 | else |
| 4157 | am_cv_CCAS_dependencies_compiler_type=none |
| 4158 | fi |
| 4159 | |
| 4160 | fi |
| 4161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 |
| 4162 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } |
| 4163 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type |
| 4164 | |
| 4165 | if |
| 4166 | test "x$enable_dependency_tracking" != xno \ |
| 4167 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then |
| 4168 | am__fastdepCCAS_TRUE= |
| 4169 | am__fastdepCCAS_FALSE='#' |
| 4170 | else |
| 4171 | am__fastdepCCAS_TRUE='#' |
| 4172 | am__fastdepCCAS_FALSE= |
| 4173 | fi |
| 4174 | |
| 4175 | |
| 4176 | ac_ext=c |
| 4177 | ac_cpp='$CPP $CPPFLAGS' |
| 4178 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4179 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4180 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4181 | if test -n "$ac_tool_prefix"; then |
| 4182 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4183 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 4184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4185 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4186 | if ${ac_cv_prog_CC+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4187 | $as_echo_n "(cached) " >&6 |
| 4188 | else |
| 4189 | if test -n "$CC"; then |
| 4190 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4191 | else |
| 4192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4193 | for as_dir in $PATH |
| 4194 | do |
| 4195 | IFS=$as_save_IFS |
| 4196 | test -z "$as_dir" && as_dir=. |
| 4197 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4198 | 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] | 4199 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 4200 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4201 | break 2 |
| 4202 | fi |
| 4203 | done |
| 4204 | done |
| 4205 | IFS=$as_save_IFS |
| 4206 | |
| 4207 | fi |
| 4208 | fi |
| 4209 | CC=$ac_cv_prog_CC |
| 4210 | if test -n "$CC"; then |
| 4211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4212 | $as_echo "$CC" >&6; } |
| 4213 | else |
| 4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4215 | $as_echo "no" >&6; } |
| 4216 | fi |
| 4217 | |
| 4218 | |
| 4219 | fi |
| 4220 | if test -z "$ac_cv_prog_CC"; then |
| 4221 | ac_ct_CC=$CC |
| 4222 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4223 | set dummy gcc; ac_word=$2 |
| 4224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4225 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4226 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4227 | $as_echo_n "(cached) " >&6 |
| 4228 | else |
| 4229 | if test -n "$ac_ct_CC"; then |
| 4230 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4231 | else |
| 4232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4233 | for as_dir in $PATH |
| 4234 | do |
| 4235 | IFS=$as_save_IFS |
| 4236 | test -z "$as_dir" && as_dir=. |
| 4237 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4238 | 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] | 4239 | ac_cv_prog_ac_ct_CC="gcc" |
| 4240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4241 | break 2 |
| 4242 | fi |
| 4243 | done |
| 4244 | done |
| 4245 | IFS=$as_save_IFS |
| 4246 | |
| 4247 | fi |
| 4248 | fi |
| 4249 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4250 | if test -n "$ac_ct_CC"; then |
| 4251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4252 | $as_echo "$ac_ct_CC" >&6; } |
| 4253 | else |
| 4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4255 | $as_echo "no" >&6; } |
| 4256 | fi |
| 4257 | |
| 4258 | if test "x$ac_ct_CC" = x; then |
| 4259 | CC="" |
| 4260 | else |
| 4261 | case $cross_compiling:$ac_tool_warned in |
| 4262 | yes:) |
| 4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4264 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4265 | ac_tool_warned=yes ;; |
| 4266 | esac |
| 4267 | CC=$ac_ct_CC |
| 4268 | fi |
| 4269 | else |
| 4270 | CC="$ac_cv_prog_CC" |
| 4271 | fi |
| 4272 | |
| 4273 | if test -z "$CC"; then |
| 4274 | if test -n "$ac_tool_prefix"; then |
| 4275 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4276 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4278 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4279 | if ${ac_cv_prog_CC+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4280 | $as_echo_n "(cached) " >&6 |
| 4281 | else |
| 4282 | if test -n "$CC"; then |
| 4283 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4284 | else |
| 4285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4286 | for as_dir in $PATH |
| 4287 | do |
| 4288 | IFS=$as_save_IFS |
| 4289 | test -z "$as_dir" && as_dir=. |
| 4290 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4291 | 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] | 4292 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 4293 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4294 | break 2 |
| 4295 | fi |
| 4296 | done |
| 4297 | done |
| 4298 | IFS=$as_save_IFS |
| 4299 | |
| 4300 | fi |
| 4301 | fi |
| 4302 | CC=$ac_cv_prog_CC |
| 4303 | if test -n "$CC"; then |
| 4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4305 | $as_echo "$CC" >&6; } |
| 4306 | else |
| 4307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4308 | $as_echo "no" >&6; } |
| 4309 | fi |
| 4310 | |
| 4311 | |
| 4312 | fi |
| 4313 | fi |
| 4314 | if test -z "$CC"; then |
| 4315 | # Extract the first word of "cc", so it can be a program name with args. |
| 4316 | set dummy cc; ac_word=$2 |
| 4317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4318 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4319 | if ${ac_cv_prog_CC+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4320 | $as_echo_n "(cached) " >&6 |
| 4321 | else |
| 4322 | if test -n "$CC"; then |
| 4323 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4324 | else |
| 4325 | ac_prog_rejected=no |
| 4326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4327 | for as_dir in $PATH |
| 4328 | do |
| 4329 | IFS=$as_save_IFS |
| 4330 | test -z "$as_dir" && as_dir=. |
| 4331 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4332 | 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] | 4333 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4334 | ac_prog_rejected=yes |
| 4335 | continue |
| 4336 | fi |
| 4337 | ac_cv_prog_CC="cc" |
| 4338 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4339 | break 2 |
| 4340 | fi |
| 4341 | done |
| 4342 | done |
| 4343 | IFS=$as_save_IFS |
| 4344 | |
| 4345 | if test $ac_prog_rejected = yes; then |
| 4346 | # We found a bogon in the path, so make sure we never use it. |
| 4347 | set dummy $ac_cv_prog_CC |
| 4348 | shift |
| 4349 | if test $# != 0; then |
| 4350 | # We chose a different compiler from the bogus one. |
| 4351 | # However, it has the same basename, so the bogon will be chosen |
| 4352 | # first if we set CC to just the basename; use the full file name. |
| 4353 | shift |
| 4354 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4355 | fi |
| 4356 | fi |
| 4357 | fi |
| 4358 | fi |
| 4359 | CC=$ac_cv_prog_CC |
| 4360 | if test -n "$CC"; then |
| 4361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4362 | $as_echo "$CC" >&6; } |
| 4363 | else |
| 4364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4365 | $as_echo "no" >&6; } |
| 4366 | fi |
| 4367 | |
| 4368 | |
| 4369 | fi |
| 4370 | if test -z "$CC"; then |
| 4371 | if test -n "$ac_tool_prefix"; then |
| 4372 | for ac_prog in cl.exe |
| 4373 | do |
| 4374 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4375 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4377 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4378 | if ${ac_cv_prog_CC+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4379 | $as_echo_n "(cached) " >&6 |
| 4380 | else |
| 4381 | if test -n "$CC"; then |
| 4382 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4383 | else |
| 4384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4385 | for as_dir in $PATH |
| 4386 | do |
| 4387 | IFS=$as_save_IFS |
| 4388 | test -z "$as_dir" && as_dir=. |
| 4389 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4390 | 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] | 4391 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4392 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4393 | break 2 |
| 4394 | fi |
| 4395 | done |
| 4396 | done |
| 4397 | IFS=$as_save_IFS |
| 4398 | |
| 4399 | fi |
| 4400 | fi |
| 4401 | CC=$ac_cv_prog_CC |
| 4402 | if test -n "$CC"; then |
| 4403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4404 | $as_echo "$CC" >&6; } |
| 4405 | else |
| 4406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4407 | $as_echo "no" >&6; } |
| 4408 | fi |
| 4409 | |
| 4410 | |
| 4411 | test -n "$CC" && break |
| 4412 | done |
| 4413 | fi |
| 4414 | if test -z "$CC"; then |
| 4415 | ac_ct_CC=$CC |
| 4416 | for ac_prog in cl.exe |
| 4417 | do |
| 4418 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4419 | set dummy $ac_prog; ac_word=$2 |
| 4420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4421 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4422 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4423 | $as_echo_n "(cached) " >&6 |
| 4424 | else |
| 4425 | if test -n "$ac_ct_CC"; then |
| 4426 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4427 | else |
| 4428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4429 | for as_dir in $PATH |
| 4430 | do |
| 4431 | IFS=$as_save_IFS |
| 4432 | test -z "$as_dir" && as_dir=. |
| 4433 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4434 | 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] | 4435 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4437 | break 2 |
| 4438 | fi |
| 4439 | done |
| 4440 | done |
| 4441 | IFS=$as_save_IFS |
| 4442 | |
| 4443 | fi |
| 4444 | fi |
| 4445 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4446 | if test -n "$ac_ct_CC"; then |
| 4447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4448 | $as_echo "$ac_ct_CC" >&6; } |
| 4449 | else |
| 4450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4451 | $as_echo "no" >&6; } |
| 4452 | fi |
| 4453 | |
| 4454 | |
| 4455 | test -n "$ac_ct_CC" && break |
| 4456 | done |
| 4457 | |
| 4458 | if test "x$ac_ct_CC" = x; then |
| 4459 | CC="" |
| 4460 | else |
| 4461 | case $cross_compiling:$ac_tool_warned in |
| 4462 | yes:) |
| 4463 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4464 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4465 | ac_tool_warned=yes ;; |
| 4466 | esac |
| 4467 | CC=$ac_ct_CC |
| 4468 | fi |
| 4469 | fi |
| 4470 | |
| 4471 | fi |
| 4472 | |
| 4473 | |
| 4474 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4475 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4476 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4477 | See \`config.log' for more details" "$LINENO" 5; } |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4478 | |
| 4479 | # Provide some information about the compiler. |
| 4480 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4481 | set X $ac_compile |
| 4482 | ac_compiler=$2 |
| 4483 | for ac_option in --version -v -V -qversion; do |
| 4484 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4485 | case "(($ac_try" in |
| 4486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4487 | *) ac_try_echo=$ac_try;; |
| 4488 | esac |
| 4489 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4490 | $as_echo "$ac_try_echo"; } >&5 |
| 4491 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4492 | ac_status=$? |
| 4493 | if test -s conftest.err; then |
| 4494 | sed '10a\ |
| 4495 | ... rest of stderr output deleted ... |
| 4496 | 10q' conftest.err >conftest.er1 |
| 4497 | cat conftest.er1 >&5 |
| 4498 | fi |
| 4499 | rm -f conftest.er1 conftest.err |
| 4500 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4501 | test $ac_status = 0; } |
| 4502 | done |
| 4503 | |
| 4504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4505 | $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] | 4506 | if ${ac_cv_c_compiler_gnu+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4507 | $as_echo_n "(cached) " >&6 |
| 4508 | else |
| 4509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4510 | /* end confdefs.h. */ |
| 4511 | |
| 4512 | int |
| 4513 | main () |
| 4514 | { |
| 4515 | #ifndef __GNUC__ |
| 4516 | choke me |
| 4517 | #endif |
| 4518 | |
| 4519 | ; |
| 4520 | return 0; |
| 4521 | } |
| 4522 | _ACEOF |
| 4523 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4524 | ac_compiler_gnu=yes |
| 4525 | else |
| 4526 | ac_compiler_gnu=no |
| 4527 | fi |
| 4528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4529 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4530 | |
| 4531 | fi |
| 4532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4533 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4534 | if test $ac_compiler_gnu = yes; then |
| 4535 | GCC=yes |
| 4536 | else |
| 4537 | GCC= |
| 4538 | fi |
| 4539 | ac_test_CFLAGS=${CFLAGS+set} |
| 4540 | ac_save_CFLAGS=$CFLAGS |
| 4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4542 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4543 | if ${ac_cv_prog_cc_g+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4544 | $as_echo_n "(cached) " >&6 |
| 4545 | else |
| 4546 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4547 | ac_c_werror_flag=yes |
| 4548 | ac_cv_prog_cc_g=no |
| 4549 | CFLAGS="-g" |
| 4550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4551 | /* end confdefs.h. */ |
| 4552 | |
| 4553 | int |
| 4554 | main () |
| 4555 | { |
| 4556 | |
| 4557 | ; |
| 4558 | return 0; |
| 4559 | } |
| 4560 | _ACEOF |
| 4561 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4562 | ac_cv_prog_cc_g=yes |
| 4563 | else |
| 4564 | CFLAGS="" |
| 4565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4566 | /* end confdefs.h. */ |
| 4567 | |
| 4568 | int |
| 4569 | main () |
| 4570 | { |
| 4571 | |
| 4572 | ; |
| 4573 | return 0; |
| 4574 | } |
| 4575 | _ACEOF |
| 4576 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4577 | |
| 4578 | else |
| 4579 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4580 | CFLAGS="-g" |
| 4581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4582 | /* end confdefs.h. */ |
| 4583 | |
| 4584 | int |
| 4585 | main () |
| 4586 | { |
| 4587 | |
| 4588 | ; |
| 4589 | return 0; |
| 4590 | } |
| 4591 | _ACEOF |
| 4592 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4593 | ac_cv_prog_cc_g=yes |
| 4594 | fi |
| 4595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4596 | fi |
| 4597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4598 | fi |
| 4599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4600 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4601 | fi |
| 4602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4603 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4604 | if test "$ac_test_CFLAGS" = set; then |
| 4605 | CFLAGS=$ac_save_CFLAGS |
| 4606 | elif test $ac_cv_prog_cc_g = yes; then |
| 4607 | if test "$GCC" = yes; then |
| 4608 | CFLAGS="-g -O2" |
| 4609 | else |
| 4610 | CFLAGS="-g" |
| 4611 | fi |
| 4612 | else |
| 4613 | if test "$GCC" = yes; then |
| 4614 | CFLAGS="-O2" |
| 4615 | else |
| 4616 | CFLAGS= |
| 4617 | fi |
| 4618 | fi |
| 4619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4620 | $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] | 4621 | if ${ac_cv_prog_cc_c89+:} false; then : |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4622 | $as_echo_n "(cached) " >&6 |
| 4623 | else |
| 4624 | ac_cv_prog_cc_c89=no |
| 4625 | ac_save_CC=$CC |
| 4626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4627 | /* end confdefs.h. */ |
| 4628 | #include <stdarg.h> |
| 4629 | #include <stdio.h> |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4630 | struct stat; |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 4631 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4632 | struct buf { int x; }; |
| 4633 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4634 | static char *e (p, i) |
| 4635 | char **p; |
| 4636 | int i; |
| 4637 | { |
| 4638 | return p[i]; |
| 4639 | } |
| 4640 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4641 | { |
| 4642 | char *s; |
| 4643 | va_list v; |
| 4644 | va_start (v,p); |
| 4645 | s = g (p, va_arg (v,int)); |
| 4646 | va_end (v); |
| 4647 | return s; |
| 4648 | } |
| 4649 | |
| 4650 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4651 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4652 | These don't provoke an error unfortunately, instead are silently treated |
| 4653 | as 'x'. The following induces an error, until -std is added to get |
| 4654 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4655 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4656 | that's true only with -std. */ |
| 4657 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4658 | |
| 4659 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4660 | inside strings and character constants. */ |
| 4661 | #define FOO(x) 'x' |
| 4662 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4663 | |
| 4664 | int test (int i, double x); |
| 4665 | struct s1 {int (*f) (int a);}; |
| 4666 | struct s2 {int (*f) (double a);}; |
| 4667 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4668 | int argc; |
| 4669 | char **argv; |
| 4670 | int |
| 4671 | main () |
| 4672 | { |
| 4673 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4674 | ; |
| 4675 | return 0; |
| 4676 | } |
| 4677 | _ACEOF |
| 4678 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4679 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4680 | do |
| 4681 | CC="$ac_save_CC $ac_arg" |
| 4682 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4683 | ac_cv_prog_cc_c89=$ac_arg |
| 4684 | fi |
| 4685 | rm -f core conftest.err conftest.$ac_objext |
| 4686 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4687 | done |
| 4688 | rm -f conftest.$ac_ext |
| 4689 | CC=$ac_save_CC |
| 4690 | |
| 4691 | fi |
| 4692 | # AC_CACHE_VAL |
| 4693 | case "x$ac_cv_prog_cc_c89" in |
| 4694 | x) |
| 4695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4696 | $as_echo "none needed" >&6; } ;; |
| 4697 | xno) |
| 4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4699 | $as_echo "unsupported" >&6; } ;; |
| 4700 | *) |
| 4701 | CC="$CC $ac_cv_prog_cc_c89" |
| 4702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4703 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4704 | esac |
| 4705 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4706 | |
| 4707 | fi |
| 4708 | |
| 4709 | ac_ext=c |
| 4710 | ac_cpp='$CPP $CPPFLAGS' |
| 4711 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4712 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4713 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4714 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4715 | ac_ext=c |
| 4716 | ac_cpp='$CPP $CPPFLAGS' |
| 4717 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4718 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4719 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 4721 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 4722 | if ${am_cv_prog_cc_c_o+:} false; then : |
| 4723 | $as_echo_n "(cached) " >&6 |
| 4724 | else |
| 4725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4726 | /* end confdefs.h. */ |
| 4727 | |
| 4728 | int |
| 4729 | main () |
| 4730 | { |
| 4731 | |
| 4732 | ; |
| 4733 | return 0; |
| 4734 | } |
| 4735 | _ACEOF |
| 4736 | # Make sure it works both with $CC and with simple cc. |
| 4737 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 4738 | # compilers refuse to overwrite an existing .o file with -o, |
| 4739 | # though they will create one. |
| 4740 | am_cv_prog_cc_c_o=yes |
| 4741 | for am_i in 1 2; do |
| 4742 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 4743 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 4744 | ac_status=$? |
| 4745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4746 | (exit $ac_status); } \ |
| 4747 | && test -f conftest2.$ac_objext; then |
| 4748 | : OK |
| 4749 | else |
| 4750 | am_cv_prog_cc_c_o=no |
| 4751 | break |
| 4752 | fi |
| 4753 | done |
| 4754 | rm -f core conftest* |
| 4755 | unset am_i |
| 4756 | fi |
| 4757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 4758 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 4759 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 4760 | # Losing compiler, so override with the script. |
| 4761 | # FIXME: It is wrong to rewrite CC. |
| 4762 | # But if we don't then we get into trouble of one sort or another. |
| 4763 | # A longer-term fix would be to have automake use am__CC in this case, |
| 4764 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 4765 | CC="$am_aux_dir/compile $CC" |
| 4766 | fi |
| 4767 | ac_ext=c |
| 4768 | ac_cpp='$CPP $CPPFLAGS' |
| 4769 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4770 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4771 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4772 | |
| 4773 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4774 | depcc="$CC" am_compiler_list= |
| 4775 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4777 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4778 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4779 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4780 | else |
| 4781 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4782 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4783 | # making bogus files that we don't know about and never remove. For |
| 4784 | # 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] | 4785 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 4786 | # in D". |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 4787 | rm -rf conftest.dir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4788 | mkdir conftest.dir |
| 4789 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4790 | # using a relative directory. |
| 4791 | cp "$am_depcomp" conftest.dir |
| 4792 | cd conftest.dir |
| 4793 | # We will build objects and dependencies in a subdirectory because |
| 4794 | # it helps to detect inapplicable dependency modes. For instance |
| 4795 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4796 | # side effect of compilation, but ICC will put the dependencies in |
| 4797 | # the current directory while Tru64 will put them in the object |
| 4798 | # directory. |
| 4799 | mkdir sub |
| 4800 | |
| 4801 | am_cv_CC_dependencies_compiler_type=none |
| 4802 | if test "$am_compiler_list" = ""; then |
| 4803 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4804 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4805 | am__universal=false |
| 4806 | case " $depcc " in #( |
| 4807 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4808 | esac |
| 4809 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4810 | for depmode in $am_compiler_list; do |
| 4811 | # Setup a source with many dependencies, because some compilers |
| 4812 | # like to wrap large dependency lists on column 80 (with \), and |
| 4813 | # we should not choose a depcomp mode which is confused by this. |
| 4814 | # |
| 4815 | # We need to recreate these files for each test, as the compiler may |
| 4816 | # overwrite some of them when testing with obscure command lines. |
| 4817 | # This happens at least with the AIX C compiler. |
| 4818 | : > sub/conftest.c |
| 4819 | for i in 1 2 3 4 5 6; do |
| 4820 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4821 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 4822 | # Solaris 10 /bin/sh. |
| 4823 | echo '/* dummy */' > sub/conftst$i.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4824 | done |
| 4825 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4826 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4827 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4828 | # 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] | 4829 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 4830 | # versions had trouble with output in subdirs. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4831 | am__obj=sub/conftest.${OBJEXT-o} |
| 4832 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4833 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4834 | gcc) |
| 4835 | # This depmode causes a compiler race in universal mode. |
| 4836 | test "$am__universal" = false || continue |
| 4837 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4838 | nosideeffect) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4839 | # After this tag, mechanisms are not by side-effect, so they'll |
| 4840 | # only be used when explicitly requested. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4841 | if test "x$enable_dependency_tracking" = xyes; then |
| 4842 | continue |
| 4843 | else |
| 4844 | break |
| 4845 | fi |
| 4846 | ;; |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 4847 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4848 | # This compiler won't grok '-c -o', but also, the minuso test has |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4849 | # not run yet. These depmodes are late enough in the game, and |
| 4850 | # so weak that their functioning should not be impacted. |
| 4851 | am__obj=conftest.${OBJEXT-o} |
| 4852 | am__minus_obj= |
| 4853 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4854 | none) break ;; |
| 4855 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4856 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4857 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4858 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4859 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4860 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4861 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4862 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4863 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4864 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4865 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4866 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4867 | # that says an option was ignored or not supported. |
| 4868 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4869 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4870 | # The diagnosis changed in icc 8.0: |
| 4871 | # icc: Command line remark: option '-MP' not supported |
| 4872 | if (grep 'ignoring option' conftest.err || |
| 4873 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4874 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4875 | break |
| 4876 | fi |
| 4877 | fi |
| 4878 | done |
| 4879 | |
| 4880 | cd .. |
| 4881 | rm -rf conftest.dir |
| 4882 | else |
| 4883 | am_cv_CC_dependencies_compiler_type=none |
| 4884 | fi |
| 4885 | |
| 4886 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4888 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4889 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4890 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4891 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4892 | test "x$enable_dependency_tracking" != xno \ |
| 4893 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4894 | am__fastdepCC_TRUE= |
| 4895 | am__fastdepCC_FALSE='#' |
| 4896 | else |
| 4897 | am__fastdepCC_TRUE='#' |
| 4898 | am__fastdepCC_FALSE= |
| 4899 | fi |
| 4900 | |
| 4901 | |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 4902 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4903 | ac_ext=c |
| 4904 | ac_cpp='$CPP $CPPFLAGS' |
| 4905 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4906 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4907 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4909 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4910 | # On Suns, sometimes $CPP names a directory. |
| 4911 | if test -n "$CPP" && test -d "$CPP"; then |
| 4912 | CPP= |
| 4913 | fi |
| 4914 | if test -z "$CPP"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4915 | if ${ac_cv_prog_CPP+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4916 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4917 | else |
| 4918 | # Double quotes because CPP needs to be expanded |
| 4919 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4920 | do |
| 4921 | ac_preproc_ok=false |
| 4922 | for ac_c_preproc_warn_flag in '' yes |
| 4923 | do |
| 4924 | # Use a header file that comes with gcc, so configuring glibc |
| 4925 | # with a fresh cross-compiler works. |
| 4926 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4927 | # <limits.h> exists even on freestanding compilers. |
| 4928 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4929 | # not just through cpp. "Syntax error" is here to catch this case. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4931 | /* end confdefs.h. */ |
| 4932 | #ifdef __STDC__ |
| 4933 | # include <limits.h> |
| 4934 | #else |
| 4935 | # include <assert.h> |
| 4936 | #endif |
| 4937 | Syntax error |
| 4938 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4939 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4940 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4941 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4942 | # Broken: fails on valid input. |
| 4943 | continue |
| 4944 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4945 | rm -f conftest.err conftest.i conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4946 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4947 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4948 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4950 | /* end confdefs.h. */ |
| 4951 | #include <ac_nonexistent.h> |
| 4952 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4953 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4954 | # Broken: success on invalid input. |
| 4955 | continue |
| 4956 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4957 | # Passes both tests. |
| 4958 | ac_preproc_ok=: |
| 4959 | break |
| 4960 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4961 | rm -f conftest.err conftest.i conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4962 | |
| 4963 | done |
| 4964 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 4965 | rm -f conftest.i conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4966 | if $ac_preproc_ok; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4967 | break |
| 4968 | fi |
| 4969 | |
| 4970 | done |
| 4971 | ac_cv_prog_CPP=$CPP |
| 4972 | |
| 4973 | fi |
| 4974 | CPP=$ac_cv_prog_CPP |
| 4975 | else |
| 4976 | ac_cv_prog_CPP=$CPP |
| 4977 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4979 | $as_echo "$CPP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4980 | ac_preproc_ok=false |
| 4981 | for ac_c_preproc_warn_flag in '' yes |
| 4982 | do |
| 4983 | # Use a header file that comes with gcc, so configuring glibc |
| 4984 | # with a fresh cross-compiler works. |
| 4985 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4986 | # <limits.h> exists even on freestanding compilers. |
| 4987 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4988 | # not just through cpp. "Syntax error" is here to catch this case. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4990 | /* end confdefs.h. */ |
| 4991 | #ifdef __STDC__ |
| 4992 | # include <limits.h> |
| 4993 | #else |
| 4994 | # include <assert.h> |
| 4995 | #endif |
| 4996 | Syntax error |
| 4997 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4998 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4999 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5000 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5001 | # Broken: fails on valid input. |
| 5002 | continue |
| 5003 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5004 | rm -f conftest.err conftest.i conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5005 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5006 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5007 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5009 | /* end confdefs.h. */ |
| 5010 | #include <ac_nonexistent.h> |
| 5011 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5012 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5013 | # Broken: success on invalid input. |
| 5014 | continue |
| 5015 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5016 | # Passes both tests. |
| 5017 | ac_preproc_ok=: |
| 5018 | break |
| 5019 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5020 | rm -f conftest.err conftest.i conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5021 | |
| 5022 | done |
| 5023 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5024 | rm -f conftest.i conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5025 | if $ac_preproc_ok; then : |
| 5026 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5027 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5028 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5029 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5030 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 5031 | See \`config.log' for more details" "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5032 | fi |
| 5033 | |
| 5034 | ac_ext=c |
| 5035 | ac_cpp='$CPP $CPPFLAGS' |
| 5036 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5037 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5038 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5039 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5040 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5041 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5042 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5043 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5044 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5045 | if test -z "$CXX"; then |
| 5046 | if test -n "$CCC"; then |
| 5047 | CXX=$CCC |
| 5048 | else |
| 5049 | if test -n "$ac_tool_prefix"; then |
| 5050 | 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] | 5051 | do |
| 5052 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5053 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5055 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5056 | if ${ac_cv_prog_CXX+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5057 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5058 | else |
| 5059 | if test -n "$CXX"; then |
| 5060 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5061 | else |
| 5062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5063 | for as_dir in $PATH |
| 5064 | do |
| 5065 | IFS=$as_save_IFS |
| 5066 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5067 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5068 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5069 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5070 | $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] | 5071 | break 2 |
| 5072 | fi |
| 5073 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5074 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5075 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5076 | |
| 5077 | fi |
| 5078 | fi |
| 5079 | CXX=$ac_cv_prog_CXX |
| 5080 | if test -n "$CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 5082 | $as_echo "$CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5083 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5085 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5086 | fi |
| 5087 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5088 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5089 | test -n "$CXX" && break |
| 5090 | done |
| 5091 | fi |
| 5092 | if test -z "$CXX"; then |
| 5093 | ac_ct_CXX=$CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5094 | 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] | 5095 | do |
| 5096 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5097 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5099 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5100 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5101 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5102 | else |
| 5103 | if test -n "$ac_ct_CXX"; then |
| 5104 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5105 | else |
| 5106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5107 | for as_dir in $PATH |
| 5108 | do |
| 5109 | IFS=$as_save_IFS |
| 5110 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5111 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5112 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5113 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5114 | $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] | 5115 | break 2 |
| 5116 | fi |
| 5117 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5118 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5119 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5120 | |
| 5121 | fi |
| 5122 | fi |
| 5123 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5124 | if test -n "$ac_ct_CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 5126 | $as_echo "$ac_ct_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5127 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5129 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5130 | fi |
| 5131 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5132 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5133 | test -n "$ac_ct_CXX" && break |
| 5134 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5135 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5136 | if test "x$ac_ct_CXX" = x; then |
| 5137 | CXX="g++" |
| 5138 | else |
| 5139 | case $cross_compiling:$ac_tool_warned in |
| 5140 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5141 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5142 | $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] | 5143 | ac_tool_warned=yes ;; |
| 5144 | esac |
| 5145 | CXX=$ac_ct_CXX |
| 5146 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5147 | fi |
| 5148 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5149 | fi |
| 5150 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5151 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5152 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 5153 | set X $ac_compile |
| 5154 | ac_compiler=$2 |
| 5155 | for ac_option in --version -v -V -qversion; do |
| 5156 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5157 | case "(($ac_try" in |
| 5158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5159 | *) ac_try_echo=$ac_try;; |
| 5160 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5161 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5162 | $as_echo "$ac_try_echo"; } >&5 |
| 5163 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5164 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5165 | if test -s conftest.err; then |
| 5166 | sed '10a\ |
| 5167 | ... rest of stderr output deleted ... |
| 5168 | 10q' conftest.err >conftest.er1 |
| 5169 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5170 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 5171 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5172 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5173 | test $ac_status = 0; } |
| 5174 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5175 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 5177 | $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] | 5178 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5179 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5180 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5182 | /* end confdefs.h. */ |
| 5183 | |
| 5184 | int |
| 5185 | main () |
| 5186 | { |
| 5187 | #ifndef __GNUC__ |
| 5188 | choke me |
| 5189 | #endif |
| 5190 | |
| 5191 | ; |
| 5192 | return 0; |
| 5193 | } |
| 5194 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5195 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5196 | ac_compiler_gnu=yes |
| 5197 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5198 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5199 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5201 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5202 | |
| 5203 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5205 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 5206 | if test $ac_compiler_gnu = yes; then |
| 5207 | GXX=yes |
| 5208 | else |
| 5209 | GXX= |
| 5210 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5211 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5212 | ac_save_CXXFLAGS=$CXXFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 5214 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5215 | if ${ac_cv_prog_cxx_g+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5216 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5217 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5218 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 5219 | ac_cxx_werror_flag=yes |
| 5220 | ac_cv_prog_cxx_g=no |
| 5221 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5223 | /* end confdefs.h. */ |
| 5224 | |
| 5225 | int |
| 5226 | main () |
| 5227 | { |
| 5228 | |
| 5229 | ; |
| 5230 | return 0; |
| 5231 | } |
| 5232 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5233 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5234 | ac_cv_prog_cxx_g=yes |
| 5235 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5236 | CXXFLAGS="" |
| 5237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5238 | /* end confdefs.h. */ |
| 5239 | |
| 5240 | int |
| 5241 | main () |
| 5242 | { |
| 5243 | |
| 5244 | ; |
| 5245 | return 0; |
| 5246 | } |
| 5247 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5248 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5249 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5250 | else |
| 5251 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5252 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5254 | /* end confdefs.h. */ |
| 5255 | |
| 5256 | int |
| 5257 | main () |
| 5258 | { |
| 5259 | |
| 5260 | ; |
| 5261 | return 0; |
| 5262 | } |
| 5263 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5264 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5265 | ac_cv_prog_cxx_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5266 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5268 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5270 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5272 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5273 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 5275 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5276 | if test "$ac_test_CXXFLAGS" = set; then |
| 5277 | CXXFLAGS=$ac_save_CXXFLAGS |
| 5278 | elif test $ac_cv_prog_cxx_g = yes; then |
| 5279 | if test "$GXX" = yes; then |
| 5280 | CXXFLAGS="-g -O2" |
| 5281 | else |
| 5282 | CXXFLAGS="-g" |
| 5283 | fi |
| 5284 | else |
| 5285 | if test "$GXX" = yes; then |
| 5286 | CXXFLAGS="-O2" |
| 5287 | else |
| 5288 | CXXFLAGS= |
| 5289 | fi |
| 5290 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5291 | ac_ext=c |
| 5292 | ac_cpp='$CPP $CPPFLAGS' |
| 5293 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5294 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5295 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5296 | |
| 5297 | depcc="$CXX" am_compiler_list= |
| 5298 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 5300 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5301 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5302 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5303 | else |
| 5304 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5305 | # We make a subdir and do the tests there. Otherwise we can end up |
| 5306 | # making bogus files that we don't know about and never remove. For |
| 5307 | # 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] | 5308 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 5309 | # in D". |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 5310 | rm -rf conftest.dir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5311 | mkdir conftest.dir |
| 5312 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 5313 | # using a relative directory. |
| 5314 | cp "$am_depcomp" conftest.dir |
| 5315 | cd conftest.dir |
| 5316 | # We will build objects and dependencies in a subdirectory because |
| 5317 | # it helps to detect inapplicable dependency modes. For instance |
| 5318 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 5319 | # side effect of compilation, but ICC will put the dependencies in |
| 5320 | # the current directory while Tru64 will put them in the object |
| 5321 | # directory. |
| 5322 | mkdir sub |
| 5323 | |
| 5324 | am_cv_CXX_dependencies_compiler_type=none |
| 5325 | if test "$am_compiler_list" = ""; then |
| 5326 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5327 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5328 | am__universal=false |
| 5329 | case " $depcc " in #( |
| 5330 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 5331 | esac |
| 5332 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5333 | for depmode in $am_compiler_list; do |
| 5334 | # Setup a source with many dependencies, because some compilers |
| 5335 | # like to wrap large dependency lists on column 80 (with \), and |
| 5336 | # we should not choose a depcomp mode which is confused by this. |
| 5337 | # |
| 5338 | # We need to recreate these files for each test, as the compiler may |
| 5339 | # overwrite some of them when testing with obscure command lines. |
| 5340 | # This happens at least with the AIX C compiler. |
| 5341 | : > sub/conftest.c |
| 5342 | for i in 1 2 3 4 5 6; do |
| 5343 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5344 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 5345 | # Solaris 10 /bin/sh. |
| 5346 | echo '/* dummy */' > sub/conftst$i.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5347 | done |
| 5348 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5349 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5350 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5351 | # 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] | 5352 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 5353 | # versions had trouble with output in subdirs. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5354 | am__obj=sub/conftest.${OBJEXT-o} |
| 5355 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5356 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5357 | gcc) |
| 5358 | # This depmode causes a compiler race in universal mode. |
| 5359 | test "$am__universal" = false || continue |
| 5360 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5361 | nosideeffect) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5362 | # After this tag, mechanisms are not by side-effect, so they'll |
| 5363 | # only be used when explicitly requested. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5364 | if test "x$enable_dependency_tracking" = xyes; then |
| 5365 | continue |
| 5366 | else |
| 5367 | break |
| 5368 | fi |
| 5369 | ;; |
digit@chromium.org | 5bce3b4 | 2013-09-25 13:47:44 +0000 | [diff] [blame] | 5370 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5371 | # This compiler won't grok '-c -o', but also, the minuso test has |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5372 | # not run yet. These depmodes are late enough in the game, and |
| 5373 | # so weak that their functioning should not be impacted. |
| 5374 | am__obj=conftest.${OBJEXT-o} |
| 5375 | am__minus_obj= |
| 5376 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5377 | none) break ;; |
| 5378 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5379 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5380 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5381 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5382 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5383 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5384 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5385 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5386 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5387 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5388 | # icc doesn't choke on unknown options, it will just issue warnings |
| 5389 | # or remarks (even with -Werror). So we grep stderr for any message |
| 5390 | # that says an option was ignored or not supported. |
| 5391 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5392 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 5393 | # The diagnosis changed in icc 8.0: |
| 5394 | # icc: Command line remark: option '-MP' not supported |
| 5395 | if (grep 'ignoring option' conftest.err || |
| 5396 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5397 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 5398 | break |
| 5399 | fi |
| 5400 | fi |
| 5401 | done |
| 5402 | |
| 5403 | cd .. |
| 5404 | rm -rf conftest.dir |
| 5405 | else |
| 5406 | am_cv_CXX_dependencies_compiler_type=none |
| 5407 | fi |
| 5408 | |
| 5409 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 5411 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5412 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 5413 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 5414 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5415 | test "x$enable_dependency_tracking" != xno \ |
| 5416 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 5417 | am__fastdepCXX_TRUE= |
| 5418 | am__fastdepCXX_FALSE='#' |
| 5419 | else |
| 5420 | am__fastdepCXX_TRUE='#' |
| 5421 | am__fastdepCXX_FALSE= |
| 5422 | fi |
| 5423 | |
| 5424 | |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5425 | if test -n "$ac_tool_prefix"; then |
| 5426 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5427 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5429 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5430 | if ${ac_cv_prog_RANLIB+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5431 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5432 | else |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5433 | if test -n "$RANLIB"; then |
| 5434 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5435 | else |
| 5436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5437 | for as_dir in $PATH |
| 5438 | do |
| 5439 | IFS=$as_save_IFS |
| 5440 | test -z "$as_dir" && as_dir=. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5441 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5442 | 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] | 5443 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5445 | break 2 |
| 5446 | fi |
| 5447 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5448 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5449 | IFS=$as_save_IFS |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5450 | |
| 5451 | fi |
| 5452 | fi |
| 5453 | RANLIB=$ac_cv_prog_RANLIB |
| 5454 | if test -n "$RANLIB"; then |
| 5455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5456 | $as_echo "$RANLIB" >&6; } |
| 5457 | else |
| 5458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5459 | $as_echo "no" >&6; } |
| 5460 | fi |
| 5461 | |
| 5462 | |
| 5463 | fi |
| 5464 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5465 | ac_ct_RANLIB=$RANLIB |
| 5466 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5467 | set dummy ranlib; ac_word=$2 |
| 5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5469 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5470 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5471 | $as_echo_n "(cached) " >&6 |
| 5472 | else |
| 5473 | if test -n "$ac_ct_RANLIB"; then |
| 5474 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5475 | else |
| 5476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5477 | for as_dir in $PATH |
| 5478 | do |
| 5479 | IFS=$as_save_IFS |
| 5480 | test -z "$as_dir" && as_dir=. |
| 5481 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5482 | 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] | 5483 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5484 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5485 | break 2 |
| 5486 | fi |
| 5487 | done |
| 5488 | done |
| 5489 | IFS=$as_save_IFS |
| 5490 | |
| 5491 | fi |
| 5492 | fi |
| 5493 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5494 | if test -n "$ac_ct_RANLIB"; then |
| 5495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 5496 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 5497 | else |
| 5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5499 | $as_echo "no" >&6; } |
| 5500 | fi |
| 5501 | |
| 5502 | if test "x$ac_ct_RANLIB" = x; then |
| 5503 | RANLIB=":" |
| 5504 | else |
| 5505 | case $cross_compiling:$ac_tool_warned in |
| 5506 | yes:) |
| 5507 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5508 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5509 | ac_tool_warned=yes ;; |
| 5510 | esac |
| 5511 | RANLIB=$ac_ct_RANLIB |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5512 | fi |
| 5513 | else |
ted.mielczarek | d192a71 | 2010-10-05 19:38:51 +0000 | [diff] [blame] | 5514 | RANLIB="$ac_cv_prog_RANLIB" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5515 | fi |
| 5516 | |
ivan.penkov@gmail.com | 5f6e1f0 | 2012-07-02 22:55:57 +0000 | [diff] [blame] | 5517 | if test "$GCC" = yes; then |
| 5518 | GCC_TRUE= |
| 5519 | GCC_FALSE='#' |
| 5520 | else |
| 5521 | GCC_TRUE='#' |
| 5522 | GCC_FALSE= |
| 5523 | fi |
| 5524 | # let the Makefile know if we're gcc |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5525 | |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 5526 | # Check whether --enable-m32 was given. |
| 5527 | if test "${enable_m32+set}" = set; then : |
| 5528 | enableval=$enable_m32; case "${enableval}" in |
| 5529 | yes) |
| 5530 | CFLAGS="${CFLAGS} -m32" |
| 5531 | CXXFLAGS="${CXXFLAGS} -m32" |
| 5532 | usem32=true |
| 5533 | ;; |
| 5534 | no) |
| 5535 | usem32=false |
| 5536 | ;; |
| 5537 | *) |
| 5538 | as_fn_error $? "bad value ${enableval} for --enable-m32" "$LINENO" 5 |
| 5539 | ;; |
| 5540 | esac |
| 5541 | else |
| 5542 | usem32=false |
| 5543 | fi |
| 5544 | |
| 5545 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5546 | |
| 5547 | |
| 5548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 5549 | $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] | 5550 | if ${ac_cv_path_GREP+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5551 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5552 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5553 | if test -z "$GREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5554 | ac_path_GREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5555 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5557 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5558 | do |
| 5559 | IFS=$as_save_IFS |
| 5560 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5561 | for ac_prog in grep ggrep; do |
| 5562 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5563 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5564 | as_fn_executable_p "$ac_path_GREP" || continue |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5565 | # Check for GNU ac_path_GREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5566 | # Check for GNU $ac_path_GREP |
| 5567 | case `"$ac_path_GREP" --version 2>&1` in |
| 5568 | *GNU*) |
| 5569 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5570 | *) |
| 5571 | ac_count=0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5572 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5573 | while : |
| 5574 | do |
| 5575 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5576 | mv "conftest.tmp" "conftest.in" |
| 5577 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5578 | $as_echo 'GREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5579 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5580 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5581 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5582 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5583 | # Best one so far, save it but keep looking for a better one |
| 5584 | ac_cv_path_GREP="$ac_path_GREP" |
| 5585 | ac_path_GREP_max=$ac_count |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5586 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5587 | # 10*(2^10) chars as input seems more than enough |
| 5588 | test $ac_count -gt 10 && break |
| 5589 | done |
| 5590 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5591 | esac |
| 5592 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5593 | $ac_path_GREP_found && break 3 |
| 5594 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5595 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5596 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5597 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5598 | if test -z "$ac_cv_path_GREP"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5599 | 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] | 5600 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5601 | else |
| 5602 | ac_cv_path_GREP=$GREP |
| 5603 | fi |
| 5604 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5605 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 5607 | $as_echo "$ac_cv_path_GREP" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5608 | GREP="$ac_cv_path_GREP" |
| 5609 | |
| 5610 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5612 | $as_echo_n "checking for egrep... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5613 | if ${ac_cv_path_EGREP+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5614 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5615 | else |
| 5616 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5617 | then ac_cv_path_EGREP="$GREP -E" |
| 5618 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5619 | if test -z "$EGREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5620 | ac_path_EGREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5621 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5623 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5624 | do |
| 5625 | IFS=$as_save_IFS |
| 5626 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5627 | for ac_prog in egrep; do |
| 5628 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5629 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5630 | as_fn_executable_p "$ac_path_EGREP" || continue |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5631 | # Check for GNU ac_path_EGREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5632 | # Check for GNU $ac_path_EGREP |
| 5633 | case `"$ac_path_EGREP" --version 2>&1` in |
| 5634 | *GNU*) |
| 5635 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5636 | *) |
| 5637 | ac_count=0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5638 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5639 | while : |
| 5640 | do |
| 5641 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5642 | mv "conftest.tmp" "conftest.in" |
| 5643 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5644 | $as_echo 'EGREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5645 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5646 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5647 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5648 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5649 | # Best one so far, save it but keep looking for a better one |
| 5650 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 5651 | ac_path_EGREP_max=$ac_count |
| 5652 | fi |
| 5653 | # 10*(2^10) chars as input seems more than enough |
| 5654 | test $ac_count -gt 10 && break |
| 5655 | done |
| 5656 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5657 | esac |
| 5658 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5659 | $ac_path_EGREP_found && break 3 |
| 5660 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5661 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5662 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5663 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5664 | if test -z "$ac_cv_path_EGREP"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5665 | 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] | 5666 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5667 | else |
| 5668 | ac_cv_path_EGREP=$EGREP |
| 5669 | fi |
| 5670 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5671 | fi |
| 5672 | fi |
| 5673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 5674 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 5675 | EGREP="$ac_cv_path_EGREP" |
| 5676 | |
| 5677 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 5679 | $as_echo_n "checking for ANSI C header files... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 5680 | if ${ac_cv_header_stdc+:} false; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5681 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5682 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5684 | /* end confdefs.h. */ |
| 5685 | #include <stdlib.h> |
| 5686 | #include <stdarg.h> |
| 5687 | #include <string.h> |
| 5688 | #include <float.h> |
| 5689 | |
| 5690 | int |
| 5691 | main () |
| 5692 | { |
| 5693 | |
| 5694 | ; |
| 5695 | return 0; |
| 5696 | } |
| 5697 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5698 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5699 | ac_cv_header_stdc=yes |
| 5700 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5701 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5702 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5704 | |
| 5705 | if test $ac_cv_header_stdc = yes; then |
| 5706 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5708 | /* end confdefs.h. */ |
| 5709 | #include <string.h> |
| 5710 | |
| 5711 | _ACEOF |
| 5712 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5713 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 5714 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5715 | else |
| 5716 | ac_cv_header_stdc=no |
| 5717 | fi |
| 5718 | rm -f conftest* |
| 5719 | |
| 5720 | fi |
| 5721 | |
| 5722 | if test $ac_cv_header_stdc = yes; then |
| 5723 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5725 | /* end confdefs.h. */ |
| 5726 | #include <stdlib.h> |
| 5727 | |
| 5728 | _ACEOF |
| 5729 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5730 | $EGREP "free" >/dev/null 2>&1; then : |
| 5731 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5732 | else |
| 5733 | ac_cv_header_stdc=no |
| 5734 | fi |
| 5735 | rm -f conftest* |
| 5736 | |
| 5737 | fi |
| 5738 | |
| 5739 | if test $ac_cv_header_stdc = yes; then |
| 5740 | # /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] | 5741 | if test "$cross_compiling" = yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5742 | : |
| 5743 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5745 | /* end confdefs.h. */ |
| 5746 | #include <ctype.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5747 | #include <stdlib.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5748 | #if ((' ' & 0x0FF) == 0x020) |
| 5749 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5750 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5751 | #else |
| 5752 | # define ISLOWER(c) \ |
| 5753 | (('a' <= (c) && (c) <= 'i') \ |
| 5754 | || ('j' <= (c) && (c) <= 'r') \ |
| 5755 | || ('s' <= (c) && (c) <= 'z')) |
| 5756 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5757 | #endif |
| 5758 | |
| 5759 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5760 | int |
| 5761 | main () |
| 5762 | { |
| 5763 | int i; |
| 5764 | for (i = 0; i < 256; i++) |
| 5765 | if (XOR (islower (i), ISLOWER (i)) |
| 5766 | || toupper (i) != TOUPPER (i)) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5767 | return 2; |
| 5768 | return 0; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5769 | } |
| 5770 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5771 | if ac_fn_c_try_run "$LINENO"; then : |
| 5772 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5773 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5774 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5775 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5776 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5777 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5778 | fi |
| 5779 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5780 | fi |
| 5781 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 5783 | $as_echo "$ac_cv_header_stdc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5784 | if test $ac_cv_header_stdc = yes; then |
| 5785 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5786 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5787 | |
| 5788 | fi |
| 5789 | |
vapier@chromium.org | 302124a | 2013-12-10 06:28:08 +0000 | [diff] [blame] | 5790 | # Check whether --enable-largefile was given. |
| 5791 | if test "${enable_largefile+set}" = set; then : |
| 5792 | enableval=$enable_largefile; |
| 5793 | fi |
| 5794 | |
| 5795 | if test "$enable_largefile" != no; then |
| 5796 | |
| 5797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 5798 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
| 5799 | if ${ac_cv_sys_largefile_CC+:} false; then : |
| 5800 | $as_echo_n "(cached) " >&6 |
| 5801 | else |
| 5802 | ac_cv_sys_largefile_CC=no |
| 5803 | if test "$GCC" != yes; then |
| 5804 | ac_save_CC=$CC |
| 5805 | while :; do |
| 5806 | # IRIX 6.2 and later do not support large files by default, |
| 5807 | # so use the C compiler's -n32 option if that helps. |
| 5808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5809 | /* end confdefs.h. */ |
| 5810 | #include <sys/types.h> |
| 5811 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5812 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5813 | since some C++ compilers masquerading as C compilers |
| 5814 | incorrectly reject 9223372036854775807. */ |
| 5815 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5816 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5817 | && LARGE_OFF_T % 2147483647 == 1) |
| 5818 | ? 1 : -1]; |
| 5819 | int |
| 5820 | main () |
| 5821 | { |
| 5822 | |
| 5823 | ; |
| 5824 | return 0; |
| 5825 | } |
| 5826 | _ACEOF |
| 5827 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5828 | break |
| 5829 | fi |
| 5830 | rm -f core conftest.err conftest.$ac_objext |
| 5831 | CC="$CC -n32" |
| 5832 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5833 | ac_cv_sys_largefile_CC=' -n32'; break |
| 5834 | fi |
| 5835 | rm -f core conftest.err conftest.$ac_objext |
| 5836 | break |
| 5837 | done |
| 5838 | CC=$ac_save_CC |
| 5839 | rm -f conftest.$ac_ext |
| 5840 | fi |
| 5841 | fi |
| 5842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 5843 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 5844 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 5845 | CC=$CC$ac_cv_sys_largefile_CC |
| 5846 | fi |
| 5847 | |
| 5848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 5849 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 5850 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
| 5851 | $as_echo_n "(cached) " >&6 |
| 5852 | else |
| 5853 | while :; do |
| 5854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5855 | /* end confdefs.h. */ |
| 5856 | #include <sys/types.h> |
| 5857 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5858 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5859 | since some C++ compilers masquerading as C compilers |
| 5860 | incorrectly reject 9223372036854775807. */ |
| 5861 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5862 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5863 | && LARGE_OFF_T % 2147483647 == 1) |
| 5864 | ? 1 : -1]; |
| 5865 | int |
| 5866 | main () |
| 5867 | { |
| 5868 | |
| 5869 | ; |
| 5870 | return 0; |
| 5871 | } |
| 5872 | _ACEOF |
| 5873 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5874 | ac_cv_sys_file_offset_bits=no; break |
| 5875 | fi |
| 5876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5878 | /* end confdefs.h. */ |
| 5879 | #define _FILE_OFFSET_BITS 64 |
| 5880 | #include <sys/types.h> |
| 5881 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5882 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5883 | since some C++ compilers masquerading as C compilers |
| 5884 | incorrectly reject 9223372036854775807. */ |
| 5885 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5886 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5887 | && LARGE_OFF_T % 2147483647 == 1) |
| 5888 | ? 1 : -1]; |
| 5889 | int |
| 5890 | main () |
| 5891 | { |
| 5892 | |
| 5893 | ; |
| 5894 | return 0; |
| 5895 | } |
| 5896 | _ACEOF |
| 5897 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5898 | ac_cv_sys_file_offset_bits=64; break |
| 5899 | fi |
| 5900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5901 | ac_cv_sys_file_offset_bits=unknown |
| 5902 | break |
| 5903 | done |
| 5904 | fi |
| 5905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 5906 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 5907 | case $ac_cv_sys_file_offset_bits in #( |
| 5908 | no | unknown) ;; |
| 5909 | *) |
| 5910 | cat >>confdefs.h <<_ACEOF |
| 5911 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 5912 | _ACEOF |
| 5913 | ;; |
| 5914 | esac |
| 5915 | rm -rf conftest* |
| 5916 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| 5917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 5918 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 5919 | if ${ac_cv_sys_large_files+:} false; then : |
| 5920 | $as_echo_n "(cached) " >&6 |
| 5921 | else |
| 5922 | while :; do |
| 5923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5924 | /* end confdefs.h. */ |
| 5925 | #include <sys/types.h> |
| 5926 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5927 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5928 | since some C++ compilers masquerading as C compilers |
| 5929 | incorrectly reject 9223372036854775807. */ |
| 5930 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5931 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5932 | && LARGE_OFF_T % 2147483647 == 1) |
| 5933 | ? 1 : -1]; |
| 5934 | int |
| 5935 | main () |
| 5936 | { |
| 5937 | |
| 5938 | ; |
| 5939 | return 0; |
| 5940 | } |
| 5941 | _ACEOF |
| 5942 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5943 | ac_cv_sys_large_files=no; break |
| 5944 | fi |
| 5945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5947 | /* end confdefs.h. */ |
| 5948 | #define _LARGE_FILES 1 |
| 5949 | #include <sys/types.h> |
| 5950 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5951 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5952 | since some C++ compilers masquerading as C compilers |
| 5953 | incorrectly reject 9223372036854775807. */ |
| 5954 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5955 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5956 | && LARGE_OFF_T % 2147483647 == 1) |
| 5957 | ? 1 : -1]; |
| 5958 | int |
| 5959 | main () |
| 5960 | { |
| 5961 | |
| 5962 | ; |
| 5963 | return 0; |
| 5964 | } |
| 5965 | _ACEOF |
| 5966 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5967 | ac_cv_sys_large_files=1; break |
| 5968 | fi |
| 5969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5970 | ac_cv_sys_large_files=unknown |
| 5971 | break |
| 5972 | done |
| 5973 | fi |
| 5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 5975 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 5976 | case $ac_cv_sys_large_files in #( |
| 5977 | no | unknown) ;; |
| 5978 | *) |
| 5979 | cat >>confdefs.h <<_ACEOF |
| 5980 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 5981 | _ACEOF |
| 5982 | ;; |
| 5983 | esac |
| 5984 | rm -rf conftest* |
| 5985 | fi |
| 5986 | |
| 5987 | |
| 5988 | fi |
| 5989 | |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 5990 | # =========================================================================== |
| 5991 | # http://www.nongnu.org/autoconf-archive/ax_pthread.html |
| 5992 | # =========================================================================== |
| 5993 | # |
| 5994 | # SYNOPSIS |
| 5995 | # |
| 5996 | # AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) |
| 5997 | # |
| 5998 | # DESCRIPTION |
| 5999 | # |
| 6000 | # This macro figures out how to build C programs using POSIX threads. It |
| 6001 | # sets the PTHREAD_LIBS output variable to the threads library and linker |
| 6002 | # flags, and the PTHREAD_CFLAGS output variable to any special C compiler |
| 6003 | # flags that are needed. (The user can also force certain compiler |
| 6004 | # flags/libs to be tested by setting these environment variables.) |
| 6005 | # |
| 6006 | # Also sets PTHREAD_CC to any special C compiler that is needed for |
| 6007 | # multi-threaded programs (defaults to the value of CC otherwise). (This |
| 6008 | # is necessary on AIX to use the special cc_r compiler alias.) |
| 6009 | # |
| 6010 | # NOTE: You are assumed to not only compile your program with these flags, |
| 6011 | # but also link it with them as well. e.g. you should link with |
| 6012 | # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS |
| 6013 | # |
| 6014 | # If you are only building threads programs, you may wish to use these |
| 6015 | # variables in your default LIBS, CFLAGS, and CC: |
| 6016 | # |
| 6017 | # LIBS="$PTHREAD_LIBS $LIBS" |
| 6018 | # CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 6019 | # CC="$PTHREAD_CC" |
| 6020 | # |
| 6021 | # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant |
| 6022 | # has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name |
| 6023 | # (e.g. PTHREAD_CREATE_UNDETACHED on AIX). |
| 6024 | # |
| 6025 | # ACTION-IF-FOUND is a list of shell commands to run if a threads library |
| 6026 | # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it |
| 6027 | # is not found. If ACTION-IF-FOUND is not specified, the default action |
| 6028 | # will define HAVE_PTHREAD. |
| 6029 | # |
| 6030 | # Please let the authors know if this macro fails on any platform, or if |
| 6031 | # you have any other suggestions or comments. This macro was based on work |
| 6032 | # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help |
| 6033 | # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by |
| 6034 | # Alejandro Forero Cuervo to the autoconf macro repository. We are also |
| 6035 | # grateful for the helpful feedback of numerous users. |
| 6036 | # |
| 6037 | # LICENSE |
| 6038 | # |
| 6039 | # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> |
| 6040 | # |
| 6041 | # This program is free software: you can redistribute it and/or modify it |
| 6042 | # under the terms of the GNU General Public License as published by the |
| 6043 | # Free Software Foundation, either version 3 of the License, or (at your |
| 6044 | # option) any later version. |
| 6045 | # |
| 6046 | # This program is distributed in the hope that it will be useful, but |
| 6047 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 6048 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
| 6049 | # Public License for more details. |
| 6050 | # |
| 6051 | # You should have received a copy of the GNU General Public License along |
| 6052 | # with this program. If not, see <http://www.gnu.org/licenses/>. |
| 6053 | # |
| 6054 | # As a special exception, the respective Autoconf Macro's copyright owner |
| 6055 | # gives unlimited permission to copy, distribute and modify the configure |
| 6056 | # scripts that are the output of Autoconf when processing the Macro. You |
| 6057 | # need not follow the terms of the GNU General Public License when using |
| 6058 | # or distributing such scripts, even though portions of the text of the |
| 6059 | # Macro appear in them. The GNU General Public License (GPL) does govern |
| 6060 | # all other use of the material that constitutes the Autoconf Macro. |
| 6061 | # |
| 6062 | # This special exception to the GPL applies to versions of the Autoconf |
| 6063 | # Macro released by the Autoconf Archive. When you make and distribute a |
| 6064 | # modified version of the Autoconf Macro, you may extend this special |
| 6065 | # exception to the GPL to apply to your modified version as well. |
| 6066 | |
| 6067 | #serial 6 |
| 6068 | |
| 6069 | # This is what autoupdate's m4 run will expand. It fires |
| 6070 | # the warning (with _au_warn_XXX), outputs it into the |
| 6071 | # updated configure.ac (with AC_DIAGNOSE), and then outputs |
| 6072 | # the replacement expansion. |
| 6073 | |
| 6074 | |
| 6075 | # This is an auxiliary macro that is also run when |
| 6076 | # autoupdate runs m4. It simply calls m4_warning, but |
| 6077 | # we need a wrapper so that each warning is emitted only |
| 6078 | # once. We break the quoting in m4_warning's argument in |
| 6079 | # order to expand this macro's arguments, not AU_DEFUN's. |
| 6080 | |
| 6081 | |
| 6082 | # Finally, this is the expansion that is picked up by |
| 6083 | # autoconf. It tells the user to run autoupdate, and |
| 6084 | # then outputs the replacement expansion. We do not care |
| 6085 | # about autoupdate's warning because that contains |
| 6086 | # information on what to do *after* running autoupdate. |
| 6087 | |
| 6088 | |
| 6089 | |
| 6090 | |
| 6091 | ac_ext=c |
| 6092 | ac_cpp='$CPP $CPPFLAGS' |
| 6093 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6094 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6095 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6096 | |
| 6097 | ax_pthread_ok=no |
| 6098 | |
| 6099 | # We used to check for pthread.h first, but this fails if pthread.h |
| 6100 | # requires special compiler flags (e.g. on True64 or Sequent). |
| 6101 | # It gets checked for in the link test anyway. |
| 6102 | |
| 6103 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 6104 | # etcetera environment variables, and if threads linking works using |
| 6105 | # them: |
| 6106 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 6107 | save_CFLAGS="$CFLAGS" |
| 6108 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 6109 | save_LIBS="$LIBS" |
| 6110 | LIBS="$PTHREAD_LIBS $LIBS" |
| 6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
| 6112 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
| 6113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6114 | /* end confdefs.h. */ |
| 6115 | |
| 6116 | /* Override any GCC internal prototype to avoid an error. |
| 6117 | Use char because int might match the return type of a GCC |
| 6118 | builtin and then its argument prototype would still apply. */ |
| 6119 | #ifdef __cplusplus |
| 6120 | extern "C" |
| 6121 | #endif |
| 6122 | char pthread_join (); |
| 6123 | int |
| 6124 | main () |
| 6125 | { |
| 6126 | return pthread_join (); |
| 6127 | ; |
| 6128 | return 0; |
| 6129 | } |
| 6130 | _ACEOF |
| 6131 | if ac_fn_c_try_link "$LINENO"; then : |
| 6132 | ax_pthread_ok=yes |
| 6133 | fi |
| 6134 | rm -f core conftest.err conftest.$ac_objext \ |
| 6135 | conftest$ac_exeext conftest.$ac_ext |
| 6136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 6137 | $as_echo "$ax_pthread_ok" >&6; } |
| 6138 | if test x"$ax_pthread_ok" = xno; then |
| 6139 | PTHREAD_LIBS="" |
| 6140 | PTHREAD_CFLAGS="" |
| 6141 | fi |
| 6142 | LIBS="$save_LIBS" |
| 6143 | CFLAGS="$save_CFLAGS" |
| 6144 | fi |
| 6145 | |
| 6146 | # We must check for the threads library under a number of different |
| 6147 | # names; the ordering is very important because some systems |
| 6148 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 6149 | # libraries is broken (non-POSIX). |
| 6150 | |
| 6151 | # Create a list of thread flags to try. Items starting with a "-" are |
| 6152 | # C compiler flags, and other items are library names, except for "none" |
| 6153 | # which indicates that we try without any flags at all, and "pthread-config" |
| 6154 | # which is a program returning the flags for the Pth emulation library. |
| 6155 | |
| 6156 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 6157 | |
| 6158 | # The ordering *is* (sometimes) important. Some notes on the |
| 6159 | # individual items follow: |
| 6160 | |
| 6161 | # pthreads: AIX (must check this before -lpthread) |
| 6162 | # none: in case threads are in libc; should be tried before -Kthread and |
| 6163 | # other compiler flags to prevent continual compiler warnings |
| 6164 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 6165 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 6166 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 6167 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 6168 | # -pthreads: Solaris/gcc |
| 6169 | # -mthreads: Mingw32/gcc, Lynx/gcc |
| 6170 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 6171 | # doesn't hurt to check since this sometimes defines pthreads too; |
| 6172 | # also defines -D_REENTRANT) |
| 6173 | # ... -mt is also the pthreads flag for HP/aCC |
| 6174 | # pthread: Linux, etcetera |
| 6175 | # --thread-safe: KAI C++ |
| 6176 | # pthread-config: use pthread-config program (for GNU Pth library) |
| 6177 | |
| 6178 | case "${host_cpu}-${host_os}" in |
| 6179 | *solaris*) |
| 6180 | |
| 6181 | # On Solaris (at least, for some versions), libc contains stubbed |
| 6182 | # (non-functional) versions of the pthreads routines, so link-based |
| 6183 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 6184 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 6185 | # a function called by this macro, so we could check for that, but |
| 6186 | # who knows whether they'll stub that too in a future libc.) So, |
| 6187 | # we'll just look for -pthreads and -lpthread first: |
| 6188 | |
| 6189 | ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" |
| 6190 | ;; |
| 6191 | |
| 6192 | *-darwin*) |
| 6193 | acx_pthread_flags="-pthread $acx_pthread_flags" |
| 6194 | ;; |
| 6195 | esac |
| 6196 | |
| 6197 | if test x"$ax_pthread_ok" = xno; then |
| 6198 | for flag in $ax_pthread_flags; do |
| 6199 | |
| 6200 | case $flag in |
| 6201 | none) |
| 6202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| 6203 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } |
| 6204 | ;; |
| 6205 | |
| 6206 | -*) |
| 6207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 |
| 6208 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } |
| 6209 | PTHREAD_CFLAGS="$flag" |
| 6210 | ;; |
| 6211 | |
| 6212 | pthread-config) |
| 6213 | # Extract the first word of "pthread-config", so it can be a program name with args. |
| 6214 | set dummy pthread-config; ac_word=$2 |
| 6215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6216 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6217 | if ${ac_cv_prog_ax_pthread_config+:} false; then : |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6218 | $as_echo_n "(cached) " >&6 |
| 6219 | else |
| 6220 | if test -n "$ax_pthread_config"; then |
| 6221 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. |
| 6222 | else |
| 6223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6224 | for as_dir in $PATH |
| 6225 | do |
| 6226 | IFS=$as_save_IFS |
| 6227 | test -z "$as_dir" && as_dir=. |
| 6228 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6229 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6230 | ac_cv_prog_ax_pthread_config="yes" |
| 6231 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6232 | break 2 |
| 6233 | fi |
| 6234 | done |
| 6235 | done |
| 6236 | IFS=$as_save_IFS |
| 6237 | |
| 6238 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" |
| 6239 | fi |
| 6240 | fi |
| 6241 | ax_pthread_config=$ac_cv_prog_ax_pthread_config |
| 6242 | if test -n "$ax_pthread_config"; then |
| 6243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
| 6244 | $as_echo "$ax_pthread_config" >&6; } |
| 6245 | else |
| 6246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6247 | $as_echo "no" >&6; } |
| 6248 | fi |
| 6249 | |
| 6250 | |
| 6251 | if test x"$ax_pthread_config" = xno; then continue; fi |
| 6252 | PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 6253 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 6254 | ;; |
| 6255 | |
| 6256 | *) |
| 6257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 |
| 6258 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } |
| 6259 | PTHREAD_LIBS="-l$flag" |
| 6260 | ;; |
| 6261 | esac |
| 6262 | |
| 6263 | save_LIBS="$LIBS" |
| 6264 | save_CFLAGS="$CFLAGS" |
| 6265 | LIBS="$PTHREAD_LIBS $LIBS" |
| 6266 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 6267 | |
| 6268 | # Check for various functions. We must include pthread.h, |
| 6269 | # since some functions may be macros. (On the Sequent, we |
| 6270 | # need a special flag -Kthread to make this header compile.) |
| 6271 | # We check for pthread_join because it is in -lpthread on IRIX |
| 6272 | # while pthread_create is in libc. We check for pthread_attr_init |
| 6273 | # due to DEC craziness with -lpthreads. We check for |
| 6274 | # pthread_cleanup_push because it is one of the few pthread |
| 6275 | # functions on Solaris that doesn't have a non-functional libc stub. |
| 6276 | # We try pthread_create on general principles. |
| 6277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6278 | /* end confdefs.h. */ |
| 6279 | #include <pthread.h> |
| 6280 | static void routine(void* a) {a=0;} |
| 6281 | static void* start_routine(void* a) {return a;} |
| 6282 | int |
| 6283 | main () |
| 6284 | { |
| 6285 | pthread_t th; pthread_attr_t attr; |
| 6286 | pthread_join(th, 0); |
| 6287 | pthread_attr_init(&attr); |
| 6288 | pthread_cleanup_push(routine, 0); |
| 6289 | pthread_create(&th,0,start_routine,0); |
| 6290 | pthread_cleanup_pop(0); |
| 6291 | ; |
| 6292 | return 0; |
| 6293 | } |
| 6294 | _ACEOF |
| 6295 | if ac_fn_c_try_link "$LINENO"; then : |
| 6296 | ax_pthread_ok=yes |
| 6297 | fi |
| 6298 | rm -f core conftest.err conftest.$ac_objext \ |
| 6299 | conftest$ac_exeext conftest.$ac_ext |
| 6300 | |
| 6301 | LIBS="$save_LIBS" |
| 6302 | CFLAGS="$save_CFLAGS" |
| 6303 | |
| 6304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 6305 | $as_echo "$ax_pthread_ok" >&6; } |
| 6306 | if test "x$ax_pthread_ok" = xyes; then |
| 6307 | break; |
| 6308 | fi |
| 6309 | |
| 6310 | PTHREAD_LIBS="" |
| 6311 | PTHREAD_CFLAGS="" |
| 6312 | done |
| 6313 | fi |
| 6314 | |
| 6315 | # Various other checks: |
| 6316 | if test "x$ax_pthread_ok" = xyes; then |
| 6317 | save_LIBS="$LIBS" |
| 6318 | LIBS="$PTHREAD_LIBS $LIBS" |
| 6319 | save_CFLAGS="$CFLAGS" |
| 6320 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 6321 | |
| 6322 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| 6323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| 6324 | $as_echo_n "checking for joinable pthread attribute... " >&6; } |
| 6325 | attr_name=unknown |
| 6326 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| 6327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6328 | /* end confdefs.h. */ |
| 6329 | #include <pthread.h> |
| 6330 | int |
| 6331 | main () |
| 6332 | { |
| 6333 | int attr=$attr; return attr; |
| 6334 | ; |
| 6335 | return 0; |
| 6336 | } |
| 6337 | _ACEOF |
| 6338 | if ac_fn_c_try_link "$LINENO"; then : |
| 6339 | attr_name=$attr; break |
| 6340 | fi |
| 6341 | rm -f core conftest.err conftest.$ac_objext \ |
| 6342 | conftest$ac_exeext conftest.$ac_ext |
| 6343 | done |
| 6344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 |
| 6345 | $as_echo "$attr_name" >&6; } |
| 6346 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 6347 | |
| 6348 | cat >>confdefs.h <<_ACEOF |
| 6349 | #define PTHREAD_CREATE_JOINABLE $attr_name |
| 6350 | _ACEOF |
| 6351 | |
| 6352 | fi |
| 6353 | |
| 6354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
| 6355 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
| 6356 | flag=no |
| 6357 | case "${host_cpu}-${host_os}" in |
| 6358 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; |
| 6359 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; |
| 6360 | esac |
| 6361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 |
| 6362 | $as_echo "${flag}" >&6; } |
| 6363 | if test "x$flag" != xno; then |
| 6364 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 6365 | fi |
| 6366 | |
| 6367 | LIBS="$save_LIBS" |
| 6368 | CFLAGS="$save_CFLAGS" |
| 6369 | |
| 6370 | # More AIX lossage: must compile with xlc_r or cc_r |
| 6371 | if test x"$GCC" != xyes; then |
| 6372 | for ac_prog in xlc_r cc_r |
| 6373 | do |
| 6374 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6375 | set dummy $ac_prog; ac_word=$2 |
| 6376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6377 | $as_echo_n "checking for $ac_word... " >&6; } |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6378 | if ${ac_cv_prog_PTHREAD_CC+:} false; then : |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6379 | $as_echo_n "(cached) " >&6 |
| 6380 | else |
| 6381 | if test -n "$PTHREAD_CC"; then |
| 6382 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 6383 | else |
| 6384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6385 | for as_dir in $PATH |
| 6386 | do |
| 6387 | IFS=$as_save_IFS |
| 6388 | test -z "$as_dir" && as_dir=. |
| 6389 | for ac_exec_ext in '' $ac_executable_extensions; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6390 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6391 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
| 6392 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6393 | break 2 |
| 6394 | fi |
| 6395 | done |
| 6396 | done |
| 6397 | IFS=$as_save_IFS |
| 6398 | |
| 6399 | fi |
| 6400 | fi |
| 6401 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 6402 | if test -n "$PTHREAD_CC"; then |
| 6403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 6404 | $as_echo "$PTHREAD_CC" >&6; } |
| 6405 | else |
| 6406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6407 | $as_echo "no" >&6; } |
| 6408 | fi |
| 6409 | |
| 6410 | |
| 6411 | test -n "$PTHREAD_CC" && break |
| 6412 | done |
| 6413 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" |
| 6414 | |
| 6415 | else |
| 6416 | PTHREAD_CC=$CC |
| 6417 | fi |
| 6418 | else |
| 6419 | PTHREAD_CC="$CC" |
| 6420 | fi |
| 6421 | |
| 6422 | |
| 6423 | |
| 6424 | |
| 6425 | |
| 6426 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 6427 | if test x"$ax_pthread_ok" = xyes; then |
| 6428 | |
| 6429 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| 6430 | |
| 6431 | : |
| 6432 | else |
| 6433 | ax_pthread_ok=no |
| 6434 | |
| 6435 | fi |
| 6436 | ac_ext=c |
| 6437 | ac_cpp='$CPP $CPPFLAGS' |
| 6438 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6439 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6440 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6441 | |
| 6442 | |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6443 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6444 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6445 | inttypes.h stdint.h unistd.h |
| 6446 | do : |
| 6447 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6448 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 6449 | " |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6450 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6451 | cat >>confdefs.h <<_ACEOF |
| 6452 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6453 | _ACEOF |
| 6454 | |
| 6455 | fi |
| 6456 | |
| 6457 | done |
| 6458 | |
| 6459 | |
| 6460 | for ac_header in a.out.h |
| 6461 | do : |
| 6462 | ac_fn_c_check_header_mongrel "$LINENO" "a.out.h" "ac_cv_header_a_out_h" "$ac_includes_default" |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6463 | if test "x$ac_cv_header_a_out_h" = xyes; then : |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6464 | cat >>confdefs.h <<_ACEOF |
| 6465 | #define HAVE_A_OUT_H 1 |
| 6466 | _ACEOF |
| 6467 | |
| 6468 | fi |
| 6469 | |
| 6470 | done |
| 6471 | |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 6472 | |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 6473 | # Only build Linux client libs when compiling for Linux |
| 6474 | case $host in |
digit@chromium.org | 62d486b | 2012-08-21 14:34:48 +0000 | [diff] [blame] | 6475 | *-*-linux* | *-android* ) |
| 6476 | LINUX_HOST=true |
| 6477 | ;; |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 6478 | esac |
| 6479 | if test x$LINUX_HOST = xtrue; then |
| 6480 | LINUX_HOST_TRUE= |
| 6481 | LINUX_HOST_FALSE='#' |
| 6482 | else |
| 6483 | LINUX_HOST_TRUE='#' |
| 6484 | LINUX_HOST_FALSE= |
| 6485 | fi |
| 6486 | |
| 6487 | |
digit@chromium.org | 62d486b | 2012-08-21 14:34:48 +0000 | [diff] [blame] | 6488 | # Only use Android support headers when compiling for Android |
| 6489 | case $host in |
| 6490 | *-android*) |
| 6491 | ANDROID_HOST=true |
| 6492 | ;; |
| 6493 | esac |
| 6494 | if test x$ANDROID_HOST = xtrue; then |
| 6495 | ANDROID_HOST_TRUE= |
| 6496 | ANDROID_HOST_FALSE='#' |
| 6497 | else |
| 6498 | ANDROID_HOST_TRUE='#' |
| 6499 | ANDROID_HOST_FALSE= |
| 6500 | fi |
| 6501 | |
| 6502 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6503 | # Check whether --enable-processor was given. |
| 6504 | if test "${enable_processor+set}" = set; then : |
| 6505 | enableval=$enable_processor; case "${enableval}" in |
| 6506 | yes) |
| 6507 | disable_processor=false |
| 6508 | ;; |
| 6509 | no) |
| 6510 | disable_processor=true |
| 6511 | ;; |
| 6512 | *) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6513 | as_fn_error $? "bad value ${enableval} for --disable-processor" "$LINENO" 5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6514 | ;; |
| 6515 | esac |
| 6516 | else |
| 6517 | disable_processor=false |
| 6518 | fi |
| 6519 | |
| 6520 | if test x$disable_processor = xtrue; then |
| 6521 | DISABLE_PROCESSOR_TRUE= |
| 6522 | DISABLE_PROCESSOR_FALSE='#' |
| 6523 | else |
| 6524 | DISABLE_PROCESSOR_TRUE='#' |
| 6525 | DISABLE_PROCESSOR_FALSE= |
| 6526 | fi |
| 6527 | |
| 6528 | |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6529 | # Check whether --enable-tools was given. |
| 6530 | if test "${enable_tools+set}" = set; then : |
| 6531 | enableval=$enable_tools; case "${enableval}" in |
| 6532 | yes) |
| 6533 | disable_tools=false |
| 6534 | ;; |
| 6535 | no) |
| 6536 | disable_tools=true |
| 6537 | ;; |
| 6538 | *) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6539 | as_fn_error $? "bad value ${enableval} for --disable-tools" "$LINENO" 5 |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6540 | ;; |
| 6541 | esac |
| 6542 | else |
| 6543 | disable_tools=false |
| 6544 | fi |
| 6545 | |
| 6546 | if test x$disable_tools = xtrue; then |
| 6547 | DISABLE_TOOLS_TRUE= |
| 6548 | DISABLE_TOOLS_FALSE='#' |
| 6549 | else |
| 6550 | DISABLE_TOOLS_TRUE='#' |
| 6551 | DISABLE_TOOLS_FALSE= |
| 6552 | fi |
| 6553 | |
| 6554 | |
| 6555 | 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] | 6556 | 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] | 6557 | fi |
| 6558 | |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 6559 | # Check whether --enable-selftest was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6560 | if test "${enable_selftest+set}" = set; then : |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 6561 | enableval=$enable_selftest; case "${enableval}" in |
| 6562 | yes) |
| 6563 | selftest=true |
| 6564 | ;; |
| 6565 | no) |
| 6566 | selftest=false |
| 6567 | ;; |
| 6568 | *) |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6569 | as_fn_error $? "bad value ${enableval} for --enable-selftest" "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 6570 | ;; |
| 6571 | esac |
| 6572 | else |
| 6573 | selftest=false |
| 6574 | fi |
| 6575 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 6576 | if test x$selftest = xtrue; then |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 6577 | SELFTEST_TRUE= |
| 6578 | SELFTEST_FALSE='#' |
| 6579 | else |
| 6580 | SELFTEST_TRUE='#' |
| 6581 | SELFTEST_FALSE= |
| 6582 | fi |
| 6583 | |
| 6584 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6585 | ac_config_files="$ac_config_files Makefile" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6586 | |
| 6587 | cat >confcache <<\_ACEOF |
| 6588 | # This file is a shell script that caches the results of configure |
| 6589 | # tests run on this system so they can be shared between configure |
| 6590 | # scripts and configure runs, see configure's option --config-cache. |
| 6591 | # It is not useful on other systems. If it contains results you don't |
| 6592 | # want to keep, you may remove or edit it. |
| 6593 | # |
| 6594 | # config.status only pays attention to the cache file if you give it |
| 6595 | # the --recheck option to rerun configure. |
| 6596 | # |
| 6597 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 6598 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 6599 | # following values. |
| 6600 | |
| 6601 | _ACEOF |
| 6602 | |
| 6603 | # The following way of writing the cache mishandles newlines in values, |
| 6604 | # but we know of no workaround that is simple, portable, and efficient. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6605 | # So, we kill variables containing newlines. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6606 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 6607 | # 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] | 6608 | ( |
| 6609 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 6610 | eval ac_val=\$$ac_var |
| 6611 | case $ac_val in #( |
| 6612 | *${as_nl}*) |
| 6613 | case $ac_var in #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6614 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 6615 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6616 | esac |
| 6617 | case $ac_var in #( |
| 6618 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6619 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 6620 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6621 | esac ;; |
| 6622 | esac |
| 6623 | done |
| 6624 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6625 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6626 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 6627 | *${as_nl}ac_space=\ *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6628 | # `set' does not quote correctly, so add quotes: double-quote |
| 6629 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6630 | sed -n \ |
| 6631 | "s/'/'\\\\''/g; |
| 6632 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6633 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6634 | *) |
| 6635 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6636 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6637 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6638 | esac | |
| 6639 | sort |
| 6640 | ) | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6641 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6642 | /^ac_cv_env_/b end |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6643 | t clear |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6644 | :clear |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6645 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 6646 | t end |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6647 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 6648 | :end' >>confcache |
| 6649 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 6650 | if test -w "$cache_file"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6651 | if test "x$cache_file" != "x/dev/null"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6652 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 6653 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6654 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 6655 | cat confcache >"$cache_file" |
| 6656 | else |
| 6657 | case $cache_file in #( |
| 6658 | */* | ?:*) |
| 6659 | mv -f confcache "$cache_file"$$ && |
| 6660 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 6661 | *) |
| 6662 | mv -f confcache "$cache_file" ;; |
| 6663 | esac |
| 6664 | fi |
| 6665 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6666 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6667 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 6668 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6669 | fi |
| 6670 | fi |
| 6671 | rm -f confcache |
| 6672 | |
| 6673 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6674 | # Let make expand exec_prefix. |
| 6675 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 6676 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6677 | DEFS=-DHAVE_CONFIG_H |
| 6678 | |
| 6679 | ac_libobjs= |
| 6680 | ac_ltlibobjs= |
| 6681 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 6682 | # 1. Remove the extension, and $U if already installed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6683 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6684 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6685 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 6686 | # will be set to the directory where LIBOBJS objects are built. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6687 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 6688 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6689 | done |
| 6690 | LIBOBJS=$ac_libobjs |
| 6691 | |
| 6692 | LTLIBOBJS=$ac_ltlibobjs |
| 6693 | |
| 6694 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 6696 | $as_echo_n "checking that generated files are newer than configure... " >&6; } |
| 6697 | if test -n "$am_sleep_pid"; then |
| 6698 | # Hide warnings about reused PIDs. |
| 6699 | wait $am_sleep_pid 2>/dev/null |
| 6700 | fi |
| 6701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 6702 | $as_echo "done" >&6; } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6703 | if test -n "$EXEEXT"; then |
| 6704 | am__EXEEXT_TRUE= |
| 6705 | am__EXEEXT_FALSE='#' |
| 6706 | else |
| 6707 | am__EXEEXT_TRUE='#' |
| 6708 | am__EXEEXT_FALSE= |
| 6709 | fi |
| 6710 | |
ted.mielczarek@gmail.com | 07bb231 | 2013-12-10 12:28:11 +0000 | [diff] [blame] | 6711 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 6712 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| 6713 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 6714 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6715 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6716 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6717 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6718 | fi |
| 6719 | 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] | 6720 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6721 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6722 | fi |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 6723 | 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] | 6724 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 6725 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 6726 | fi |
| 6727 | 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] | 6728 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
digit@chromium.org | 7e3c538 | 2012-08-31 18:38:29 +0000 | [diff] [blame] | 6729 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 6730 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6731 | 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] | 6732 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6733 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 6734 | fi |
ivan.penkov@gmail.com | 5f6e1f0 | 2012-07-02 22:55:57 +0000 | [diff] [blame] | 6735 | if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6736 | as_fn_error $? "conditional \"GCC\" was never defined. |
ivan.penkov@gmail.com | 5f6e1f0 | 2012-07-02 22:55:57 +0000 | [diff] [blame] | 6737 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 6738 | fi |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 6739 | 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] | 6740 | as_fn_error $? "conditional \"LINUX_HOST\" was never defined. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6741 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 6742 | fi |
digit@chromium.org | 62d486b | 2012-08-21 14:34:48 +0000 | [diff] [blame] | 6743 | 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] | 6744 | as_fn_error $? "conditional \"ANDROID_HOST\" was never defined. |
digit@chromium.org | 62d486b | 2012-08-21 14:34:48 +0000 | [diff] [blame] | 6745 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 6746 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame] | 6747 | 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] | 6748 | as_fn_error $? "conditional \"DISABLE_PROCESSOR\" was never defined. |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 6749 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 6750 | fi |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6751 | 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] | 6752 | as_fn_error $? "conditional \"DISABLE_TOOLS\" was never defined. |
ted.mielczarek | dbf409c | 2011-02-28 14:05:22 +0000 | [diff] [blame] | 6753 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 6754 | fi |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 6755 | if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6756 | as_fn_error $? "conditional \"SELFTEST\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6757 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 6758 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6759 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6760 | : "${CONFIG_STATUS=./config.status}" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6761 | ac_write_fail=0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6762 | ac_clean_files_save=$ac_clean_files |
| 6763 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6764 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 6765 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 6766 | as_write_fail=0 |
| 6767 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6768 | #! $SHELL |
| 6769 | # Generated by $as_me. |
| 6770 | # Run this file to recreate the current configuration. |
| 6771 | # Compiler output produced by configure, useful for debugging |
| 6772 | # configure, is in config.log if it exists. |
| 6773 | |
| 6774 | debug=false |
| 6775 | ac_cs_recheck=false |
| 6776 | ac_cs_silent=false |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6777 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6778 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 6779 | export SHELL |
| 6780 | _ASEOF |
| 6781 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 6782 | ## -------------------- ## |
| 6783 | ## M4sh Initialization. ## |
| 6784 | ## -------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6785 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 6786 | # Be more Bourne compatible |
| 6787 | DUALCASE=1; export DUALCASE # for MKS sh |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6788 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6789 | emulate sh |
| 6790 | NULLCMD=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6791 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6792 | # is contrary to our usage. Disable this feature. |
| 6793 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6794 | setopt NO_GLOB_SUBST |
| 6795 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6796 | case `(set -o) 2>/dev/null` in #( |
| 6797 | *posix*) : |
| 6798 | set -o posix ;; #( |
| 6799 | *) : |
| 6800 | ;; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 6801 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6802 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 6803 | |
| 6804 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6805 | as_nl=' |
| 6806 | ' |
| 6807 | export as_nl |
| 6808 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 6809 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 6810 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 6811 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 6812 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 6813 | # but without wasting forks for bash or zsh. |
| 6814 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 6815 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 6816 | as_echo='print -r --' |
| 6817 | as_echo_n='print -rn --' |
| 6818 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 6819 | as_echo='printf %s\n' |
| 6820 | as_echo_n='printf %s' |
| 6821 | else |
| 6822 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 6823 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 6824 | as_echo_n='/usr/ucb/echo -n' |
| 6825 | else |
| 6826 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 6827 | as_echo_n_body='eval |
| 6828 | arg=$1; |
| 6829 | case $arg in #( |
| 6830 | *"$as_nl"*) |
| 6831 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 6832 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 6833 | esac; |
| 6834 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 6835 | ' |
| 6836 | export as_echo_n_body |
| 6837 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 6838 | fi |
| 6839 | export as_echo_body |
| 6840 | as_echo='sh -c $as_echo_body as_echo' |
| 6841 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6842 | |
| 6843 | # The user is always right. |
| 6844 | if test "${PATH_SEPARATOR+set}" != set; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6845 | PATH_SEPARATOR=: |
| 6846 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 6847 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 6848 | PATH_SEPARATOR=';' |
| 6849 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6850 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6851 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6852 | |
| 6853 | # IFS |
| 6854 | # We need space, tab and new line, in precisely that order. Quoting is |
| 6855 | # there to prevent editors from complaining about space-tab. |
| 6856 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 6857 | # splitting by setting IFS to empty value.) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6858 | IFS=" "" $as_nl" |
| 6859 | |
| 6860 | # 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] | 6861 | as_myself= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6862 | case $0 in #(( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6863 | *[\\/]* ) as_myself=$0 ;; |
| 6864 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6865 | for as_dir in $PATH |
| 6866 | do |
| 6867 | IFS=$as_save_IFS |
| 6868 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6869 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 6870 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6871 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6872 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6873 | ;; |
| 6874 | esac |
| 6875 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 6876 | # in which case we are not to be found in the path. |
| 6877 | if test "x$as_myself" = x; then |
| 6878 | as_myself=$0 |
| 6879 | fi |
| 6880 | if test ! -f "$as_myself"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6881 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 6882 | exit 1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6883 | fi |
| 6884 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6885 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 6886 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 6887 | # suppresses any "Segmentation fault" message there. '((' could |
| 6888 | # trigger a bug in pdksh 5.2.14. |
| 6889 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 6890 | do eval test x\${$as_var+set} = xset \ |
| 6891 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6892 | done |
| 6893 | PS1='$ ' |
| 6894 | PS2='> ' |
| 6895 | PS4='+ ' |
| 6896 | |
| 6897 | # NLS nuisances. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6898 | LC_ALL=C |
| 6899 | export LC_ALL |
| 6900 | LANGUAGE=C |
| 6901 | export LANGUAGE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6902 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6903 | # CDPATH. |
| 6904 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 6905 | |
| 6906 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6907 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 6908 | # ---------------------------------------- |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6909 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 6910 | # 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] | 6911 | # script with STATUS, using 1 if that was 0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6912 | as_fn_error () |
| 6913 | { |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6914 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 6915 | if test "$4"; then |
| 6916 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 6917 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6918 | fi |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 6919 | $as_echo "$as_me: error: $2" >&2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6920 | as_fn_exit $as_status |
| 6921 | } # as_fn_error |
| 6922 | |
| 6923 | |
| 6924 | # as_fn_set_status STATUS |
| 6925 | # ----------------------- |
| 6926 | # Set $? to STATUS, without forking. |
| 6927 | as_fn_set_status () |
| 6928 | { |
| 6929 | return $1 |
| 6930 | } # as_fn_set_status |
| 6931 | |
| 6932 | # as_fn_exit STATUS |
| 6933 | # ----------------- |
| 6934 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 6935 | as_fn_exit () |
| 6936 | { |
| 6937 | set +e |
| 6938 | as_fn_set_status $1 |
| 6939 | exit $1 |
| 6940 | } # as_fn_exit |
| 6941 | |
| 6942 | # as_fn_unset VAR |
| 6943 | # --------------- |
| 6944 | # Portably unset VAR. |
| 6945 | as_fn_unset () |
| 6946 | { |
| 6947 | { eval $1=; unset $1;} |
| 6948 | } |
| 6949 | as_unset=as_fn_unset |
| 6950 | # as_fn_append VAR VALUE |
| 6951 | # ---------------------- |
| 6952 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 6953 | # advantage of any shell optimizations that allow amortized linear growth over |
| 6954 | # repeated appends, instead of the typical quadratic growth present in naive |
| 6955 | # implementations. |
| 6956 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 6957 | eval 'as_fn_append () |
| 6958 | { |
| 6959 | eval $1+=\$2 |
| 6960 | }' |
| 6961 | else |
| 6962 | as_fn_append () |
| 6963 | { |
| 6964 | eval $1=\$$1\$2 |
| 6965 | } |
| 6966 | fi # as_fn_append |
| 6967 | |
| 6968 | # as_fn_arith ARG... |
| 6969 | # ------------------ |
| 6970 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 6971 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 6972 | # must be portable across $(()) and expr. |
| 6973 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 6974 | eval 'as_fn_arith () |
| 6975 | { |
| 6976 | as_val=$(( $* )) |
| 6977 | }' |
| 6978 | else |
| 6979 | as_fn_arith () |
| 6980 | { |
| 6981 | as_val=`expr "$@" || test $? -eq 1` |
| 6982 | } |
| 6983 | fi # as_fn_arith |
| 6984 | |
| 6985 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6986 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 6987 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 6988 | as_expr=expr |
| 6989 | else |
| 6990 | as_expr=false |
| 6991 | fi |
| 6992 | |
| 6993 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 6994 | as_basename=basename |
| 6995 | else |
| 6996 | as_basename=false |
| 6997 | fi |
| 6998 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6999 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 7000 | as_dirname=dirname |
| 7001 | else |
| 7002 | as_dirname=false |
| 7003 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7004 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7005 | as_me=`$as_basename -- "$0" || |
| 7006 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 7007 | X"$0" : 'X\(//\)$' \| \ |
| 7008 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7009 | $as_echo X/"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7010 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 7011 | s//\1/ |
| 7012 | q |
| 7013 | } |
| 7014 | /^X\/\(\/\/\)$/{ |
| 7015 | s//\1/ |
| 7016 | q |
| 7017 | } |
| 7018 | /^X\/\(\/\).*/{ |
| 7019 | s//\1/ |
| 7020 | q |
| 7021 | } |
| 7022 | s/.*/./; q'` |
| 7023 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7024 | # Avoid depending upon Character Ranges. |
| 7025 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 7026 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 7027 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 7028 | as_cr_digits='0123456789' |
| 7029 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7030 | |
| 7031 | ECHO_C= ECHO_N= ECHO_T= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7032 | case `echo -n x` in #((((( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7033 | -n*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7034 | case `echo 'xy\c'` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7035 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7036 | xy) ECHO_C='\c';; |
| 7037 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 7038 | ECHO_T=' ';; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7039 | esac;; |
| 7040 | *) |
| 7041 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7042 | esac |
| 7043 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7044 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7045 | if test -d conf$$.dir; then |
| 7046 | rm -f conf$$.dir/conf$$.file |
| 7047 | else |
| 7048 | rm -f conf$$.dir |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7049 | mkdir conf$$.dir 2>/dev/null |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7050 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7051 | if (echo >conf$$.file) 2>/dev/null; then |
| 7052 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 7053 | as_ln_s='ln -s' |
| 7054 | # ... but there are two gotchas: |
| 7055 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 7056 | # 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] | 7057 | # In both cases, we have to default to `cp -pR'. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7058 | 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] | 7059 | as_ln_s='cp -pR' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7060 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 7061 | as_ln_s=ln |
| 7062 | else |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7063 | as_ln_s='cp -pR' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7064 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7065 | else |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7066 | as_ln_s='cp -pR' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7067 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7068 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 7069 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7070 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7071 | |
| 7072 | # as_fn_mkdir_p |
| 7073 | # ------------- |
| 7074 | # Create "$as_dir" as a directory, including parents if necessary. |
| 7075 | as_fn_mkdir_p () |
| 7076 | { |
| 7077 | |
| 7078 | case $as_dir in #( |
| 7079 | -*) as_dir=./$as_dir;; |
| 7080 | esac |
| 7081 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 7082 | as_dirs= |
| 7083 | while :; do |
| 7084 | case $as_dir in #( |
| 7085 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 7086 | *) as_qdir=$as_dir;; |
| 7087 | esac |
| 7088 | as_dirs="'$as_qdir' $as_dirs" |
| 7089 | as_dir=`$as_dirname -- "$as_dir" || |
| 7090 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7091 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 7092 | X"$as_dir" : 'X\(//\)$' \| \ |
| 7093 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 7094 | $as_echo X"$as_dir" | |
| 7095 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7096 | s//\1/ |
| 7097 | q |
| 7098 | } |
| 7099 | /^X\(\/\/\)[^/].*/{ |
| 7100 | s//\1/ |
| 7101 | q |
| 7102 | } |
| 7103 | /^X\(\/\/\)$/{ |
| 7104 | s//\1/ |
| 7105 | q |
| 7106 | } |
| 7107 | /^X\(\/\).*/{ |
| 7108 | s//\1/ |
| 7109 | q |
| 7110 | } |
| 7111 | s/.*/./; q'` |
| 7112 | test -d "$as_dir" && break |
| 7113 | done |
| 7114 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7115 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7116 | |
| 7117 | |
| 7118 | } # as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7119 | if mkdir -p . 2>/dev/null; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7120 | as_mkdir_p='mkdir -p "$as_dir"' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7121 | else |
| 7122 | test -d ./-p && rmdir ./-p |
| 7123 | as_mkdir_p=false |
| 7124 | fi |
| 7125 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7126 | |
| 7127 | # as_fn_executable_p FILE |
| 7128 | # ----------------------- |
| 7129 | # Test if FILE is an executable regular file. |
| 7130 | as_fn_executable_p () |
| 7131 | { |
| 7132 | test -f "$1" && test -x "$1" |
| 7133 | } # as_fn_executable_p |
| 7134 | as_test_x='test -x' |
| 7135 | as_executable_p=as_fn_executable_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7136 | |
| 7137 | # Sed expression to map a string onto a valid CPP name. |
| 7138 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 7139 | |
| 7140 | # Sed expression to map a string onto a valid variable name. |
| 7141 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 7142 | |
| 7143 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7144 | exec 6>&1 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7145 | ## ----------------------------------- ## |
| 7146 | ## Main body of $CONFIG_STATUS script. ## |
| 7147 | ## ----------------------------------- ## |
| 7148 | _ASEOF |
| 7149 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7150 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7151 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7152 | # Save the log message, to keep $0 and so on meaningful, and to |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7153 | # report actual input values of CONFIG_FILES etc. instead of their |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7154 | # values after options handling. |
| 7155 | ac_log=" |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 7156 | 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] | 7157 | generated by GNU Autoconf 2.69. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7158 | |
| 7159 | CONFIG_FILES = $CONFIG_FILES |
| 7160 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 7161 | CONFIG_LINKS = $CONFIG_LINKS |
| 7162 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 7163 | $ $0 $@ |
| 7164 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7165 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 7166 | " |
| 7167 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7168 | _ACEOF |
| 7169 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7170 | case $ac_config_files in *" |
| 7171 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 7172 | esac |
| 7173 | |
| 7174 | case $ac_config_headers in *" |
| 7175 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 7176 | esac |
| 7177 | |
| 7178 | |
| 7179 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7180 | # Files that config.status was made for. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7181 | config_files="$ac_config_files" |
| 7182 | config_headers="$ac_config_headers" |
| 7183 | config_commands="$ac_config_commands" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7184 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7185 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7186 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7187 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7188 | ac_cs_usage="\ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7189 | \`$as_me' instantiates files and other configuration actions |
| 7190 | from templates according to the current configuration. Unless the files |
| 7191 | and actions are specified as TAGs, all are instantiated by default. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7192 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7193 | Usage: $0 [OPTION]... [TAG]... |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7194 | |
| 7195 | -h, --help print this help, then exit |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 7196 | -V, --version print version number and configuration settings, then exit |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 7197 | --config print configuration, then exit |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7198 | -q, --quiet, --silent |
| 7199 | do not print progress messages |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7200 | -d, --debug don't remove temporary files |
| 7201 | --recheck update $as_me by reconfiguring in the same conditions |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7202 | --file=FILE[:TEMPLATE] |
| 7203 | instantiate the configuration file FILE |
| 7204 | --header=FILE[:TEMPLATE] |
| 7205 | instantiate the configuration header FILE |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7206 | |
| 7207 | Configuration files: |
| 7208 | $config_files |
| 7209 | |
| 7210 | Configuration headers: |
| 7211 | $config_headers |
| 7212 | |
| 7213 | Configuration commands: |
| 7214 | $config_commands |
| 7215 | |
thestig@chromium.org | 43e6db7 | 2010-11-08 19:49:41 +0000 | [diff] [blame] | 7216 | Report bugs to <google-breakpad-dev@googlegroups.com>." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7217 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7218 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7219 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 7220 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7221 | ac_cs_version="\\ |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 7222 | breakpad config.status 0.1 |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7223 | configured by $0, generated by GNU Autoconf 2.69, |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 7224 | with options \\"\$ac_cs_config\\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7225 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7226 | Copyright (C) 2012 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7227 | This config.status script is free software; the Free Software Foundation |
| 7228 | gives unlimited permission to copy, distribute and modify it." |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7229 | |
| 7230 | ac_pwd='$ac_pwd' |
| 7231 | srcdir='$srcdir' |
| 7232 | INSTALL='$INSTALL' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 7233 | MKDIR_P='$MKDIR_P' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7234 | AWK='$AWK' |
| 7235 | test -n "\$AWK" || AWK=awk |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7236 | _ACEOF |
| 7237 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7238 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7239 | # The default lists apply if the user does not specify any file. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7240 | ac_need_defaults=: |
| 7241 | while test $# != 0 |
| 7242 | do |
| 7243 | case $1 in |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7244 | --*=?*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7245 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 7246 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7247 | ac_shift=: |
| 7248 | ;; |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7249 | --*=) |
| 7250 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 7251 | ac_optarg= |
| 7252 | ac_shift=: |
| 7253 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7254 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7255 | ac_option=$1 |
| 7256 | ac_optarg=$2 |
| 7257 | ac_shift=shift |
| 7258 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7259 | esac |
| 7260 | |
| 7261 | case $ac_option in |
| 7262 | # Handling of the options. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7263 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 7264 | ac_cs_recheck=: ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7265 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7266 | $as_echo "$ac_cs_version"; exit ;; |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 7267 | --config | --confi | --conf | --con | --co | --c ) |
| 7268 | $as_echo "$ac_cs_config"; exit ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7269 | --debug | --debu | --deb | --de | --d | -d ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7270 | debug=: ;; |
| 7271 | --file | --fil | --fi | --f ) |
| 7272 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7273 | case $ac_optarg in |
| 7274 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7275 | '') as_fn_error $? "missing file argument" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7276 | esac |
| 7277 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7278 | ac_need_defaults=false;; |
| 7279 | --header | --heade | --head | --hea ) |
| 7280 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7281 | case $ac_optarg in |
| 7282 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 7283 | esac |
| 7284 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7285 | ac_need_defaults=false;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7286 | --he | --h) |
| 7287 | # Conflict between --help and --header |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7288 | as_fn_error $? "ambiguous option: \`$1' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7289 | Try \`$0 --help' for more information.";; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7290 | --help | --hel | -h ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7291 | $as_echo "$ac_cs_usage"; exit ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7292 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 7293 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 7294 | ac_cs_silent=: ;; |
| 7295 | |
| 7296 | # This is an error. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7297 | -*) as_fn_error $? "unrecognized option: \`$1' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7298 | Try \`$0 --help' for more information." ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7299 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7300 | *) as_fn_append ac_config_targets " $1" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7301 | ac_need_defaults=false ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7302 | |
| 7303 | esac |
| 7304 | shift |
| 7305 | done |
| 7306 | |
| 7307 | ac_configure_extra_args= |
| 7308 | |
| 7309 | if $ac_cs_silent; then |
| 7310 | exec 6>/dev/null |
| 7311 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 7312 | fi |
| 7313 | |
| 7314 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7315 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7316 | if \$ac_cs_recheck; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7317 | 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] | 7318 | shift |
| 7319 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 7320 | CONFIG_SHELL='$SHELL' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7321 | export CONFIG_SHELL |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7322 | exec "\$@" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7323 | fi |
| 7324 | |
| 7325 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7326 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7327 | exec 5>>config.log |
| 7328 | { |
| 7329 | echo |
| 7330 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 7331 | ## Running $as_me. ## |
| 7332 | _ASBOX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7333 | $as_echo "$ac_log" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7334 | } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7335 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7336 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7337 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7338 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7339 | # INIT-COMMANDS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7340 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7341 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 7342 | |
| 7343 | _ACEOF |
| 7344 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7345 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7346 | |
| 7347 | # Handling of arguments. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7348 | for ac_config_target in $ac_config_targets |
| 7349 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7350 | case $ac_config_target in |
| 7351 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 7352 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 7353 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 7354 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7355 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7356 | esac |
| 7357 | done |
| 7358 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7359 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7360 | # If the user did not use the arguments to specify the items to instantiate, |
| 7361 | # then the envvar interface is used. Set only those that are not. |
| 7362 | # We use the long form for the default assignment because of an extremely |
| 7363 | # bizarre bug on SunOS 4.1.3. |
| 7364 | if $ac_need_defaults; then |
| 7365 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 7366 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 7367 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 7368 | fi |
| 7369 | |
| 7370 | # Have a temporary directory for convenience. Make it in the build tree |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7371 | # simply because there is no reason against having it here, and in addition, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7372 | # creating and moving files from /tmp can sometimes cause problems. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7373 | # Hook for its removal unless debugging. |
| 7374 | # Note that there is a small window in which the directory will not be cleaned: |
| 7375 | # after its creation but before its name has been assigned to `$tmp'. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7376 | $debug || |
| 7377 | { |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7378 | tmp= ac_tmp= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7379 | trap 'exit_status=$? |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7380 | : "${ac_tmp:=$tmp}" |
| 7381 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7382 | ' 0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7383 | trap 'as_fn_exit 1' 1 2 13 15 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7384 | } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7385 | # Create a (secure) tmp directory for tmp files. |
| 7386 | |
| 7387 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7388 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7389 | test -d "$tmp" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7390 | } || |
| 7391 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7392 | tmp=./conf$$-$RANDOM |
| 7393 | (umask 077 && mkdir "$tmp") |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7394 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 7395 | ac_tmp=$tmp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7396 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7397 | # Set up the scripts for CONFIG_FILES section. |
| 7398 | # No need to generate them if there are no CONFIG_FILES. |
| 7399 | # This happens for instance with `./config.status config.h'. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7400 | if test -n "$CONFIG_FILES"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7401 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7402 | |
| 7403 | ac_cr=`echo X | tr X '\015'` |
| 7404 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 7405 | # But we know of no other shell where ac_cr would be empty at this |
| 7406 | # point, so we can use a bashism as a fallback. |
| 7407 | if test "x$ac_cr" = x; then |
| 7408 | eval ac_cr=\$\'\\r\' |
| 7409 | fi |
| 7410 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 7411 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7412 | ac_cs_awk_cr='\\r' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7413 | else |
| 7414 | ac_cs_awk_cr=$ac_cr |
| 7415 | fi |
| 7416 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7417 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7418 | _ACEOF |
| 7419 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7420 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7421 | { |
| 7422 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 7423 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 7424 | echo "_ACEOF" |
| 7425 | } >conf$$subs.sh || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7426 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 7427 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7428 | ac_delim='%!_!# ' |
| 7429 | for ac_last_try in false false false false false :; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7430 | . ./conf$$subs.sh || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7431 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7432 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7433 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 7434 | if test $ac_delim_n = $ac_delim_num; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7435 | break |
| 7436 | elif $ac_last_try; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7437 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7438 | else |
| 7439 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7440 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7441 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7442 | rm -f conf$$subs.sh |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7443 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7444 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7445 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7446 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7447 | sed -n ' |
| 7448 | h |
| 7449 | s/^/S["/; s/!.*/"]=/ |
| 7450 | p |
| 7451 | g |
| 7452 | s/^[^!]*!// |
| 7453 | :repl |
| 7454 | t repl |
| 7455 | s/'"$ac_delim"'$// |
| 7456 | t delim |
| 7457 | :nl |
| 7458 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 7459 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7460 | t more1 |
| 7461 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 7462 | p |
| 7463 | n |
| 7464 | b repl |
| 7465 | :more1 |
| 7466 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 7467 | p |
| 7468 | g |
| 7469 | s/.\{148\}// |
| 7470 | t nl |
| 7471 | :delim |
| 7472 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 7473 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7474 | t more2 |
| 7475 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 7476 | p |
| 7477 | b |
| 7478 | :more2 |
| 7479 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 7480 | p |
| 7481 | g |
| 7482 | s/.\{148\}// |
| 7483 | t delim |
| 7484 | ' <conf$$subs.awk | sed ' |
| 7485 | /^[^""]/{ |
| 7486 | N |
| 7487 | s/\n// |
| 7488 | } |
| 7489 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 7490 | rm -f conf$$subs.awk |
| 7491 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7492 | _ACAWK |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7493 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7494 | for (key in S) S_is_set[key] = 1 |
| 7495 | FS = "" |
| 7496 | |
| 7497 | } |
| 7498 | { |
| 7499 | line = $ 0 |
| 7500 | nfields = split(line, field, "@") |
| 7501 | substed = 0 |
| 7502 | len = length(field[1]) |
| 7503 | for (i = 2; i < nfields; i++) { |
| 7504 | key = field[i] |
| 7505 | keylen = length(key) |
| 7506 | if (S_is_set[key]) { |
| 7507 | value = S[key] |
| 7508 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 7509 | len += length(value) + length(field[++i]) |
| 7510 | substed = 1 |
| 7511 | } else |
| 7512 | len += 1 + keylen |
| 7513 | } |
| 7514 | |
| 7515 | print line |
| 7516 | } |
| 7517 | |
| 7518 | _ACAWK |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7519 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7520 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7521 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 7522 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 7523 | else |
| 7524 | cat |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7525 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 7526 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7527 | _ACEOF |
| 7528 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7529 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 7530 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7531 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 7532 | # (actually we leave an empty line to preserve line numbers). |
| 7533 | if test "x$srcdir" = x.; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7534 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 7535 | h |
| 7536 | s/// |
| 7537 | s/^/:/ |
| 7538 | s/[ ]*$/:/ |
| 7539 | s/:\$(srcdir):/:/g |
| 7540 | s/:\${srcdir}:/:/g |
| 7541 | s/:@srcdir@:/:/g |
| 7542 | s/^:*// |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7543 | s/:*$// |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7544 | x |
| 7545 | s/\(=[ ]*\).*/\1/ |
| 7546 | G |
| 7547 | s/\n// |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7548 | s/^[^=]*=[ ]*$// |
| 7549 | }' |
| 7550 | fi |
| 7551 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7552 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7553 | fi # test -n "$CONFIG_FILES" |
| 7554 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7555 | # Set up the scripts for CONFIG_HEADERS section. |
| 7556 | # No need to generate them if there are no CONFIG_HEADERS. |
| 7557 | # This happens for instance with `./config.status Makefile'. |
| 7558 | if test -n "$CONFIG_HEADERS"; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7559 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7560 | BEGIN { |
| 7561 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7562 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7563 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 7564 | # here-document in config.status, that substitutes the proper values into |
| 7565 | # config.h.in to produce config.h. |
| 7566 | |
| 7567 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 7568 | # handling of long lines. |
| 7569 | ac_delim='%!_!# ' |
| 7570 | for ac_last_try in false false :; do |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7571 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 7572 | if test -z "$ac_tt"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7573 | break |
| 7574 | elif $ac_last_try; then |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7575 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7576 | else |
| 7577 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 7578 | fi |
| 7579 | done |
| 7580 | |
| 7581 | # For the awk script, D is an array of macro values keyed by name, |
| 7582 | # likewise P contains macro parameters if any. Preserve backslash |
| 7583 | # newline sequences. |
| 7584 | |
| 7585 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 7586 | sed -n ' |
| 7587 | s/.\{148\}/&'"$ac_delim"'/g |
| 7588 | t rset |
| 7589 | :rset |
| 7590 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 7591 | t def |
| 7592 | d |
| 7593 | :def |
| 7594 | s/\\$// |
| 7595 | t bsnl |
| 7596 | s/["\\]/\\&/g |
| 7597 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 7598 | D["\1"]=" \3"/p |
| 7599 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 7600 | d |
| 7601 | :bsnl |
| 7602 | s/["\\]/\\&/g |
| 7603 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 7604 | D["\1"]=" \3\\\\\\n"\\/p |
| 7605 | t cont |
| 7606 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 7607 | t cont |
| 7608 | d |
| 7609 | :cont |
| 7610 | n |
| 7611 | s/.\{148\}/&'"$ac_delim"'/g |
| 7612 | t clear |
| 7613 | :clear |
| 7614 | s/\\$// |
| 7615 | t bsnlc |
| 7616 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 7617 | d |
| 7618 | :bsnlc |
| 7619 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 7620 | b cont |
| 7621 | ' <confdefs.h | sed ' |
| 7622 | s/'"$ac_delim"'/"\\\ |
| 7623 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 7624 | |
| 7625 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7626 | for (key in D) D_is_set[key] = 1 |
| 7627 | FS = "" |
| 7628 | } |
| 7629 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 7630 | line = \$ 0 |
| 7631 | split(line, arg, " ") |
| 7632 | if (arg[1] == "#") { |
| 7633 | defundef = arg[2] |
| 7634 | mac1 = arg[3] |
| 7635 | } else { |
| 7636 | defundef = substr(arg[1], 2) |
| 7637 | mac1 = arg[2] |
| 7638 | } |
| 7639 | split(mac1, mac2, "(") #) |
| 7640 | macro = mac2[1] |
| 7641 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 7642 | if (D_is_set[macro]) { |
| 7643 | # Preserve the white space surrounding the "#". |
| 7644 | print prefix "define", macro P[macro] D[macro] |
| 7645 | next |
| 7646 | } else { |
| 7647 | # Replace #undef with comments. This is necessary, for example, |
| 7648 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 7649 | # on some systems where configure will not decide to define it. |
| 7650 | if (defundef == "undef") { |
| 7651 | print "/*", prefix defundef, macro, "*/" |
| 7652 | next |
| 7653 | } |
| 7654 | } |
| 7655 | } |
| 7656 | { print } |
| 7657 | _ACAWK |
| 7658 | _ACEOF |
| 7659 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7660 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7661 | fi # test -n "$CONFIG_HEADERS" |
| 7662 | |
| 7663 | |
| 7664 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 7665 | shift |
| 7666 | for ac_tag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7667 | do |
| 7668 | case $ac_tag in |
| 7669 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 7670 | esac |
| 7671 | case $ac_mode$ac_tag in |
| 7672 | :[FHL]*:*);; |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7673 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7674 | :[FH]-) ac_tag=-:-;; |
| 7675 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 7676 | esac |
| 7677 | ac_save_IFS=$IFS |
| 7678 | IFS=: |
| 7679 | set x $ac_tag |
| 7680 | IFS=$ac_save_IFS |
| 7681 | shift |
| 7682 | ac_file=$1 |
| 7683 | shift |
| 7684 | |
| 7685 | case $ac_mode in |
| 7686 | :L) ac_source=$1;; |
| 7687 | :[FH]) |
| 7688 | ac_file_inputs= |
| 7689 | for ac_f |
| 7690 | do |
| 7691 | case $ac_f in |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7692 | -) ac_f="$ac_tmp/stdin";; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7693 | *) # Look for the file first in the build tree, then in the source tree |
| 7694 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 7695 | # because $ac_f cannot contain `:'. |
| 7696 | test -f "$ac_f" || |
| 7697 | case $ac_f in |
| 7698 | [\\/$]*) false;; |
| 7699 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 7700 | esac || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7701 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7702 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7703 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 7704 | as_fn_append ac_file_inputs " '$ac_f'" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7705 | done |
| 7706 | |
| 7707 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 7708 | # use $as_me), people would be surprised to read: |
| 7709 | # /* config.h. Generated by config.status. */ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7710 | configure_input='Generated from '` |
| 7711 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 7712 | `' by configure.' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7713 | if test x"$ac_file" != x-; then |
| 7714 | configure_input="$ac_file. $configure_input" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7715 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 7716 | $as_echo "$as_me: creating $ac_file" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7717 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7718 | # Neutralize special characters interpreted by sed in replacement strings. |
| 7719 | case $configure_input in #( |
| 7720 | *\&* | *\|* | *\\* ) |
| 7721 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 7722 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 7723 | *) ac_sed_conf_input=$configure_input;; |
| 7724 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7725 | |
| 7726 | case $ac_tag in |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7727 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 7728 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7729 | esac |
| 7730 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7731 | esac |
| 7732 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7733 | ac_dir=`$as_dirname -- "$ac_file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7734 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7735 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 7736 | X"$ac_file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7737 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7738 | $as_echo X"$ac_file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7739 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7740 | s//\1/ |
| 7741 | q |
| 7742 | } |
| 7743 | /^X\(\/\/\)[^/].*/{ |
| 7744 | s//\1/ |
| 7745 | q |
| 7746 | } |
| 7747 | /^X\(\/\/\)$/{ |
| 7748 | s//\1/ |
| 7749 | q |
| 7750 | } |
| 7751 | /^X\(\/\).*/{ |
| 7752 | s//\1/ |
| 7753 | q |
| 7754 | } |
| 7755 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7756 | as_dir="$ac_dir"; as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7757 | ac_builddir=. |
| 7758 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7759 | case "$ac_dir" in |
| 7760 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 7761 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7762 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7763 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7764 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7765 | case $ac_top_builddir_sub in |
| 7766 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 7767 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 7768 | esac ;; |
| 7769 | esac |
| 7770 | ac_abs_top_builddir=$ac_pwd |
| 7771 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 7772 | # for backward compatibility: |
| 7773 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7774 | |
| 7775 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7776 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7777 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7778 | ac_top_srcdir=$ac_top_builddir_sub |
| 7779 | ac_abs_top_srcdir=$ac_pwd ;; |
| 7780 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7781 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7782 | ac_top_srcdir=$srcdir |
| 7783 | ac_abs_top_srcdir=$srcdir ;; |
| 7784 | *) # Relative name. |
| 7785 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 7786 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 7787 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7788 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7789 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7790 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7791 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7792 | case $ac_mode in |
| 7793 | :F) |
| 7794 | # |
| 7795 | # CONFIG_FILE |
| 7796 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7797 | |
| 7798 | case $INSTALL in |
| 7799 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7800 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7801 | esac |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 7802 | ac_MKDIR_P=$MKDIR_P |
| 7803 | case $MKDIR_P in |
| 7804 | [\\/$]* | ?:[\\/]* ) ;; |
| 7805 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 7806 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7807 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7808 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7809 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7810 | # If the template does not know about datarootdir, expand it. |
| 7811 | # FIXME: This hack should be removed a few years after 2.60. |
| 7812 | ac_datarootdir_hack=; ac_datarootdir_seen= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7813 | ac_sed_dataroot=' |
| 7814 | /datarootdir/ { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7815 | p |
| 7816 | q |
| 7817 | } |
| 7818 | /@datadir@/p |
| 7819 | /@docdir@/p |
| 7820 | /@infodir@/p |
| 7821 | /@localedir@/p |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7822 | /@mandir@/p' |
| 7823 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7824 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 7825 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 7827 | $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] | 7828 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7829 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7830 | ac_datarootdir_hack=' |
| 7831 | s&@datadir@&$datadir&g |
| 7832 | s&@docdir@&$docdir&g |
| 7833 | s&@infodir@&$infodir&g |
| 7834 | s&@localedir@&$localedir&g |
| 7835 | s&@mandir@&$mandir&g |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7836 | s&\\\${datarootdir}&$datarootdir&g' ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7837 | esac |
| 7838 | _ACEOF |
| 7839 | |
| 7840 | # Neutralize VPATH when `$srcdir' = `.'. |
| 7841 | # Shell code in configure.ac might set extrasub. |
| 7842 | # FIXME: do we really want to maintain this feature? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7843 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7844 | ac_sed_extra="$ac_vpsub |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7845 | $extrasub |
| 7846 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7847 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7848 | :t |
| 7849 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7850 | s|@configure_input@|$ac_sed_conf_input|;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7851 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7852 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7853 | s&@srcdir@&$ac_srcdir&;t t |
| 7854 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 7855 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 7856 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 7857 | s&@builddir@&$ac_builddir&;t t |
| 7858 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 7859 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 7860 | s&@INSTALL@&$ac_INSTALL&;t t |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 7861 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7862 | $ac_datarootdir_hack |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7863 | " |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7864 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 7865 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7866 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7867 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7868 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 7869 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 7870 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7871 | { $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] | 7872 | which seems to be undefined. Please make sure it is defined" >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7873 | $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] | 7874 | which seems to be undefined. Please make sure it is defined" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7875 | |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7876 | rm -f "$ac_tmp/stdin" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7877 | case $ac_file in |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7878 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 7879 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7880 | esac \ |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7881 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7882 | ;; |
| 7883 | :H) |
| 7884 | # |
| 7885 | # CONFIG_HEADER |
| 7886 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7887 | if test x"$ac_file" != x-; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7888 | { |
| 7889 | $as_echo "/* $configure_input */" \ |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7890 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 7891 | } >"$ac_tmp/config.h" \ |
| 7892 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 7893 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7894 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 7895 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7896 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7897 | rm -f "$ac_file" |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7898 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 7899 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7900 | fi |
| 7901 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7902 | $as_echo "/* $configure_input */" \ |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7903 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 7904 | || as_fn_error $? "could not create -" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7905 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7906 | # Compute "$ac_file"'s index in $config_headers. |
| 7907 | _am_arg="$ac_file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7908 | _am_stamp_count=1 |
| 7909 | for _am_header in $config_headers :; do |
| 7910 | case $_am_header in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7911 | $_am_arg | $_am_arg:* ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7912 | break ;; |
| 7913 | * ) |
| 7914 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 7915 | esac |
| 7916 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7917 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 7918 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7919 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 7920 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 7921 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 7922 | $as_echo X"$_am_arg" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7923 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7924 | s//\1/ |
| 7925 | q |
| 7926 | } |
| 7927 | /^X\(\/\/\)[^/].*/{ |
| 7928 | s//\1/ |
| 7929 | q |
| 7930 | } |
| 7931 | /^X\(\/\/\)$/{ |
| 7932 | s//\1/ |
| 7933 | q |
| 7934 | } |
| 7935 | /^X\(\/\).*/{ |
| 7936 | s//\1/ |
| 7937 | q |
| 7938 | } |
| 7939 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 7940 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7941 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7942 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 7943 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7944 | ;; |
| 7945 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7946 | |
| 7947 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7948 | case $ac_file$ac_mode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7949 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7950 | # Older Autoconf quotes --file arguments for eval, but not when files |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7951 | # are listed without --file. Let's play safe and only enable the eval |
| 7952 | # if we detect the quoting. |
| 7953 | case $CONFIG_FILES in |
| 7954 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 7955 | *) set x $CONFIG_FILES ;; |
| 7956 | esac |
| 7957 | shift |
| 7958 | for mf |
| 7959 | do |
| 7960 | # Strip MF so we end up with the name of the file. |
| 7961 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 7962 | # Check whether this is an Automake generated Makefile or not. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7963 | # We used to match only the files named 'Makefile.in', but |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7964 | # some people rename them; so instead we look at the file content. |
| 7965 | # Grep'ing the first line is not enough: some people post-process |
| 7966 | # each Makefile.in and add a new line on top of each file to say so. |
| 7967 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 7968 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 7969 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 7970 | dirpart=`$as_dirname -- "$mf" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7971 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7972 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 7973 | X"$mf" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7974 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7975 | $as_echo X"$mf" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7976 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7977 | s//\1/ |
| 7978 | q |
| 7979 | } |
| 7980 | /^X\(\/\/\)[^/].*/{ |
| 7981 | s//\1/ |
| 7982 | q |
| 7983 | } |
| 7984 | /^X\(\/\/\)$/{ |
| 7985 | s//\1/ |
| 7986 | q |
| 7987 | } |
| 7988 | /^X\(\/\).*/{ |
| 7989 | s//\1/ |
| 7990 | q |
| 7991 | } |
| 7992 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7993 | else |
| 7994 | continue |
| 7995 | fi |
| 7996 | # Extract the definition of DEPDIR, am__include, and am__quote |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 7997 | # from the Makefile without running 'make'. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7998 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 7999 | test -z "$DEPDIR" && continue |
| 8000 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8001 | test -z "$am__include" && continue |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8002 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8003 | # Find all dependency output files, they are included files with |
| 8004 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 8005 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 8006 | # expansion. |
| 8007 | for file in `sed -n " |
| 8008 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8009 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8010 | # Make sure the directory exists. |
| 8011 | test -f "$dirpart/$file" && continue |
| 8012 | fdir=`$as_dirname -- "$file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8013 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8014 | X"$file" : 'X\(//\)[^/]' \| \ |
| 8015 | X"$file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8016 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8017 | $as_echo X"$file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8018 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 8019 | s//\1/ |
| 8020 | q |
| 8021 | } |
| 8022 | /^X\(\/\/\)[^/].*/{ |
| 8023 | s//\1/ |
| 8024 | q |
| 8025 | } |
| 8026 | /^X\(\/\/\)$/{ |
| 8027 | s//\1/ |
| 8028 | q |
| 8029 | } |
| 8030 | /^X\(\/\).*/{ |
| 8031 | s//\1/ |
| 8032 | q |
| 8033 | } |
| 8034 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8035 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 8036 | # echo "creating $dirpart/$file" |
| 8037 | echo '# dummy' > "$dirpart/$file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8038 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8039 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8040 | } |
| 8041 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8042 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8043 | esac |
| 8044 | done # for ac_tag |
| 8045 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8046 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8047 | as_fn_exit 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8048 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8049 | ac_clean_files=$ac_clean_files_save |
| 8050 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8051 | test $ac_write_fail = 0 || |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8052 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8053 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8054 | |
| 8055 | # configure is writing to config.log, and then calls config.status. |
| 8056 | # config.status does its own redirection, appending to config.log. |
| 8057 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 8058 | # by configure, so config.status won't be able to write to it; its |
| 8059 | # output is simply discarded. So we exec the FD to /dev/null, |
| 8060 | # effectively closing config.log, so it can be properly (re)opened and |
| 8061 | # appended to by config.status. When coming back to configure, we |
| 8062 | # need to make the FD available again. |
| 8063 | if test "$no_create" != yes; then |
| 8064 | ac_cs_success=: |
| 8065 | ac_config_status_args= |
| 8066 | test "$silent" = yes && |
| 8067 | ac_config_status_args="$ac_config_status_args --quiet" |
| 8068 | exec 5>/dev/null |
| 8069 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 8070 | exec 5>>config.log |
| 8071 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 8072 | # would make configure fail if this is the last instruction. |
mark@chromium.org | e9165f4 | 2013-11-23 01:45:20 +0000 | [diff] [blame] | 8073 | $ac_cs_success || as_fn_exit 1 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8074 | fi |
| 8075 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 8076 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 8077 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8078 | fi |
| 8079 | |