NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for mingw-w64 4.0b. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <mingw-w64-public@lists.sourceforge.net>. |
| 6 | # |
| 7 | # |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 9 | # |
| 10 | # |
| 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
| 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
| 16 | |
| 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
| 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 20 | emulate sh |
| 21 | NULLCMD=: |
| 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
| 25 | setopt NO_GLOB_SUBST |
| 26 | else |
| 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
| 32 | esac |
| 33 | fi |
| 34 | |
| 35 | |
| 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 |
| 73 | |
| 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
| 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
| 81 | fi |
| 82 | |
| 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.) |
| 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 92 | as_myself= |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 93 | case $0 in #(( |
| 94 | *[\\/]* ) as_myself=$0 ;; |
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 96 | for as_dir in $PATH |
| 97 | do |
| 98 | IFS=$as_save_IFS |
| 99 | test -z "$as_dir" && as_dir=. |
| 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 101 | done |
| 102 | IFS=$as_save_IFS |
| 103 | |
| 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 |
| 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 113 | exit 1 |
| 114 | fi |
| 115 | |
| 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 || : |
| 123 | done |
| 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
| 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
| 133 | |
| 134 | # CDPATH. |
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 136 | |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +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;} |
NightStrike | 748174d | 2010-02-24 17:55:02 +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 |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 195 | test x\$exitcode = x0 || exit 1 |
| 196 | test -x / || exit 1" |
NightStrike | 748174d | 2010-02-24 17:55:02 +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 | if (eval "$as_required") 2>/dev/null; then : |
| 202 | as_have_required=yes |
| 203 | else |
| 204 | as_have_required=no |
| 205 | fi |
| 206 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 207 | |
| 208 | else |
| 209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 210 | as_found=false |
| 211 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 212 | do |
| 213 | IFS=$as_save_IFS |
| 214 | test -z "$as_dir" && as_dir=. |
| 215 | as_found=: |
| 216 | case $as_dir in #( |
| 217 | /*) |
| 218 | for as_base in sh bash ksh sh5; do |
| 219 | # Try only shells that exist, to save several forks. |
| 220 | as_shell=$as_dir/$as_base |
| 221 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 222 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 223 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 224 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 225 | break 2 |
| 226 | fi |
| 227 | fi |
| 228 | done;; |
| 229 | esac |
| 230 | as_found=false |
| 231 | done |
| 232 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 233 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 234 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 235 | fi; } |
| 236 | IFS=$as_save_IFS |
| 237 | |
| 238 | |
| 239 | if test "x$CONFIG_SHELL" != x; then : |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 240 | export CONFIG_SHELL |
| 241 | # We cannot yet assume a decent shell, so we have to provide a |
| 242 | # neutralization value for shells without unset; and this also |
| 243 | # works around shells that cannot unset nonexistent variables. |
| 244 | # Preserve -v and -x to the replacement shell. |
| 245 | BASH_ENV=/dev/null |
| 246 | ENV=/dev/null |
| 247 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 248 | case $- in # (((( |
| 249 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 250 | *v* ) as_opts=-v ;; |
| 251 | *x* ) as_opts=-x ;; |
| 252 | * ) as_opts= ;; |
| 253 | esac |
| 254 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 255 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 256 | # out after a failed `exec'. |
| 257 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 258 | exit 255 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 259 | fi |
| 260 | |
| 261 | if test x$as_have_required = xno; then : |
| 262 | $as_echo "$0: This script requires a shell more modern than all" |
| 263 | $as_echo "$0: the shells that I found on your system." |
| 264 | if test x${ZSH_VERSION+set} = xset ; then |
| 265 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 266 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 267 | else |
| 268 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 269 | $0: mingw-w64-public@lists.sourceforge.net about your |
| 270 | $0: system, including any error possibly output before this |
| 271 | $0: message. Then install a modern shell, or manually run |
| 272 | $0: the script under such a shell if you do have one." |
| 273 | fi |
| 274 | exit 1 |
| 275 | fi |
| 276 | fi |
| 277 | fi |
| 278 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 279 | export SHELL |
| 280 | # Unset more variables known to interfere with behavior of common tools. |
| 281 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 282 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 283 | |
| 284 | ## --------------------- ## |
| 285 | ## M4sh Shell Functions. ## |
| 286 | ## --------------------- ## |
| 287 | # as_fn_unset VAR |
| 288 | # --------------- |
| 289 | # Portably unset VAR. |
| 290 | as_fn_unset () |
| 291 | { |
| 292 | { eval $1=; unset $1;} |
| 293 | } |
| 294 | as_unset=as_fn_unset |
| 295 | |
| 296 | # as_fn_set_status STATUS |
| 297 | # ----------------------- |
| 298 | # Set $? to STATUS, without forking. |
| 299 | as_fn_set_status () |
| 300 | { |
| 301 | return $1 |
| 302 | } # as_fn_set_status |
| 303 | |
| 304 | # as_fn_exit STATUS |
| 305 | # ----------------- |
| 306 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 307 | as_fn_exit () |
| 308 | { |
| 309 | set +e |
| 310 | as_fn_set_status $1 |
| 311 | exit $1 |
| 312 | } # as_fn_exit |
| 313 | |
| 314 | # as_fn_mkdir_p |
| 315 | # ------------- |
| 316 | # Create "$as_dir" as a directory, including parents if necessary. |
| 317 | as_fn_mkdir_p () |
| 318 | { |
| 319 | |
| 320 | case $as_dir in #( |
| 321 | -*) as_dir=./$as_dir;; |
| 322 | esac |
| 323 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 324 | as_dirs= |
| 325 | while :; do |
| 326 | case $as_dir in #( |
| 327 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 328 | *) as_qdir=$as_dir;; |
| 329 | esac |
| 330 | as_dirs="'$as_qdir' $as_dirs" |
| 331 | as_dir=`$as_dirname -- "$as_dir" || |
| 332 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 333 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 334 | X"$as_dir" : 'X\(//\)$' \| \ |
| 335 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 336 | $as_echo X"$as_dir" | |
| 337 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 338 | s//\1/ |
| 339 | q |
| 340 | } |
| 341 | /^X\(\/\/\)[^/].*/{ |
| 342 | s//\1/ |
| 343 | q |
| 344 | } |
| 345 | /^X\(\/\/\)$/{ |
| 346 | s//\1/ |
| 347 | q |
| 348 | } |
| 349 | /^X\(\/\).*/{ |
| 350 | s//\1/ |
| 351 | q |
| 352 | } |
| 353 | s/.*/./; q'` |
| 354 | test -d "$as_dir" && break |
| 355 | done |
| 356 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 357 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 358 | |
| 359 | |
| 360 | } # as_fn_mkdir_p |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 361 | |
| 362 | # as_fn_executable_p FILE |
| 363 | # ----------------------- |
| 364 | # Test if FILE is an executable regular file. |
| 365 | as_fn_executable_p () |
| 366 | { |
| 367 | test -f "$1" && test -x "$1" |
| 368 | } # as_fn_executable_p |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 369 | # as_fn_append VAR VALUE |
| 370 | # ---------------------- |
| 371 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 372 | # advantage of any shell optimizations that allow amortized linear growth over |
| 373 | # repeated appends, instead of the typical quadratic growth present in naive |
| 374 | # implementations. |
| 375 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 376 | eval 'as_fn_append () |
| 377 | { |
| 378 | eval $1+=\$2 |
| 379 | }' |
| 380 | else |
| 381 | as_fn_append () |
| 382 | { |
| 383 | eval $1=\$$1\$2 |
| 384 | } |
| 385 | fi # as_fn_append |
| 386 | |
| 387 | # as_fn_arith ARG... |
| 388 | # ------------------ |
| 389 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 390 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 391 | # must be portable across $(()) and expr. |
| 392 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 393 | eval 'as_fn_arith () |
| 394 | { |
| 395 | as_val=$(( $* )) |
| 396 | }' |
| 397 | else |
| 398 | as_fn_arith () |
| 399 | { |
| 400 | as_val=`expr "$@" || test $? -eq 1` |
| 401 | } |
| 402 | fi # as_fn_arith |
| 403 | |
| 404 | |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 405 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 406 | # ---------------------------------------- |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 407 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 408 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 409 | # script with STATUS, using 1 if that was 0. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 410 | as_fn_error () |
| 411 | { |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 412 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 413 | if test "$4"; then |
| 414 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 415 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 416 | fi |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 417 | $as_echo "$as_me: error: $2" >&2 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 418 | as_fn_exit $as_status |
| 419 | } # as_fn_error |
| 420 | |
| 421 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 422 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 423 | as_expr=expr |
| 424 | else |
| 425 | as_expr=false |
| 426 | fi |
| 427 | |
| 428 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 429 | as_basename=basename |
| 430 | else |
| 431 | as_basename=false |
| 432 | fi |
| 433 | |
| 434 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 435 | as_dirname=dirname |
| 436 | else |
| 437 | as_dirname=false |
| 438 | fi |
| 439 | |
| 440 | as_me=`$as_basename -- "$0" || |
| 441 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 442 | X"$0" : 'X\(//\)$' \| \ |
| 443 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 444 | $as_echo X/"$0" | |
| 445 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 446 | s//\1/ |
| 447 | q |
| 448 | } |
| 449 | /^X\/\(\/\/\)$/{ |
| 450 | s//\1/ |
| 451 | q |
| 452 | } |
| 453 | /^X\/\(\/\).*/{ |
| 454 | s//\1/ |
| 455 | q |
| 456 | } |
| 457 | s/.*/./; q'` |
| 458 | |
| 459 | # Avoid depending upon Character Ranges. |
| 460 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 461 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 462 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 463 | as_cr_digits='0123456789' |
| 464 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 465 | |
| 466 | |
| 467 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 468 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 469 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 470 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 471 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 472 | sed -n ' |
| 473 | p |
| 474 | /[$]LINENO/= |
| 475 | ' <$as_myself | |
| 476 | sed ' |
| 477 | s/[$]LINENO.*/&-/ |
| 478 | t lineno |
| 479 | b |
| 480 | :lineno |
| 481 | N |
| 482 | :loop |
| 483 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 484 | t loop |
| 485 | s/-\n.*// |
| 486 | ' >$as_me.lineno && |
| 487 | chmod +x "$as_me.lineno" || |
| 488 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 489 | |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 490 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 491 | # already done that, so ensure we don't try to do so again and fall |
| 492 | # in an infinite loop. This has already happened in practice. |
| 493 | _as_can_reexec=no; export _as_can_reexec |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 494 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 495 | # (the dirname of $[0] is not the place where we might find the |
| 496 | # original and so on. Autoconf is especially sensitive to this). |
| 497 | . "./$as_me.lineno" |
| 498 | # Exit status is that of the last command. |
| 499 | exit |
| 500 | } |
| 501 | |
| 502 | ECHO_C= ECHO_N= ECHO_T= |
| 503 | case `echo -n x` in #((((( |
| 504 | -n*) |
| 505 | case `echo 'xy\c'` in |
| 506 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 507 | xy) ECHO_C='\c';; |
| 508 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 509 | ECHO_T=' ';; |
| 510 | esac;; |
| 511 | *) |
| 512 | ECHO_N='-n';; |
| 513 | esac |
| 514 | |
| 515 | rm -f conf$$ conf$$.exe conf$$.file |
| 516 | if test -d conf$$.dir; then |
| 517 | rm -f conf$$.dir/conf$$.file |
| 518 | else |
| 519 | rm -f conf$$.dir |
| 520 | mkdir conf$$.dir 2>/dev/null |
| 521 | fi |
| 522 | if (echo >conf$$.file) 2>/dev/null; then |
| 523 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 524 | as_ln_s='ln -s' |
| 525 | # ... but there are two gotchas: |
| 526 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 527 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 528 | # In both cases, we have to default to `cp -pR'. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 529 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 530 | as_ln_s='cp -pR' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 531 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 532 | as_ln_s=ln |
| 533 | else |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 534 | as_ln_s='cp -pR' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 535 | fi |
| 536 | else |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 537 | as_ln_s='cp -pR' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 538 | fi |
| 539 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 540 | rmdir conf$$.dir 2>/dev/null |
| 541 | |
| 542 | if mkdir -p . 2>/dev/null; then |
| 543 | as_mkdir_p='mkdir -p "$as_dir"' |
| 544 | else |
| 545 | test -d ./-p && rmdir ./-p |
| 546 | as_mkdir_p=false |
| 547 | fi |
| 548 | |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 549 | as_test_x='test -x' |
| 550 | as_executable_p=as_fn_executable_p |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 551 | |
| 552 | # Sed expression to map a string onto a valid CPP name. |
| 553 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 554 | |
| 555 | # Sed expression to map a string onto a valid variable name. |
| 556 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 557 | |
| 558 | |
| 559 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 560 | exec 6>&1 |
| 561 | |
| 562 | # Name of the host. |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 563 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 564 | # so uname gets run too. |
| 565 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 566 | |
| 567 | # |
| 568 | # Initializations. |
| 569 | # |
| 570 | ac_default_prefix=/usr/local |
| 571 | ac_clean_files= |
| 572 | ac_config_libobj_dir=. |
| 573 | LIBOBJS= |
| 574 | cross_compiling=no |
| 575 | subdirs= |
| 576 | MFLAGS= |
| 577 | MAKEFLAGS= |
| 578 | |
| 579 | # Identity of this package. |
| 580 | PACKAGE_NAME='mingw-w64' |
| 581 | PACKAGE_TARNAME='mingw-w64' |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 582 | PACKAGE_VERSION='4.0b' |
| 583 | PACKAGE_STRING='mingw-w64 4.0b' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 584 | PACKAGE_BUGREPORT='mingw-w64-public@lists.sourceforge.net' |
| 585 | PACKAGE_URL='' |
| 586 | |
| 587 | ac_unique_file="AUTHORS" |
| 588 | enable_option_checking=no |
| 589 | ac_subst_vars='LTLIBOBJS |
| 590 | LIBOBJS |
NightStrike | adb344b | 2010-02-26 14:13:00 +0000 | [diff] [blame] | 591 | TOOLS_GENIDL_FALSE |
| 592 | TOOLS_GENIDL_TRUE |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 593 | TOOLS_GENDEF_FALSE |
| 594 | TOOLS_GENDEF_TRUE |
Jonathan Yong | a7a09aa | 2017-10-06 13:48:09 +0000 | [diff] [blame] | 595 | LIBRARIES_WINPTHREADS_FALSE |
| 596 | LIBRARIES_WINPTHREADS_TRUE |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 597 | LIBRARIES_PSEH_FALSE |
| 598 | LIBRARIES_PSEH_TRUE |
| 599 | LIBRARIES_MANGLE_FALSE |
| 600 | LIBRARIES_MANGLE_TRUE |
| 601 | CRT_FALSE |
| 602 | CRT_TRUE |
| 603 | HEADER_FALSE |
| 604 | HEADER_TRUE |
| 605 | subdirs |
| 606 | host_os |
| 607 | host_vendor |
| 608 | host_cpu |
| 609 | host |
| 610 | build_os |
| 611 | build_vendor |
| 612 | build_cpu |
| 613 | build |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 614 | AM_BACKSLASH |
| 615 | AM_DEFAULT_VERBOSITY |
| 616 | AM_DEFAULT_V |
| 617 | AM_V |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 618 | am__untar |
| 619 | am__tar |
| 620 | AMTAR |
| 621 | am__leading_dot |
| 622 | SET_MAKE |
| 623 | AWK |
| 624 | mkdir_p |
| 625 | MKDIR_P |
| 626 | INSTALL_STRIP_PROGRAM |
| 627 | STRIP |
| 628 | install_sh |
| 629 | MAKEINFO |
| 630 | AUTOHEADER |
| 631 | AUTOMAKE |
| 632 | AUTOCONF |
| 633 | ACLOCAL |
| 634 | VERSION |
| 635 | PACKAGE |
| 636 | CYGPATH_W |
| 637 | am__isrc |
| 638 | INSTALL_DATA |
| 639 | INSTALL_SCRIPT |
| 640 | INSTALL_PROGRAM |
| 641 | MAINT |
| 642 | MAINTAINER_MODE_FALSE |
| 643 | MAINTAINER_MODE_TRUE |
| 644 | target_alias |
| 645 | host_alias |
| 646 | build_alias |
| 647 | LIBS |
| 648 | ECHO_T |
| 649 | ECHO_N |
| 650 | ECHO_C |
| 651 | DEFS |
| 652 | mandir |
| 653 | localedir |
| 654 | libdir |
| 655 | psdir |
| 656 | pdfdir |
| 657 | dvidir |
| 658 | htmldir |
| 659 | infodir |
| 660 | docdir |
| 661 | oldincludedir |
| 662 | includedir |
| 663 | localstatedir |
| 664 | sharedstatedir |
| 665 | sysconfdir |
| 666 | datadir |
| 667 | datarootdir |
| 668 | libexecdir |
| 669 | sbindir |
| 670 | bindir |
| 671 | program_transform_name |
| 672 | prefix |
| 673 | exec_prefix |
| 674 | PACKAGE_URL |
| 675 | PACKAGE_BUGREPORT |
| 676 | PACKAGE_STRING |
| 677 | PACKAGE_VERSION |
| 678 | PACKAGE_TARNAME |
| 679 | PACKAGE_NAME |
| 680 | PATH_SEPARATOR |
| 681 | SHELL' |
| 682 | ac_subst_files='' |
| 683 | ac_user_opts=' |
| 684 | enable_option_checking |
| 685 | enable_maintainer_mode |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 686 | enable_silent_rules |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 687 | with_headers |
| 688 | with_crt |
| 689 | with_libraries |
| 690 | with_tools |
| 691 | ' |
| 692 | ac_precious_vars='build_alias |
| 693 | host_alias |
| 694 | target_alias' |
| 695 | ac_subdirs_all='mingw-w64-headers |
| 696 | mingw-w64-crt |
| 697 | mingw-w64-libraries/libmangle |
| 698 | mingw-w64-libraries/pseh |
Jonathan Yong | a7a09aa | 2017-10-06 13:48:09 +0000 | [diff] [blame] | 699 | mingw-w64-libraries/winpthreads |
NightStrike | adb344b | 2010-02-26 14:13:00 +0000 | [diff] [blame] | 700 | mingw-w64-tools/gendef |
| 701 | mingw-w64-tools/genidl' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 702 | |
| 703 | # Initialize some variables set by options. |
| 704 | ac_init_help= |
| 705 | ac_init_version=false |
| 706 | ac_unrecognized_opts= |
| 707 | ac_unrecognized_sep= |
| 708 | # The variables have the same names as the options, with |
| 709 | # dashes changed to underlines. |
| 710 | cache_file=/dev/null |
| 711 | exec_prefix=NONE |
| 712 | no_create= |
| 713 | no_recursion= |
| 714 | prefix=NONE |
| 715 | program_prefix=NONE |
| 716 | program_suffix=NONE |
| 717 | program_transform_name=s,x,x, |
| 718 | silent= |
| 719 | site= |
| 720 | srcdir= |
| 721 | verbose= |
| 722 | x_includes=NONE |
| 723 | x_libraries=NONE |
| 724 | |
| 725 | # Installation directory options. |
| 726 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 727 | # and all the variables that are supposed to be based on exec_prefix |
| 728 | # by default will actually change. |
| 729 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 730 | # (The list follows the same order as the GNU Coding Standards.) |
| 731 | bindir='${exec_prefix}/bin' |
| 732 | sbindir='${exec_prefix}/sbin' |
| 733 | libexecdir='${exec_prefix}/libexec' |
| 734 | datarootdir='${prefix}/share' |
| 735 | datadir='${datarootdir}' |
| 736 | sysconfdir='${prefix}/etc' |
| 737 | sharedstatedir='${prefix}/com' |
| 738 | localstatedir='${prefix}/var' |
| 739 | includedir='${prefix}/include' |
| 740 | oldincludedir='/usr/include' |
| 741 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 742 | infodir='${datarootdir}/info' |
| 743 | htmldir='${docdir}' |
| 744 | dvidir='${docdir}' |
| 745 | pdfdir='${docdir}' |
| 746 | psdir='${docdir}' |
| 747 | libdir='${exec_prefix}/lib' |
| 748 | localedir='${datarootdir}/locale' |
| 749 | mandir='${datarootdir}/man' |
| 750 | |
| 751 | ac_prev= |
| 752 | ac_dashdash= |
| 753 | for ac_option |
| 754 | do |
| 755 | # If the previous option needs an argument, assign it. |
| 756 | if test -n "$ac_prev"; then |
| 757 | eval $ac_prev=\$ac_option |
| 758 | ac_prev= |
| 759 | continue |
| 760 | fi |
| 761 | |
| 762 | case $ac_option in |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 763 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 764 | *=) ac_optarg= ;; |
| 765 | *) ac_optarg=yes ;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 766 | esac |
| 767 | |
| 768 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 769 | |
| 770 | case $ac_dashdash$ac_option in |
| 771 | --) |
| 772 | ac_dashdash=yes ;; |
| 773 | |
| 774 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 775 | ac_prev=bindir ;; |
| 776 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 777 | bindir=$ac_optarg ;; |
| 778 | |
| 779 | -build | --build | --buil | --bui | --bu) |
| 780 | ac_prev=build_alias ;; |
| 781 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 782 | build_alias=$ac_optarg ;; |
| 783 | |
| 784 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 785 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 786 | ac_prev=cache_file ;; |
| 787 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 788 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 789 | cache_file=$ac_optarg ;; |
| 790 | |
| 791 | --config-cache | -C) |
| 792 | cache_file=config.cache ;; |
| 793 | |
| 794 | -datadir | --datadir | --datadi | --datad) |
| 795 | ac_prev=datadir ;; |
| 796 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 797 | datadir=$ac_optarg ;; |
| 798 | |
| 799 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 800 | | --dataroo | --dataro | --datar) |
| 801 | ac_prev=datarootdir ;; |
| 802 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 803 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 804 | datarootdir=$ac_optarg ;; |
| 805 | |
| 806 | -disable-* | --disable-*) |
| 807 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 808 | # Reject names that are not valid shell variable names. |
| 809 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 810 | as_fn_error $? "invalid feature name: $ac_useropt" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 811 | ac_useropt_orig=$ac_useropt |
| 812 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 813 | case $ac_user_opts in |
| 814 | *" |
| 815 | "enable_$ac_useropt" |
| 816 | "*) ;; |
| 817 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 818 | ac_unrecognized_sep=', ';; |
| 819 | esac |
| 820 | eval enable_$ac_useropt=no ;; |
| 821 | |
| 822 | -docdir | --docdir | --docdi | --doc | --do) |
| 823 | ac_prev=docdir ;; |
| 824 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 825 | docdir=$ac_optarg ;; |
| 826 | |
| 827 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 828 | ac_prev=dvidir ;; |
| 829 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 830 | dvidir=$ac_optarg ;; |
| 831 | |
| 832 | -enable-* | --enable-*) |
| 833 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 834 | # Reject names that are not valid shell variable names. |
| 835 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 836 | as_fn_error $? "invalid feature name: $ac_useropt" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 837 | ac_useropt_orig=$ac_useropt |
| 838 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 839 | case $ac_user_opts in |
| 840 | *" |
| 841 | "enable_$ac_useropt" |
| 842 | "*) ;; |
| 843 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 844 | ac_unrecognized_sep=', ';; |
| 845 | esac |
| 846 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 847 | |
| 848 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 849 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 850 | | --exec | --exe | --ex) |
| 851 | ac_prev=exec_prefix ;; |
| 852 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 853 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 854 | | --exec=* | --exe=* | --ex=*) |
| 855 | exec_prefix=$ac_optarg ;; |
| 856 | |
| 857 | -gas | --gas | --ga | --g) |
| 858 | # Obsolete; use --with-gas. |
| 859 | with_gas=yes ;; |
| 860 | |
| 861 | -help | --help | --hel | --he | -h) |
| 862 | ac_init_help=long ;; |
| 863 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 864 | ac_init_help=recursive ;; |
| 865 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 866 | ac_init_help=short ;; |
| 867 | |
| 868 | -host | --host | --hos | --ho) |
| 869 | ac_prev=host_alias ;; |
| 870 | -host=* | --host=* | --hos=* | --ho=*) |
| 871 | host_alias=$ac_optarg ;; |
| 872 | |
| 873 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 874 | ac_prev=htmldir ;; |
| 875 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 876 | | --ht=*) |
| 877 | htmldir=$ac_optarg ;; |
| 878 | |
| 879 | -includedir | --includedir | --includedi | --included | --include \ |
| 880 | | --includ | --inclu | --incl | --inc) |
| 881 | ac_prev=includedir ;; |
| 882 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 883 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 884 | includedir=$ac_optarg ;; |
| 885 | |
| 886 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 887 | ac_prev=infodir ;; |
| 888 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 889 | infodir=$ac_optarg ;; |
| 890 | |
| 891 | -libdir | --libdir | --libdi | --libd) |
| 892 | ac_prev=libdir ;; |
| 893 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 894 | libdir=$ac_optarg ;; |
| 895 | |
| 896 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 897 | | --libexe | --libex | --libe) |
| 898 | ac_prev=libexecdir ;; |
| 899 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 900 | | --libexe=* | --libex=* | --libe=*) |
| 901 | libexecdir=$ac_optarg ;; |
| 902 | |
| 903 | -localedir | --localedir | --localedi | --localed | --locale) |
| 904 | ac_prev=localedir ;; |
| 905 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 906 | localedir=$ac_optarg ;; |
| 907 | |
| 908 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 909 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 910 | ac_prev=localstatedir ;; |
| 911 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 912 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 913 | localstatedir=$ac_optarg ;; |
| 914 | |
| 915 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 916 | ac_prev=mandir ;; |
| 917 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 918 | mandir=$ac_optarg ;; |
| 919 | |
| 920 | -nfp | --nfp | --nf) |
| 921 | # Obsolete; use --without-fp. |
| 922 | with_fp=no ;; |
| 923 | |
| 924 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 925 | | --no-cr | --no-c | -n) |
| 926 | no_create=yes ;; |
| 927 | |
| 928 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 929 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 930 | no_recursion=yes ;; |
| 931 | |
| 932 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 933 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 934 | | --oldin | --oldi | --old | --ol | --o) |
| 935 | ac_prev=oldincludedir ;; |
| 936 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 937 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 938 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 939 | oldincludedir=$ac_optarg ;; |
| 940 | |
| 941 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 942 | ac_prev=prefix ;; |
| 943 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 944 | prefix=$ac_optarg ;; |
| 945 | |
| 946 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 947 | | --program-pre | --program-pr | --program-p) |
| 948 | ac_prev=program_prefix ;; |
| 949 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 950 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 951 | program_prefix=$ac_optarg ;; |
| 952 | |
| 953 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 954 | | --program-suf | --program-su | --program-s) |
| 955 | ac_prev=program_suffix ;; |
| 956 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 957 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 958 | program_suffix=$ac_optarg ;; |
| 959 | |
| 960 | -program-transform-name | --program-transform-name \ |
| 961 | | --program-transform-nam | --program-transform-na \ |
| 962 | | --program-transform-n | --program-transform- \ |
| 963 | | --program-transform | --program-transfor \ |
| 964 | | --program-transfo | --program-transf \ |
| 965 | | --program-trans | --program-tran \ |
| 966 | | --progr-tra | --program-tr | --program-t) |
| 967 | ac_prev=program_transform_name ;; |
| 968 | -program-transform-name=* | --program-transform-name=* \ |
| 969 | | --program-transform-nam=* | --program-transform-na=* \ |
| 970 | | --program-transform-n=* | --program-transform-=* \ |
| 971 | | --program-transform=* | --program-transfor=* \ |
| 972 | | --program-transfo=* | --program-transf=* \ |
| 973 | | --program-trans=* | --program-tran=* \ |
| 974 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 975 | program_transform_name=$ac_optarg ;; |
| 976 | |
| 977 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 978 | ac_prev=pdfdir ;; |
| 979 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 980 | pdfdir=$ac_optarg ;; |
| 981 | |
| 982 | -psdir | --psdir | --psdi | --psd | --ps) |
| 983 | ac_prev=psdir ;; |
| 984 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 985 | psdir=$ac_optarg ;; |
| 986 | |
| 987 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 988 | | -silent | --silent | --silen | --sile | --sil) |
| 989 | silent=yes ;; |
| 990 | |
| 991 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 992 | ac_prev=sbindir ;; |
| 993 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 994 | | --sbi=* | --sb=*) |
| 995 | sbindir=$ac_optarg ;; |
| 996 | |
| 997 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 998 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 999 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1000 | | --sha | --sh) |
| 1001 | ac_prev=sharedstatedir ;; |
| 1002 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1003 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1004 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1005 | | --sha=* | --sh=*) |
| 1006 | sharedstatedir=$ac_optarg ;; |
| 1007 | |
| 1008 | -site | --site | --sit) |
| 1009 | ac_prev=site ;; |
| 1010 | -site=* | --site=* | --sit=*) |
| 1011 | site=$ac_optarg ;; |
| 1012 | |
| 1013 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1014 | ac_prev=srcdir ;; |
| 1015 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1016 | srcdir=$ac_optarg ;; |
| 1017 | |
| 1018 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1019 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1020 | ac_prev=sysconfdir ;; |
| 1021 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1022 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1023 | sysconfdir=$ac_optarg ;; |
| 1024 | |
| 1025 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1026 | ac_prev=target_alias ;; |
| 1027 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1028 | target_alias=$ac_optarg ;; |
| 1029 | |
| 1030 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1031 | verbose=yes ;; |
| 1032 | |
| 1033 | -version | --version | --versio | --versi | --vers | -V) |
| 1034 | ac_init_version=: ;; |
| 1035 | |
| 1036 | -with-* | --with-*) |
| 1037 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1038 | # Reject names that are not valid shell variable names. |
| 1039 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1040 | as_fn_error $? "invalid package name: $ac_useropt" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1041 | ac_useropt_orig=$ac_useropt |
| 1042 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1043 | case $ac_user_opts in |
| 1044 | *" |
| 1045 | "with_$ac_useropt" |
| 1046 | "*) ;; |
| 1047 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1048 | ac_unrecognized_sep=', ';; |
| 1049 | esac |
| 1050 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1051 | |
| 1052 | -without-* | --without-*) |
| 1053 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1054 | # Reject names that are not valid shell variable names. |
| 1055 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1056 | as_fn_error $? "invalid package name: $ac_useropt" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1057 | ac_useropt_orig=$ac_useropt |
| 1058 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1059 | case $ac_user_opts in |
| 1060 | *" |
| 1061 | "with_$ac_useropt" |
| 1062 | "*) ;; |
| 1063 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1064 | ac_unrecognized_sep=', ';; |
| 1065 | esac |
| 1066 | eval with_$ac_useropt=no ;; |
| 1067 | |
| 1068 | --x) |
| 1069 | # Obsolete; use --with-x. |
| 1070 | with_x=yes ;; |
| 1071 | |
| 1072 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1073 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1074 | ac_prev=x_includes ;; |
| 1075 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1076 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1077 | x_includes=$ac_optarg ;; |
| 1078 | |
| 1079 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1080 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1081 | ac_prev=x_libraries ;; |
| 1082 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1083 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1084 | x_libraries=$ac_optarg ;; |
| 1085 | |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1086 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1087 | Try \`$0 --help' for more information" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1088 | ;; |
| 1089 | |
| 1090 | *=*) |
| 1091 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1092 | # Reject names that are not valid shell variable names. |
| 1093 | case $ac_envvar in #( |
| 1094 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1095 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1096 | esac |
| 1097 | eval $ac_envvar=\$ac_optarg |
| 1098 | export $ac_envvar ;; |
| 1099 | |
| 1100 | *) |
| 1101 | # FIXME: should be removed in autoconf 3.0. |
| 1102 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1103 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1104 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 1105 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1106 | ;; |
| 1107 | |
| 1108 | esac |
| 1109 | done |
| 1110 | |
| 1111 | if test -n "$ac_prev"; then |
| 1112 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1113 | as_fn_error $? "missing argument to $ac_option" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1114 | fi |
| 1115 | |
| 1116 | if test -n "$ac_unrecognized_opts"; then |
| 1117 | case $enable_option_checking in |
| 1118 | no) ;; |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1119 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1120 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1121 | esac |
| 1122 | fi |
| 1123 | |
| 1124 | # Check all directory arguments for consistency. |
| 1125 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1126 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1127 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1128 | libdir localedir mandir |
| 1129 | do |
| 1130 | eval ac_val=\$$ac_var |
| 1131 | # Remove trailing slashes. |
| 1132 | case $ac_val in |
| 1133 | */ ) |
| 1134 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1135 | eval $ac_var=\$ac_val;; |
| 1136 | esac |
| 1137 | # Be sure to have absolute directory names. |
| 1138 | case $ac_val in |
| 1139 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1140 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1141 | esac |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1142 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1143 | done |
| 1144 | |
| 1145 | # There might be people who depend on the old broken behavior: `$host' |
| 1146 | # used to hold the argument of --host etc. |
| 1147 | # FIXME: To remove some day. |
| 1148 | build=$build_alias |
| 1149 | host=$host_alias |
| 1150 | target=$target_alias |
| 1151 | |
| 1152 | # FIXME: To remove some day. |
| 1153 | if test "x$host_alias" != x; then |
| 1154 | if test "x$build_alias" = x; then |
| 1155 | cross_compiling=maybe |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1156 | elif test "x$build_alias" != "x$host_alias"; then |
| 1157 | cross_compiling=yes |
| 1158 | fi |
| 1159 | fi |
| 1160 | |
| 1161 | ac_tool_prefix= |
| 1162 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1163 | |
| 1164 | test "$silent" = yes && exec 6>/dev/null |
| 1165 | |
| 1166 | |
| 1167 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1168 | ac_ls_di=`ls -di .` && |
| 1169 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1170 | as_fn_error $? "working directory cannot be determined" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1171 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1172 | as_fn_error $? "pwd does not report name of working directory" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1173 | |
| 1174 | |
| 1175 | # Find the source files, if location was not specified. |
| 1176 | if test -z "$srcdir"; then |
| 1177 | ac_srcdir_defaulted=yes |
| 1178 | # Try the directory containing this script, then the parent directory. |
| 1179 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1180 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1181 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1182 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1183 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1184 | $as_echo X"$as_myself" | |
| 1185 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1186 | s//\1/ |
| 1187 | q |
| 1188 | } |
| 1189 | /^X\(\/\/\)[^/].*/{ |
| 1190 | s//\1/ |
| 1191 | q |
| 1192 | } |
| 1193 | /^X\(\/\/\)$/{ |
| 1194 | s//\1/ |
| 1195 | q |
| 1196 | } |
| 1197 | /^X\(\/\).*/{ |
| 1198 | s//\1/ |
| 1199 | q |
| 1200 | } |
| 1201 | s/.*/./; q'` |
| 1202 | srcdir=$ac_confdir |
| 1203 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1204 | srcdir=.. |
| 1205 | fi |
| 1206 | else |
| 1207 | ac_srcdir_defaulted=no |
| 1208 | fi |
| 1209 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1210 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1211 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1212 | fi |
| 1213 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1214 | ac_abs_confdir=`( |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1215 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1216 | pwd)` |
| 1217 | # When building in place, set srcdir=. |
| 1218 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1219 | srcdir=. |
| 1220 | fi |
| 1221 | # Remove unnecessary trailing slashes from srcdir. |
| 1222 | # Double slashes in file names in object file debugging info |
| 1223 | # mess up M-x gdb in Emacs. |
| 1224 | case $srcdir in |
| 1225 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1226 | esac |
| 1227 | for ac_var in $ac_precious_vars; do |
| 1228 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1229 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1230 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1231 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1232 | done |
| 1233 | |
| 1234 | # |
| 1235 | # Report the --help message. |
| 1236 | # |
| 1237 | if test "$ac_init_help" = "long"; then |
| 1238 | # Omit some internal or obsolete options to make the list less imposing. |
| 1239 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1240 | cat <<_ACEOF |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 1241 | \`configure' configures mingw-w64 4.0b to adapt to many kinds of systems. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1242 | |
| 1243 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1244 | |
| 1245 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1246 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1247 | |
| 1248 | Defaults for the options are specified in brackets. |
| 1249 | |
| 1250 | Configuration: |
| 1251 | -h, --help display this help and exit |
| 1252 | --help=short display options specific to this package |
| 1253 | --help=recursive display the short help of all the included packages |
| 1254 | -V, --version display version information and exit |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1255 | -q, --quiet, --silent do not print \`checking ...' messages |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1256 | --cache-file=FILE cache test results in FILE [disabled] |
| 1257 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1258 | -n, --no-create do not create output files |
| 1259 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1260 | |
| 1261 | Installation directories: |
| 1262 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1263 | [$ac_default_prefix] |
| 1264 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1265 | [PREFIX] |
| 1266 | |
| 1267 | By default, \`make install' will install all the files in |
| 1268 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1269 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1270 | for instance \`--prefix=\$HOME'. |
| 1271 | |
| 1272 | For better control, use the options below. |
| 1273 | |
| 1274 | Fine tuning of the installation directories: |
| 1275 | --bindir=DIR user executables [EPREFIX/bin] |
| 1276 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1277 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1278 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1279 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1280 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1281 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1282 | --includedir=DIR C header files [PREFIX/include] |
| 1283 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1284 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1285 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1286 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1287 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1288 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1289 | --docdir=DIR documentation root [DATAROOTDIR/doc/mingw-w64] |
| 1290 | --htmldir=DIR html documentation [DOCDIR] |
| 1291 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1292 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1293 | --psdir=DIR ps documentation [DOCDIR] |
| 1294 | _ACEOF |
| 1295 | |
| 1296 | cat <<\_ACEOF |
| 1297 | |
| 1298 | Program names: |
| 1299 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1300 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1301 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1302 | |
| 1303 | System types: |
| 1304 | --build=BUILD configure for building on BUILD [guessed] |
| 1305 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1306 | _ACEOF |
| 1307 | fi |
| 1308 | |
| 1309 | if test -n "$ac_init_help"; then |
| 1310 | case $ac_init_help in |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 1311 | short | recursive ) echo "Configuration of mingw-w64 4.0b:";; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1312 | esac |
| 1313 | cat <<\_ACEOF |
| 1314 | |
| 1315 | Optional Features: |
| 1316 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1317 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1318 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 1319 | --enable-maintainer-mode |
| 1320 | enable make rules and dependencies not useful (and |
| 1321 | sometimes confusing) to the casual installer |
| 1322 | --enable-silent-rules less verbose build output (undo: "make V=1") |
| 1323 | --disable-silent-rules verbose build output (undo: "make V=0") |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1324 | |
| 1325 | Optional Packages: |
| 1326 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1327 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1328 | --without-headers Skip building the mingw-w64 headers |
| 1329 | --without-crt Skip building the mingw-w64 crt |
Jonathan Yong | 18dd4b3 | 2017-11-06 23:08:03 +0000 | [diff] [blame] | 1330 | --with-libraries=ARG Build the extra mingw-w64 libs, where ARG is comma |
| 1331 | separated list of libmangle, pseh, winpthreads, or |
| 1332 | all |
| 1333 | --with-tools=ARG Build the extra mingw-w64 tools, where ARG is comma |
| 1334 | separated list of gendef, genidl, or all |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1335 | |
| 1336 | Report bugs to <mingw-w64-public@lists.sourceforge.net>. |
| 1337 | _ACEOF |
| 1338 | ac_status=$? |
| 1339 | fi |
| 1340 | |
| 1341 | if test "$ac_init_help" = "recursive"; then |
| 1342 | # If there are subdirs, report their specific --help. |
| 1343 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1344 | test -d "$ac_dir" || |
| 1345 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1346 | continue |
| 1347 | ac_builddir=. |
| 1348 | |
| 1349 | case "$ac_dir" in |
| 1350 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1351 | *) |
| 1352 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1353 | # A ".." for each directory in $ac_dir_suffix. |
| 1354 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1355 | case $ac_top_builddir_sub in |
| 1356 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1357 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1358 | esac ;; |
| 1359 | esac |
| 1360 | ac_abs_top_builddir=$ac_pwd |
| 1361 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1362 | # for backward compatibility: |
| 1363 | ac_top_builddir=$ac_top_build_prefix |
| 1364 | |
| 1365 | case $srcdir in |
| 1366 | .) # We are building in place. |
| 1367 | ac_srcdir=. |
| 1368 | ac_top_srcdir=$ac_top_builddir_sub |
| 1369 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1370 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1371 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1372 | ac_top_srcdir=$srcdir |
| 1373 | ac_abs_top_srcdir=$srcdir ;; |
| 1374 | *) # Relative name. |
| 1375 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1376 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1377 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1378 | esac |
| 1379 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1380 | |
| 1381 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1382 | # Check for guested configure. |
| 1383 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1384 | echo && |
| 1385 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1386 | elif test -f "$ac_srcdir/configure"; then |
| 1387 | echo && |
| 1388 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1389 | else |
| 1390 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1391 | fi || ac_status=$? |
| 1392 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1393 | done |
| 1394 | fi |
| 1395 | |
| 1396 | test -n "$ac_init_help" && exit $ac_status |
| 1397 | if $ac_init_version; then |
| 1398 | cat <<\_ACEOF |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 1399 | mingw-w64 configure 4.0b |
| 1400 | generated by GNU Autoconf 2.69 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1401 | |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 1402 | Copyright (C) 2012 Free Software Foundation, Inc. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1403 | This configure script is free software; the Free Software Foundation |
| 1404 | gives unlimited permission to copy, distribute and modify it. |
| 1405 | _ACEOF |
| 1406 | exit |
| 1407 | fi |
| 1408 | |
| 1409 | ## ------------------------ ## |
| 1410 | ## Autoconf initialization. ## |
| 1411 | ## ------------------------ ## |
| 1412 | cat >config.log <<_ACEOF |
| 1413 | This file contains any messages produced by compilers while |
| 1414 | running configure, to aid debugging if configure makes a mistake. |
| 1415 | |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 1416 | It was created by mingw-w64 $as_me 4.0b, which was |
| 1417 | generated by GNU Autoconf 2.69. Invocation command line was |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1418 | |
| 1419 | $ $0 $@ |
| 1420 | |
| 1421 | _ACEOF |
| 1422 | exec 5>>config.log |
| 1423 | { |
| 1424 | cat <<_ASUNAME |
| 1425 | ## --------- ## |
| 1426 | ## Platform. ## |
| 1427 | ## --------- ## |
| 1428 | |
| 1429 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1430 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1431 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1432 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1433 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1434 | |
| 1435 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1436 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1437 | |
| 1438 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1439 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1440 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1441 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1442 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1443 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1444 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1445 | |
| 1446 | _ASUNAME |
| 1447 | |
| 1448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1449 | for as_dir in $PATH |
| 1450 | do |
| 1451 | IFS=$as_save_IFS |
| 1452 | test -z "$as_dir" && as_dir=. |
| 1453 | $as_echo "PATH: $as_dir" |
| 1454 | done |
| 1455 | IFS=$as_save_IFS |
| 1456 | |
| 1457 | } >&5 |
| 1458 | |
| 1459 | cat >&5 <<_ACEOF |
| 1460 | |
| 1461 | |
| 1462 | ## ----------- ## |
| 1463 | ## Core tests. ## |
| 1464 | ## ----------- ## |
| 1465 | |
| 1466 | _ACEOF |
| 1467 | |
| 1468 | |
| 1469 | # Keep a trace of the command line. |
| 1470 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1471 | # Strip out --silent because we don't want to record it for future runs. |
| 1472 | # Also quote any args containing shell meta-characters. |
| 1473 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1474 | ac_configure_args= |
| 1475 | ac_configure_args0= |
| 1476 | ac_configure_args1= |
| 1477 | ac_must_keep_next=false |
| 1478 | for ac_pass in 1 2 |
| 1479 | do |
| 1480 | for ac_arg |
| 1481 | do |
| 1482 | case $ac_arg in |
| 1483 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1484 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1485 | | -silent | --silent | --silen | --sile | --sil) |
| 1486 | continue ;; |
| 1487 | *\'*) |
| 1488 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1489 | esac |
| 1490 | case $ac_pass in |
| 1491 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 1492 | 2) |
| 1493 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 1494 | if test $ac_must_keep_next = true; then |
| 1495 | ac_must_keep_next=false # Got value, back to normal. |
| 1496 | else |
| 1497 | case $ac_arg in |
| 1498 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1499 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1500 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1501 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1502 | case "$ac_configure_args0 " in |
| 1503 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1504 | esac |
| 1505 | ;; |
| 1506 | -* ) ac_must_keep_next=true ;; |
| 1507 | esac |
| 1508 | fi |
| 1509 | as_fn_append ac_configure_args " '$ac_arg'" |
| 1510 | ;; |
| 1511 | esac |
| 1512 | done |
| 1513 | done |
| 1514 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1515 | { ac_configure_args1=; unset ac_configure_args1;} |
| 1516 | |
| 1517 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1518 | # config.log. We remove comments because anyway the quotes in there |
| 1519 | # would cause problems or look ugly. |
| 1520 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1521 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1522 | trap 'exit_status=$? |
| 1523 | # Save into config.log some information that might help in debugging. |
| 1524 | { |
| 1525 | echo |
| 1526 | |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1527 | $as_echo "## ---------------- ## |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1528 | ## Cache variables. ## |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1529 | ## ---------------- ##" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1530 | echo |
| 1531 | # The following way of writing the cache mishandles newlines in values, |
| 1532 | ( |
| 1533 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1534 | eval ac_val=\$$ac_var |
| 1535 | case $ac_val in #( |
| 1536 | *${as_nl}*) |
| 1537 | case $ac_var in #( |
| 1538 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1539 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 1540 | esac |
| 1541 | case $ac_var in #( |
| 1542 | _ | IFS | as_nl) ;; #( |
| 1543 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1544 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 1545 | esac ;; |
| 1546 | esac |
| 1547 | done |
| 1548 | (set) 2>&1 | |
| 1549 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1550 | *${as_nl}ac_space=\ *) |
| 1551 | sed -n \ |
| 1552 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1553 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1554 | ;; #( |
| 1555 | *) |
| 1556 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 1557 | ;; |
| 1558 | esac | |
| 1559 | sort |
| 1560 | ) |
| 1561 | echo |
| 1562 | |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1563 | $as_echo "## ----------------- ## |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1564 | ## Output variables. ## |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1565 | ## ----------------- ##" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1566 | echo |
| 1567 | for ac_var in $ac_subst_vars |
| 1568 | do |
| 1569 | eval ac_val=\$$ac_var |
| 1570 | case $ac_val in |
| 1571 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1572 | esac |
| 1573 | $as_echo "$ac_var='\''$ac_val'\''" |
| 1574 | done | sort |
| 1575 | echo |
| 1576 | |
| 1577 | if test -n "$ac_subst_files"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1578 | $as_echo "## ------------------- ## |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1579 | ## File substitutions. ## |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1580 | ## ------------------- ##" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1581 | echo |
| 1582 | for ac_var in $ac_subst_files |
| 1583 | do |
| 1584 | eval ac_val=\$$ac_var |
| 1585 | case $ac_val in |
| 1586 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1587 | esac |
| 1588 | $as_echo "$ac_var='\''$ac_val'\''" |
| 1589 | done | sort |
| 1590 | echo |
| 1591 | fi |
| 1592 | |
| 1593 | if test -s confdefs.h; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1594 | $as_echo "## ----------- ## |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1595 | ## confdefs.h. ## |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1596 | ## ----------- ##" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1597 | echo |
| 1598 | cat confdefs.h |
| 1599 | echo |
| 1600 | fi |
| 1601 | test "$ac_signal" != 0 && |
| 1602 | $as_echo "$as_me: caught signal $ac_signal" |
| 1603 | $as_echo "$as_me: exit $exit_status" |
| 1604 | } >&5 |
| 1605 | rm -f core *.core core.conftest.* && |
| 1606 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 1607 | exit $exit_status |
| 1608 | ' 0 |
| 1609 | for ac_signal in 1 2 13 15; do |
| 1610 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 1611 | done |
| 1612 | ac_signal=0 |
| 1613 | |
| 1614 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1615 | rm -f -r conftest* confdefs.h |
| 1616 | |
| 1617 | $as_echo "/* confdefs.h */" > confdefs.h |
| 1618 | |
| 1619 | # Predefined preprocessor variables. |
| 1620 | |
| 1621 | cat >>confdefs.h <<_ACEOF |
| 1622 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1623 | _ACEOF |
| 1624 | |
| 1625 | cat >>confdefs.h <<_ACEOF |
| 1626 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1627 | _ACEOF |
| 1628 | |
| 1629 | cat >>confdefs.h <<_ACEOF |
| 1630 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1631 | _ACEOF |
| 1632 | |
| 1633 | cat >>confdefs.h <<_ACEOF |
| 1634 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1635 | _ACEOF |
| 1636 | |
| 1637 | cat >>confdefs.h <<_ACEOF |
| 1638 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1639 | _ACEOF |
| 1640 | |
| 1641 | cat >>confdefs.h <<_ACEOF |
| 1642 | #define PACKAGE_URL "$PACKAGE_URL" |
| 1643 | _ACEOF |
| 1644 | |
| 1645 | |
| 1646 | # Let the site file select an alternate cache file if it wants to. |
| 1647 | # Prefer an explicitly selected file to automatically selected ones. |
| 1648 | ac_site_file1=NONE |
| 1649 | ac_site_file2=NONE |
| 1650 | if test -n "$CONFIG_SITE"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1651 | # We do not want a PATH search for config.site. |
| 1652 | case $CONFIG_SITE in #(( |
| 1653 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 1654 | */*) ac_site_file1=$CONFIG_SITE;; |
| 1655 | *) ac_site_file1=./$CONFIG_SITE;; |
| 1656 | esac |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1657 | elif test "x$prefix" != xNONE; then |
| 1658 | ac_site_file1=$prefix/share/config.site |
| 1659 | ac_site_file2=$prefix/etc/config.site |
| 1660 | else |
| 1661 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1662 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 1663 | fi |
| 1664 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 1665 | do |
| 1666 | test "x$ac_site_file" = xNONE && continue |
| 1667 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 1668 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 1669 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1670 | sed 's/^/| /' "$ac_site_file" >&5 |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1671 | . "$ac_site_file" \ |
| 1672 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 1673 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1674 | as_fn_error $? "failed to load site script $ac_site_file |
| 1675 | See \`config.log' for more details" "$LINENO" 5; } |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1676 | fi |
| 1677 | done |
| 1678 | |
| 1679 | if test -r "$cache_file"; then |
| 1680 | # Some versions of bash will fail to source /dev/null (special files |
| 1681 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 1682 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 1683 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 1684 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 1685 | case $cache_file in |
| 1686 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1687 | *) . "./$cache_file";; |
| 1688 | esac |
| 1689 | fi |
| 1690 | else |
| 1691 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 1692 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 1693 | >$cache_file |
| 1694 | fi |
| 1695 | |
| 1696 | # Check that the precious variables saved in the cache have kept the same |
| 1697 | # value. |
| 1698 | ac_cache_corrupted=false |
| 1699 | for ac_var in $ac_precious_vars; do |
| 1700 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1701 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1702 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1703 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 1704 | case $ac_old_set,$ac_new_set in |
| 1705 | set,) |
| 1706 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1707 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1708 | ac_cache_corrupted=: ;; |
| 1709 | ,set) |
| 1710 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 1711 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1712 | ac_cache_corrupted=: ;; |
| 1713 | ,);; |
| 1714 | *) |
| 1715 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1716 | # differences in whitespace do not lead to failure. |
| 1717 | ac_old_val_w=`echo x $ac_old_val` |
| 1718 | ac_new_val_w=`echo x $ac_new_val` |
| 1719 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1720 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1721 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1722 | ac_cache_corrupted=: |
| 1723 | else |
| 1724 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1725 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1726 | eval $ac_var=\$ac_old_val |
| 1727 | fi |
| 1728 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 1729 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1730 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 1731 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 1732 | fi;; |
| 1733 | esac |
| 1734 | # Pass precious variables to config.status. |
| 1735 | if test "$ac_new_set" = set; then |
| 1736 | case $ac_new_val in |
| 1737 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1738 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1739 | esac |
| 1740 | case " $ac_configure_args " in |
| 1741 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1742 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 1743 | esac |
| 1744 | fi |
| 1745 | done |
| 1746 | if $ac_cache_corrupted; then |
| 1747 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 1748 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1749 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 1750 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1751 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1752 | fi |
| 1753 | ## -------------------- ## |
| 1754 | ## Main body of script. ## |
| 1755 | ## -------------------- ## |
| 1756 | |
| 1757 | ac_ext=c |
| 1758 | ac_cpp='$CPP $CPPFLAGS' |
| 1759 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1760 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1761 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1762 | |
| 1763 | |
| 1764 | ac_aux_dir= |
| 1765 | for ac_dir in build-aux "$srcdir"/build-aux; do |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1766 | if test -f "$ac_dir/install-sh"; then |
| 1767 | ac_aux_dir=$ac_dir |
| 1768 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1769 | break |
| 1770 | elif test -f "$ac_dir/install.sh"; then |
| 1771 | ac_aux_dir=$ac_dir |
| 1772 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1773 | break |
| 1774 | elif test -f "$ac_dir/shtool"; then |
| 1775 | ac_aux_dir=$ac_dir |
| 1776 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1777 | break |
| 1778 | fi |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1779 | done |
| 1780 | if test -z "$ac_aux_dir"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1781 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1782 | fi |
| 1783 | |
| 1784 | # These three variables are undocumented and unsupported, |
| 1785 | # and are intended to be withdrawn in a future Autoconf release. |
| 1786 | # They can cause serious problems if a builder's source tree is in a directory |
| 1787 | # whose full name contains unusual characters. |
| 1788 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1789 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1790 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | ac_config_headers="$ac_config_headers config.h" |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 1799 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 1800 | # Check whether --enable-maintainer-mode was given. |
| 1801 | if test "${enable_maintainer_mode+set}" = set; then : |
| 1802 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 1803 | else |
| 1804 | USE_MAINTAINER_MODE=no |
| 1805 | fi |
| 1806 | |
| 1807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 1808 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 1809 | if test $USE_MAINTAINER_MODE = yes; then |
| 1810 | MAINTAINER_MODE_TRUE= |
| 1811 | MAINTAINER_MODE_FALSE='#' |
| 1812 | else |
| 1813 | MAINTAINER_MODE_TRUE='#' |
| 1814 | MAINTAINER_MODE_FALSE= |
| 1815 | fi |
| 1816 | |
| 1817 | MAINT=$MAINTAINER_MODE_TRUE |
| 1818 | |
| 1819 | |
David Wohlferd | e6921b2 | 2016-10-17 22:02:44 -0700 | [diff] [blame] | 1820 | am__api_version='1.15' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1821 | |
| 1822 | # Find a good install program. We prefer a C program (faster), |
| 1823 | # so one script is as good as another. But avoid the broken or |
| 1824 | # incompatible versions: |
| 1825 | # SysV /etc/install, /usr/sbin/install |
| 1826 | # SunOS /usr/etc/install |
| 1827 | # IRIX /sbin/install |
| 1828 | # AIX /bin/install |
| 1829 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1830 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1831 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1832 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1833 | # OS/2's system install, which has a completely different semantic |
| 1834 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1835 | # Reject install programs that cannot install multiple files. |
| 1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 1837 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 1838 | if test -z "$INSTALL"; then |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 1839 | if ${ac_cv_path_install+:} false; then : |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1840 | $as_echo_n "(cached) " >&6 |
| 1841 | else |
| 1842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1843 | for as_dir in $PATH |
| 1844 | do |
| 1845 | IFS=$as_save_IFS |
| 1846 | test -z "$as_dir" && as_dir=. |
| 1847 | # Account for people who put trailing slashes in PATH elements. |
| 1848 | case $as_dir/ in #(( |
| 1849 | ./ | .// | /[cC]/* | \ |
| 1850 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1851 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 1852 | /usr/ucb/* ) ;; |
| 1853 | *) |
| 1854 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1855 | # Don't use installbsd from OSF since it installs stuff as root |
| 1856 | # by default. |
| 1857 | for ac_prog in ginstall scoinst install; do |
| 1858 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 1859 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1860 | if test $ac_prog = install && |
| 1861 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1862 | # AIX install. It has an incompatible calling convention. |
| 1863 | : |
| 1864 | elif test $ac_prog = install && |
| 1865 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1866 | # program-specific install script used by HP pwplus--don't use. |
| 1867 | : |
| 1868 | else |
| 1869 | rm -rf conftest.one conftest.two conftest.dir |
| 1870 | echo one > conftest.one |
| 1871 | echo two > conftest.two |
| 1872 | mkdir conftest.dir |
| 1873 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 1874 | test -s conftest.one && test -s conftest.two && |
| 1875 | test -s conftest.dir/conftest.one && |
| 1876 | test -s conftest.dir/conftest.two |
| 1877 | then |
| 1878 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1879 | break 3 |
| 1880 | fi |
| 1881 | fi |
| 1882 | fi |
| 1883 | done |
| 1884 | done |
| 1885 | ;; |
| 1886 | esac |
| 1887 | |
| 1888 | done |
| 1889 | IFS=$as_save_IFS |
| 1890 | |
| 1891 | rm -rf conftest.one conftest.two conftest.dir |
| 1892 | |
| 1893 | fi |
| 1894 | if test "${ac_cv_path_install+set}" = set; then |
| 1895 | INSTALL=$ac_cv_path_install |
| 1896 | else |
| 1897 | # As a last resort, use the slow shell script. Don't cache a |
| 1898 | # value for INSTALL within a source directory, because that will |
| 1899 | # break other packages using the cache if that directory is |
| 1900 | # removed, or if the value is a relative name. |
| 1901 | INSTALL=$ac_install_sh |
| 1902 | fi |
| 1903 | fi |
| 1904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 1905 | $as_echo "$INSTALL" >&6; } |
| 1906 | |
| 1907 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1908 | # It thinks the first close brace ends the variable substitution. |
| 1909 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1910 | |
| 1911 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1912 | |
| 1913 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1914 | |
| 1915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 1916 | $as_echo_n "checking whether build environment is sane... " >&6; } |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1917 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 1918 | # name. Accept space and tab only in the latter. |
| 1919 | am_lf=' |
| 1920 | ' |
| 1921 | case `pwd` in |
| 1922 | *[\\\"\#\$\&\'\`$am_lf]*) |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1923 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1924 | esac |
| 1925 | case $srcdir in |
| 1926 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 1927 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1928 | esac |
| 1929 | |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 1930 | # Do 'set' in a subshell so we don't clobber the current shell's |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1931 | # arguments. Must try -L first in case configure is actually a |
| 1932 | # symlink; some systems play weird games with the mod time of symlinks |
| 1933 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 1934 | # directory). |
| 1935 | if ( |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 1936 | am_has_slept=no |
| 1937 | for am_try in 1 2; do |
| 1938 | echo "timestamp, slept: $am_has_slept" > conftest.file |
| 1939 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 1940 | if test "$*" = "X"; then |
| 1941 | # -L didn't work. |
| 1942 | set X `ls -t "$srcdir/configure" conftest.file` |
| 1943 | fi |
| 1944 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 1945 | && test "$*" != "X conftest.file $srcdir/configure"; then |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1946 | |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 1947 | # If neither matched, then we have a broken ls. This can happen |
| 1948 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 1949 | # broken ls alias from the environment. This has actually |
| 1950 | # happened. Such a system could not be considered "sane". |
| 1951 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 1952 | alias in your environment" "$LINENO" 5 |
| 1953 | fi |
| 1954 | if test "$2" = conftest.file || test $am_try -eq 2; then |
| 1955 | break |
| 1956 | fi |
| 1957 | # Just in case. |
| 1958 | sleep 1 |
| 1959 | am_has_slept=yes |
| 1960 | done |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1961 | test "$2" = conftest.file |
| 1962 | ) |
| 1963 | then |
| 1964 | # Ok. |
| 1965 | : |
| 1966 | else |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1967 | as_fn_error $? "newly created file is older than distributed files! |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1968 | Check your system clock" "$LINENO" 5 |
| 1969 | fi |
| 1970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 1971 | $as_echo "yes" >&6; } |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 1972 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 1973 | # generated files are strictly newer. |
| 1974 | am_sleep_pid= |
| 1975 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 1976 | ( sleep 1 ) & |
| 1977 | am_sleep_pid=$! |
| 1978 | fi |
| 1979 | |
| 1980 | rm -f conftest.file |
| 1981 | |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1982 | test "$program_prefix" != NONE && |
| 1983 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 1984 | # Use a double $ so make ignores it. |
| 1985 | test "$program_suffix" != NONE && |
| 1986 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 1987 | # Double any \ or $. |
| 1988 | # By default was `s,x,x', remove it if useless. |
| 1989 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 1990 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 1991 | |
David Wohlferd | e6921b2 | 2016-10-17 22:02:44 -0700 | [diff] [blame] | 1992 | # Expand $ac_aux_dir to an absolute path. |
| 1993 | am_aux_dir=`cd "$ac_aux_dir" && pwd` |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1994 | |
| 1995 | if test x"${MISSING+set}" != xset; then |
| 1996 | case $am_aux_dir in |
| 1997 | *\ * | *\ *) |
| 1998 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 1999 | *) |
| 2000 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2001 | esac |
| 2002 | fi |
| 2003 | # Use eval to expand $SHELL |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 2004 | if eval "$MISSING --is-lightweight"; then |
| 2005 | am_missing_run="$MISSING " |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2006 | else |
| 2007 | am_missing_run= |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 2008 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 2009 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2010 | fi |
| 2011 | |
David Wohlferd | e6921b2 | 2016-10-17 22:02:44 -0700 | [diff] [blame] | 2012 | if test x"${install_sh+set}" != xset; then |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2013 | case $am_aux_dir in |
| 2014 | *\ * | *\ *) |
| 2015 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2016 | *) |
| 2017 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2018 | esac |
| 2019 | fi |
| 2020 | |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 2021 | # Installed binaries are usually stripped using 'strip' when the user |
| 2022 | # run "make install-strip". However 'strip' might not be the right |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2023 | # tool to use in cross-compilation environments, therefore Automake |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 2024 | # will honor the 'STRIP' environment variable to overrule this program. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2025 | if test "$cross_compiling" != no; then |
| 2026 | if test -n "$ac_tool_prefix"; then |
| 2027 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2028 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2030 | $as_echo_n "checking for $ac_word... " >&6; } |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2031 | if ${ac_cv_prog_STRIP+:} false; then : |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2032 | $as_echo_n "(cached) " >&6 |
| 2033 | else |
| 2034 | if test -n "$STRIP"; then |
| 2035 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2036 | else |
| 2037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2038 | for as_dir in $PATH |
| 2039 | do |
| 2040 | IFS=$as_save_IFS |
| 2041 | test -z "$as_dir" && as_dir=. |
| 2042 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 2043 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2044 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2045 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2046 | break 2 |
| 2047 | fi |
| 2048 | done |
| 2049 | done |
| 2050 | IFS=$as_save_IFS |
| 2051 | |
| 2052 | fi |
| 2053 | fi |
| 2054 | STRIP=$ac_cv_prog_STRIP |
| 2055 | if test -n "$STRIP"; then |
| 2056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2057 | $as_echo "$STRIP" >&6; } |
| 2058 | else |
| 2059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2060 | $as_echo "no" >&6; } |
| 2061 | fi |
| 2062 | |
| 2063 | |
| 2064 | fi |
| 2065 | if test -z "$ac_cv_prog_STRIP"; then |
| 2066 | ac_ct_STRIP=$STRIP |
| 2067 | # Extract the first word of "strip", so it can be a program name with args. |
| 2068 | set dummy strip; ac_word=$2 |
| 2069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2070 | $as_echo_n "checking for $ac_word... " >&6; } |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2071 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2072 | $as_echo_n "(cached) " >&6 |
| 2073 | else |
| 2074 | if test -n "$ac_ct_STRIP"; then |
| 2075 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2076 | else |
| 2077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2078 | for as_dir in $PATH |
| 2079 | do |
| 2080 | IFS=$as_save_IFS |
| 2081 | test -z "$as_dir" && as_dir=. |
| 2082 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 2083 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2084 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2085 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2086 | break 2 |
| 2087 | fi |
| 2088 | done |
| 2089 | done |
| 2090 | IFS=$as_save_IFS |
| 2091 | |
| 2092 | fi |
| 2093 | fi |
| 2094 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2095 | if test -n "$ac_ct_STRIP"; then |
| 2096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2097 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2098 | else |
| 2099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2100 | $as_echo "no" >&6; } |
| 2101 | fi |
| 2102 | |
| 2103 | if test "x$ac_ct_STRIP" = x; then |
| 2104 | STRIP=":" |
| 2105 | else |
| 2106 | case $cross_compiling:$ac_tool_warned in |
| 2107 | yes:) |
| 2108 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2109 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2110 | ac_tool_warned=yes ;; |
| 2111 | esac |
| 2112 | STRIP=$ac_ct_STRIP |
| 2113 | fi |
| 2114 | else |
| 2115 | STRIP="$ac_cv_prog_STRIP" |
| 2116 | fi |
| 2117 | |
| 2118 | fi |
| 2119 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2120 | |
| 2121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2122 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 2123 | if test -z "$MKDIR_P"; then |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2124 | if ${ac_cv_path_mkdir+:} false; then : |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2125 | $as_echo_n "(cached) " >&6 |
| 2126 | else |
| 2127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2128 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2129 | do |
| 2130 | IFS=$as_save_IFS |
| 2131 | test -z "$as_dir" && as_dir=. |
| 2132 | for ac_prog in mkdir gmkdir; do |
| 2133 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 2134 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2135 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2136 | 'mkdir (GNU coreutils) '* | \ |
| 2137 | 'mkdir (coreutils) '* | \ |
| 2138 | 'mkdir (fileutils) '4.1*) |
| 2139 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2140 | break 3;; |
| 2141 | esac |
| 2142 | done |
| 2143 | done |
| 2144 | done |
| 2145 | IFS=$as_save_IFS |
| 2146 | |
| 2147 | fi |
| 2148 | |
| 2149 | test -d ./--version && rmdir ./--version |
| 2150 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2151 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 2152 | else |
| 2153 | # As a last resort, use the slow shell script. Don't cache a |
| 2154 | # value for MKDIR_P within a source directory, because that will |
| 2155 | # break other packages using the cache if that directory is |
| 2156 | # removed, or if the value is a relative name. |
| 2157 | MKDIR_P="$ac_install_sh -d" |
| 2158 | fi |
| 2159 | fi |
| 2160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2161 | $as_echo "$MKDIR_P" >&6; } |
| 2162 | |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2163 | for ac_prog in gawk mawk nawk awk |
| 2164 | do |
| 2165 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2166 | set dummy $ac_prog; ac_word=$2 |
| 2167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2168 | $as_echo_n "checking for $ac_word... " >&6; } |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2169 | if ${ac_cv_prog_AWK+:} false; then : |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2170 | $as_echo_n "(cached) " >&6 |
| 2171 | else |
| 2172 | if test -n "$AWK"; then |
| 2173 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2174 | else |
| 2175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2176 | for as_dir in $PATH |
| 2177 | do |
| 2178 | IFS=$as_save_IFS |
| 2179 | test -z "$as_dir" && as_dir=. |
| 2180 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 2181 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2182 | ac_cv_prog_AWK="$ac_prog" |
| 2183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2184 | break 2 |
| 2185 | fi |
| 2186 | done |
| 2187 | done |
| 2188 | IFS=$as_save_IFS |
| 2189 | |
| 2190 | fi |
| 2191 | fi |
| 2192 | AWK=$ac_cv_prog_AWK |
| 2193 | if test -n "$AWK"; then |
| 2194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2195 | $as_echo "$AWK" >&6; } |
| 2196 | else |
| 2197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2198 | $as_echo "no" >&6; } |
| 2199 | fi |
| 2200 | |
| 2201 | |
| 2202 | test -n "$AWK" && break |
| 2203 | done |
| 2204 | |
| 2205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2206 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2207 | set x ${MAKE-make} |
| 2208 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2209 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2210 | $as_echo_n "(cached) " >&6 |
| 2211 | else |
| 2212 | cat >conftest.make <<\_ACEOF |
| 2213 | SHELL = /bin/sh |
| 2214 | all: |
| 2215 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 2216 | _ACEOF |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2217 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2218 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2219 | *@@@%%%=?*=@@@%%%*) |
| 2220 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2221 | *) |
| 2222 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2223 | esac |
| 2224 | rm -f conftest.make |
| 2225 | fi |
| 2226 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2228 | $as_echo "yes" >&6; } |
| 2229 | SET_MAKE= |
| 2230 | else |
| 2231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2232 | $as_echo "no" >&6; } |
| 2233 | SET_MAKE="MAKE=${MAKE-make}" |
| 2234 | fi |
| 2235 | |
| 2236 | rm -rf .tst 2>/dev/null |
| 2237 | mkdir .tst 2>/dev/null |
| 2238 | if test -d .tst; then |
| 2239 | am__leading_dot=. |
| 2240 | else |
| 2241 | am__leading_dot=_ |
| 2242 | fi |
| 2243 | rmdir .tst 2>/dev/null |
| 2244 | |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 2245 | # Check whether --enable-silent-rules was given. |
| 2246 | if test "${enable_silent_rules+set}" = set; then : |
| 2247 | enableval=$enable_silent_rules; |
| 2248 | fi |
| 2249 | |
| 2250 | case $enable_silent_rules in # ((( |
| 2251 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 2252 | no) AM_DEFAULT_VERBOSITY=1;; |
| 2253 | *) AM_DEFAULT_VERBOSITY=1;; |
| 2254 | esac |
| 2255 | am_make=${MAKE-make} |
| 2256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 2257 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
| 2258 | if ${am_cv_make_support_nested_variables+:} false; then : |
| 2259 | $as_echo_n "(cached) " >&6 |
| 2260 | else |
| 2261 | if $as_echo 'TRUE=$(BAR$(V)) |
| 2262 | BAR0=false |
| 2263 | BAR1=true |
| 2264 | V=1 |
| 2265 | am__doit: |
| 2266 | @$(TRUE) |
| 2267 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 2268 | am_cv_make_support_nested_variables=yes |
| 2269 | else |
| 2270 | am_cv_make_support_nested_variables=no |
| 2271 | fi |
| 2272 | fi |
| 2273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 2274 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
| 2275 | if test $am_cv_make_support_nested_variables = yes; then |
| 2276 | AM_V='$(V)' |
| 2277 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 2278 | else |
| 2279 | AM_V=$AM_DEFAULT_VERBOSITY |
| 2280 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 2281 | fi |
| 2282 | AM_BACKSLASH='\' |
| 2283 | |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2284 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2285 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2286 | # is not polluted with repeated "-I." |
| 2287 | am__isrc=' -I$(srcdir)' |
| 2288 | # test to see if srcdir already configured |
| 2289 | if test -f $srcdir/config.status; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2290 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2291 | fi |
| 2292 | fi |
| 2293 | |
| 2294 | # test whether we have cygpath |
| 2295 | if test -z "$CYGPATH_W"; then |
| 2296 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2297 | CYGPATH_W='cygpath -w' |
| 2298 | else |
| 2299 | CYGPATH_W=echo |
| 2300 | fi |
| 2301 | fi |
| 2302 | |
| 2303 | |
| 2304 | # Define the identity of the package. |
| 2305 | PACKAGE='mingw-w64' |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 2306 | VERSION='4.0b' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2307 | |
| 2308 | |
| 2309 | cat >>confdefs.h <<_ACEOF |
| 2310 | #define PACKAGE "$PACKAGE" |
| 2311 | _ACEOF |
| 2312 | |
| 2313 | |
| 2314 | cat >>confdefs.h <<_ACEOF |
| 2315 | #define VERSION "$VERSION" |
| 2316 | _ACEOF |
| 2317 | |
| 2318 | # Some tools Automake needs. |
| 2319 | |
| 2320 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2321 | |
| 2322 | |
| 2323 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2324 | |
| 2325 | |
| 2326 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2327 | |
| 2328 | |
| 2329 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2330 | |
| 2331 | |
| 2332 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2333 | |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 2334 | # For better backward compatibility. To be removed once Automake 1.9.x |
| 2335 | # dies out for good. For more background, see: |
| 2336 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 2337 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 2338 | mkdir_p='$(MKDIR_P)' |
| 2339 | |
David Wohlferd | e6921b2 | 2016-10-17 22:02:44 -0700 | [diff] [blame] | 2340 | # We need awk for the "check" target (and possibly the TAP driver). The |
| 2341 | # system "awk" is bad on some platforms. |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 2342 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 2343 | # in the wild :-( We should find a proper way to deprecate it ... |
| 2344 | AMTAR='$${TAR-tar}' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2345 | |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2346 | |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 2347 | # We'll loop over all known methods to create a tar archive until one works. |
| 2348 | _am_tools='gnutar pax cpio none' |
| 2349 | |
| 2350 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2351 | |
| 2352 | |
| 2353 | |
| 2354 | |
| 2355 | |
| 2356 | |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 2357 | # POSIX will say in a future version that running "rm -f" with no argument |
| 2358 | # is OK; and we want to be able to make that assumption in our Makefile |
| 2359 | # recipes. So use an aggressive probe to check that the usage we want is |
| 2360 | # actually supported "in the wild" to an acceptable degree. |
| 2361 | # See automake bug#10828. |
| 2362 | # To make any issue more visible, cause the running configure to be aborted |
| 2363 | # by default if the 'rm' program in use doesn't match our expectations; the |
| 2364 | # user can still override this though. |
| 2365 | if rm -f && rm -fr && rm -rf; then : OK; else |
| 2366 | cat >&2 <<'END' |
| 2367 | Oops! |
| 2368 | |
| 2369 | Your 'rm' program seems unable to run without file operands specified |
| 2370 | on the command line, even when the '-f' option is present. This is contrary |
| 2371 | to the behaviour of most rm programs out there, and not conforming with |
| 2372 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 2373 | |
| 2374 | Please tell bug-automake@gnu.org about your system, including the value |
| 2375 | of your $PATH and any error possibly output before this message. This |
| 2376 | can help us improve future automake versions. |
| 2377 | |
| 2378 | END |
| 2379 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 2380 | echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 2381 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 2382 | echo >&2 |
| 2383 | else |
| 2384 | cat >&2 <<'END' |
| 2385 | Aborting the configuration process, to ensure you take notice of the issue. |
| 2386 | |
| 2387 | You can download and install GNU coreutils to get an 'rm' implementation |
| 2388 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
| 2389 | |
| 2390 | If you want to complete the configuration process using your problematic |
| 2391 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 2392 | to "yes", and re-run configure. |
| 2393 | |
| 2394 | END |
| 2395 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 2396 | fi |
| 2397 | fi |
| 2398 | |
David Wohlferd | e6921b2 | 2016-10-17 22:02:44 -0700 | [diff] [blame] | 2399 | |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2400 | # Make sure we can run config.sub. |
| 2401 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2402 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2403 | |
| 2404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2405 | $as_echo_n "checking build system type... " >&6; } |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2406 | if ${ac_cv_build+:} false; then : |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2407 | $as_echo_n "(cached) " >&6 |
| 2408 | else |
| 2409 | ac_build_alias=$build_alias |
| 2410 | test "x$ac_build_alias" = x && |
| 2411 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2412 | test "x$ac_build_alias" = x && |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2413 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2414 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2415 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2416 | |
| 2417 | fi |
| 2418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2419 | $as_echo "$ac_cv_build" >&6; } |
| 2420 | case $ac_cv_build in |
| 2421 | *-*-*) ;; |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2422 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2423 | esac |
| 2424 | build=$ac_cv_build |
| 2425 | ac_save_IFS=$IFS; IFS='-' |
| 2426 | set x $ac_cv_build |
| 2427 | shift |
| 2428 | build_cpu=$1 |
| 2429 | build_vendor=$2 |
| 2430 | shift; shift |
| 2431 | # Remember, the first character of IFS is used to create $*, |
| 2432 | # except with old shells: |
| 2433 | build_os=$* |
| 2434 | IFS=$ac_save_IFS |
| 2435 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2436 | |
| 2437 | |
| 2438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2439 | $as_echo_n "checking host system type... " >&6; } |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2440 | if ${ac_cv_host+:} false; then : |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2441 | $as_echo_n "(cached) " >&6 |
| 2442 | else |
| 2443 | if test "x$host_alias" = x; then |
| 2444 | ac_cv_host=$ac_cv_build |
| 2445 | else |
| 2446 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2447 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2448 | fi |
| 2449 | |
| 2450 | fi |
| 2451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2452 | $as_echo "$ac_cv_host" >&6; } |
| 2453 | case $ac_cv_host in |
| 2454 | *-*-*) ;; |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2455 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2456 | esac |
| 2457 | host=$ac_cv_host |
| 2458 | ac_save_IFS=$IFS; IFS='-' |
| 2459 | set x $ac_cv_host |
| 2460 | shift |
| 2461 | host_cpu=$1 |
| 2462 | host_vendor=$2 |
| 2463 | shift; shift |
| 2464 | # Remember, the first character of IFS is used to create $*, |
| 2465 | # except with old shells: |
| 2466 | host_os=$* |
| 2467 | IFS=$ac_save_IFS |
| 2468 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2469 | |
| 2470 | |
| 2471 | |
NightStrike | d6b2d4b | 2010-03-04 16:48:56 +0000 | [diff] [blame] | 2472 | |
| 2473 | |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2474 | # Checks for programs. |
| 2475 | |
| 2476 | # Checks for libraries. |
| 2477 | |
| 2478 | # Checks for header files. |
| 2479 | |
| 2480 | # Checks for typedefs, structures, and compiler characteristics. |
| 2481 | |
| 2482 | # Checks for library functions. |
| 2483 | |
| 2484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the headers" >&5 |
| 2485 | $as_echo_n "checking whether to build the headers... " >&6; } |
| 2486 | |
| 2487 | # Check whether --with-headers was given. |
| 2488 | if test "${with_headers+set}" = set; then : |
| 2489 | withval=$with_headers; |
| 2490 | else |
| 2491 | with_headers=yes |
| 2492 | fi |
| 2493 | |
| 2494 | |
| 2495 | |
| 2496 | case $with_headers in #( |
| 2497 | yes) : |
| 2498 | subdirs="$subdirs mingw-w64-headers" |
| 2499 | ;; #( |
| 2500 | no) : |
| 2501 | ;; #( |
| 2502 | *) : |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2503 | as_fn_error $? "Invalid argument to --with-headers: $with_headers" "$LINENO" 5 ;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2504 | esac |
| 2505 | if test "x$with_headers" = xyes; then |
| 2506 | HEADER_TRUE= |
| 2507 | HEADER_FALSE='#' |
| 2508 | else |
| 2509 | HEADER_TRUE='#' |
| 2510 | HEADER_FALSE= |
| 2511 | fi |
| 2512 | |
| 2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_headers" >&5 |
| 2514 | $as_echo "$with_headers" >&6; } |
| 2515 | |
| 2516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the crt" >&5 |
| 2517 | $as_echo_n "checking whether to build the crt... " >&6; } |
| 2518 | |
| 2519 | # Check whether --with-crt was given. |
| 2520 | if test "${with_crt+set}" = set; then : |
| 2521 | withval=$with_crt; |
| 2522 | else |
| 2523 | with_crt=yes |
| 2524 | fi |
| 2525 | |
| 2526 | case $with_crt in #( |
| 2527 | yes) : |
| 2528 | subdirs="$subdirs mingw-w64-crt" |
| 2529 | ;; #( |
| 2530 | no) : |
| 2531 | ;; #( |
| 2532 | *) : |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2533 | as_fn_error $? "Invalid argument to --with-crt: $with_crt" "$LINENO" 5 ;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2534 | esac |
| 2535 | if test "x$with_crt" = xyes; then |
| 2536 | CRT_TRUE= |
| 2537 | CRT_FALSE='#' |
| 2538 | else |
| 2539 | CRT_TRUE='#' |
| 2540 | CRT_FALSE= |
| 2541 | fi |
| 2542 | |
| 2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_crt" >&5 |
| 2544 | $as_echo "$with_crt" >&6; } |
| 2545 | |
| 2546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the optional libraries" >&5 |
| 2547 | $as_echo_n "checking whether to build the optional libraries... " >&6; } |
| 2548 | |
| 2549 | # Check whether --with-libraries was given. |
| 2550 | if test "${with_libraries+set}" = set; then : |
| 2551 | withval=$with_libraries; |
| 2552 | else |
| 2553 | with_libraries=no |
| 2554 | fi |
| 2555 | |
Jonathan Yong | 18dd4b3 | 2017-11-06 23:08:03 +0000 | [diff] [blame] | 2556 | libraries="winpthreads mangle" |
| 2557 | case $host_cpu in #( |
| 2558 | i?86) : |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2559 | |
Jonathan Yong | 18dd4b3 | 2017-11-06 23:08:03 +0000 | [diff] [blame] | 2560 | libraries="$libraries pseh" |
| 2561 | ;; #( |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2562 | *) : |
Jonathan Yong | 18dd4b3 | 2017-11-06 23:08:03 +0000 | [diff] [blame] | 2563 | ;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2564 | esac |
Jonathan Yong | 18dd4b3 | 2017-11-06 23:08:03 +0000 | [diff] [blame] | 2565 | for l in $libraries; do |
| 2566 | res=`echo "$with_libraries" | grep $l > /dev/null && echo yes || echo no` |
| 2567 | case $with_libraries in #( |
| 2568 | all|yes) : |
| 2569 | res=yes ;; #( |
| 2570 | *) : |
| 2571 | ;; |
| 2572 | esac |
| 2573 | eval with_libraries_$l=\$res |
| 2574 | done |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2575 | if test "x$with_libraries_mangle" = xyes; then |
| 2576 | LIBRARIES_MANGLE_TRUE= |
| 2577 | LIBRARIES_MANGLE_FALSE='#' |
| 2578 | else |
| 2579 | LIBRARIES_MANGLE_TRUE='#' |
| 2580 | LIBRARIES_MANGLE_FALSE= |
| 2581 | fi |
| 2582 | |
| 2583 | if test "x$with_libraries_pseh" = xyes; then |
| 2584 | LIBRARIES_PSEH_TRUE= |
| 2585 | LIBRARIES_PSEH_FALSE='#' |
| 2586 | else |
| 2587 | LIBRARIES_PSEH_TRUE='#' |
| 2588 | LIBRARIES_PSEH_FALSE= |
| 2589 | fi |
| 2590 | |
Jonathan Yong | a7a09aa | 2017-10-06 13:48:09 +0000 | [diff] [blame] | 2591 | if test "x$with_libraries_winpthreads" = xyes; then |
| 2592 | LIBRARIES_WINPTHREADS_TRUE= |
| 2593 | LIBRARIES_WINPTHREADS_FALSE='#' |
| 2594 | else |
| 2595 | LIBRARIES_WINPTHREADS_TRUE='#' |
| 2596 | LIBRARIES_WINPTHREADS_FALSE= |
| 2597 | fi |
| 2598 | |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 2599 | if test -z "$LIBRARIES_MANGLE_TRUE"; then : |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2600 | subdirs="$subdirs mingw-w64-libraries/libmangle" |
| 2601 | |
| 2602 | fi |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 2603 | if test -z "$LIBRARIES_PSEH_TRUE"; then : |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2604 | subdirs="$subdirs mingw-w64-libraries/pseh" |
| 2605 | |
| 2606 | fi |
Jonathan Yong | a7a09aa | 2017-10-06 13:48:09 +0000 | [diff] [blame] | 2607 | if test -z "$LIBRARIES_WINPTHREADS_TRUE"; then : |
| 2608 | subdirs="$subdirs mingw-w64-libraries/winpthreads" |
| 2609 | |
| 2610 | fi |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libraries" >&5 |
| 2612 | $as_echo "$with_libraries" >&6; } |
| 2613 | |
| 2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the optional tools" >&5 |
| 2615 | $as_echo_n "checking whether to build the optional tools... " >&6; } |
| 2616 | |
| 2617 | # Check whether --with-tools was given. |
| 2618 | if test "${with_tools+set}" = set; then : |
| 2619 | withval=$with_tools; |
| 2620 | else |
| 2621 | with_tools=no |
| 2622 | fi |
| 2623 | |
Jonathan Yong | 18dd4b3 | 2017-11-06 23:08:03 +0000 | [diff] [blame] | 2624 | for t in gendef genidl; do |
| 2625 | res=`echo "${with_tools}" | grep $t > /dev/null && echo yes || echo no` |
| 2626 | case $with_tools in #( |
| 2627 | all|yes) : |
| 2628 | res=yes ;; #( |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2629 | *) : |
Jonathan Yong | 18dd4b3 | 2017-11-06 23:08:03 +0000 | [diff] [blame] | 2630 | ;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2631 | esac |
Jonathan Yong | 18dd4b3 | 2017-11-06 23:08:03 +0000 | [diff] [blame] | 2632 | eval with_tools_$t=\$res |
| 2633 | done |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2634 | if test "x$with_tools_gendef" = xyes; then |
| 2635 | TOOLS_GENDEF_TRUE= |
| 2636 | TOOLS_GENDEF_FALSE='#' |
| 2637 | else |
| 2638 | TOOLS_GENDEF_TRUE='#' |
| 2639 | TOOLS_GENDEF_FALSE= |
| 2640 | fi |
| 2641 | |
NightStrike | adb344b | 2010-02-26 14:13:00 +0000 | [diff] [blame] | 2642 | if test "x$with_tools_genidl" = xyes; then |
| 2643 | TOOLS_GENIDL_TRUE= |
| 2644 | TOOLS_GENIDL_FALSE='#' |
| 2645 | else |
| 2646 | TOOLS_GENIDL_TRUE='#' |
| 2647 | TOOLS_GENIDL_FALSE= |
| 2648 | fi |
| 2649 | |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 2650 | if test -z "$TOOLS_GENDEF_TRUE"; then : |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2651 | subdirs="$subdirs mingw-w64-tools/gendef" |
| 2652 | |
| 2653 | fi |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 2654 | if test -z "$TOOLS_GENIDL_TRUE"; then : |
NightStrike | adb344b | 2010-02-26 14:13:00 +0000 | [diff] [blame] | 2655 | subdirs="$subdirs mingw-w64-tools/genidl" |
| 2656 | |
| 2657 | fi |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tools" >&5 |
| 2659 | $as_echo "$with_tools" >&6; } |
| 2660 | |
| 2661 | ac_config_files="$ac_config_files Makefile" |
| 2662 | |
| 2663 | cat >confcache <<\_ACEOF |
| 2664 | # This file is a shell script that caches the results of configure |
| 2665 | # tests run on this system so they can be shared between configure |
| 2666 | # scripts and configure runs, see configure's option --config-cache. |
| 2667 | # It is not useful on other systems. If it contains results you don't |
| 2668 | # want to keep, you may remove or edit it. |
| 2669 | # |
| 2670 | # config.status only pays attention to the cache file if you give it |
| 2671 | # the --recheck option to rerun configure. |
| 2672 | # |
| 2673 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 2674 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 2675 | # following values. |
| 2676 | |
| 2677 | _ACEOF |
| 2678 | |
| 2679 | # The following way of writing the cache mishandles newlines in values, |
| 2680 | # but we know of no workaround that is simple, portable, and efficient. |
| 2681 | # So, we kill variables containing newlines. |
| 2682 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 2683 | # and sets the high bit in the cache file unless we assign to the vars. |
| 2684 | ( |
| 2685 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 2686 | eval ac_val=\$$ac_var |
| 2687 | case $ac_val in #( |
| 2688 | *${as_nl}*) |
| 2689 | case $ac_var in #( |
| 2690 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2691 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2692 | esac |
| 2693 | case $ac_var in #( |
| 2694 | _ | IFS | as_nl) ;; #( |
| 2695 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2696 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2697 | esac ;; |
| 2698 | esac |
| 2699 | done |
| 2700 | |
| 2701 | (set) 2>&1 | |
| 2702 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 2703 | *${as_nl}ac_space=\ *) |
| 2704 | # `set' does not quote correctly, so add quotes: double-quote |
| 2705 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 2706 | sed -n \ |
| 2707 | "s/'/'\\\\''/g; |
| 2708 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 2709 | ;; #( |
| 2710 | *) |
| 2711 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 2712 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2713 | ;; |
| 2714 | esac | |
| 2715 | sort |
| 2716 | ) | |
| 2717 | sed ' |
| 2718 | /^ac_cv_env_/b end |
| 2719 | t clear |
| 2720 | :clear |
| 2721 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 2722 | t end |
| 2723 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 2724 | :end' >>confcache |
| 2725 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 2726 | if test -w "$cache_file"; then |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2727 | if test "x$cache_file" != "x/dev/null"; then |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2728 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 2729 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2730 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 2731 | cat confcache >"$cache_file" |
| 2732 | else |
| 2733 | case $cache_file in #( |
| 2734 | */* | ?:*) |
| 2735 | mv -f confcache "$cache_file"$$ && |
| 2736 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 2737 | *) |
| 2738 | mv -f confcache "$cache_file" ;; |
| 2739 | esac |
| 2740 | fi |
| 2741 | fi |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2742 | else |
| 2743 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 2744 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 2745 | fi |
| 2746 | fi |
| 2747 | rm -f confcache |
| 2748 | |
| 2749 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 2750 | # Let make expand exec_prefix. |
| 2751 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 2752 | |
| 2753 | DEFS=-DHAVE_CONFIG_H |
| 2754 | |
| 2755 | ac_libobjs= |
| 2756 | ac_ltlibobjs= |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2757 | U= |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2758 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 2759 | # 1. Remove the extension, and $U if already installed. |
| 2760 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 2761 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 2762 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 2763 | # will be set to the directory where LIBOBJS objects are built. |
| 2764 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 2765 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 2766 | done |
| 2767 | LIBOBJS=$ac_libobjs |
| 2768 | |
| 2769 | LTLIBOBJS=$ac_ltlibobjs |
| 2770 | |
| 2771 | |
| 2772 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2773 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2774 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 2775 | fi |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 2776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 2777 | $as_echo_n "checking that generated files are newer than configure... " >&6; } |
| 2778 | if test -n "$am_sleep_pid"; then |
| 2779 | # Hide warnings about reused PIDs. |
| 2780 | wait $am_sleep_pid 2>/dev/null |
| 2781 | fi |
| 2782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 2783 | $as_echo "done" >&6; } |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2784 | |
| 2785 | if test -z "${HEADER_TRUE}" && test -z "${HEADER_FALSE}"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2786 | as_fn_error $? "conditional \"HEADER\" was never defined. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2787 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 2788 | fi |
| 2789 | if test -z "${CRT_TRUE}" && test -z "${CRT_FALSE}"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2790 | as_fn_error $? "conditional \"CRT\" was never defined. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2791 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 2792 | fi |
| 2793 | if test -z "${LIBRARIES_MANGLE_TRUE}" && test -z "${LIBRARIES_MANGLE_FALSE}"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2794 | as_fn_error $? "conditional \"LIBRARIES_MANGLE\" was never defined. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2795 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 2796 | fi |
| 2797 | if test -z "${LIBRARIES_PSEH_TRUE}" && test -z "${LIBRARIES_PSEH_FALSE}"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2798 | as_fn_error $? "conditional \"LIBRARIES_PSEH\" was never defined. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2799 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 2800 | fi |
Jonathan Yong | a7a09aa | 2017-10-06 13:48:09 +0000 | [diff] [blame] | 2801 | if test -z "${LIBRARIES_WINPTHREADS_TRUE}" && test -z "${LIBRARIES_WINPTHREADS_FALSE}"; then |
| 2802 | as_fn_error $? "conditional \"LIBRARIES_WINPTHREADS\" was never defined. |
| 2803 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 2804 | fi |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2805 | if test -z "${TOOLS_GENDEF_TRUE}" && test -z "${TOOLS_GENDEF_FALSE}"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2806 | as_fn_error $? "conditional \"TOOLS_GENDEF\" was never defined. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2807 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 2808 | fi |
NightStrike | adb344b | 2010-02-26 14:13:00 +0000 | [diff] [blame] | 2809 | if test -z "${TOOLS_GENIDL_TRUE}" && test -z "${TOOLS_GENIDL_FALSE}"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2810 | as_fn_error $? "conditional \"TOOLS_GENIDL\" was never defined. |
NightStrike | adb344b | 2010-02-26 14:13:00 +0000 | [diff] [blame] | 2811 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 2812 | fi |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2813 | |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2814 | : "${CONFIG_STATUS=./config.status}" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2815 | ac_write_fail=0 |
| 2816 | ac_clean_files_save=$ac_clean_files |
| 2817 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 2818 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 2819 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 2820 | as_write_fail=0 |
| 2821 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 2822 | #! $SHELL |
| 2823 | # Generated by $as_me. |
| 2824 | # Run this file to recreate the current configuration. |
| 2825 | # Compiler output produced by configure, useful for debugging |
| 2826 | # configure, is in config.log if it exists. |
| 2827 | |
| 2828 | debug=false |
| 2829 | ac_cs_recheck=false |
| 2830 | ac_cs_silent=false |
| 2831 | |
| 2832 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 2833 | export SHELL |
| 2834 | _ASEOF |
| 2835 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 2836 | ## -------------------- ## |
| 2837 | ## M4sh Initialization. ## |
| 2838 | ## -------------------- ## |
| 2839 | |
| 2840 | # Be more Bourne compatible |
| 2841 | DUALCASE=1; export DUALCASE # for MKS sh |
| 2842 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 2843 | emulate sh |
| 2844 | NULLCMD=: |
| 2845 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 2846 | # is contrary to our usage. Disable this feature. |
| 2847 | alias -g '${1+"$@"}'='"$@"' |
| 2848 | setopt NO_GLOB_SUBST |
| 2849 | else |
| 2850 | case `(set -o) 2>/dev/null` in #( |
| 2851 | *posix*) : |
| 2852 | set -o posix ;; #( |
| 2853 | *) : |
| 2854 | ;; |
| 2855 | esac |
| 2856 | fi |
| 2857 | |
| 2858 | |
| 2859 | as_nl=' |
| 2860 | ' |
| 2861 | export as_nl |
| 2862 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 2863 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 2864 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 2865 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 2866 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 2867 | # but without wasting forks for bash or zsh. |
| 2868 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 2869 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 2870 | as_echo='print -r --' |
| 2871 | as_echo_n='print -rn --' |
| 2872 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 2873 | as_echo='printf %s\n' |
| 2874 | as_echo_n='printf %s' |
| 2875 | else |
| 2876 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 2877 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 2878 | as_echo_n='/usr/ucb/echo -n' |
| 2879 | else |
| 2880 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 2881 | as_echo_n_body='eval |
| 2882 | arg=$1; |
| 2883 | case $arg in #( |
| 2884 | *"$as_nl"*) |
| 2885 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 2886 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 2887 | esac; |
| 2888 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 2889 | ' |
| 2890 | export as_echo_n_body |
| 2891 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 2892 | fi |
| 2893 | export as_echo_body |
| 2894 | as_echo='sh -c $as_echo_body as_echo' |
| 2895 | fi |
| 2896 | |
| 2897 | # The user is always right. |
| 2898 | if test "${PATH_SEPARATOR+set}" != set; then |
| 2899 | PATH_SEPARATOR=: |
| 2900 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 2901 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 2902 | PATH_SEPARATOR=';' |
| 2903 | } |
| 2904 | fi |
| 2905 | |
| 2906 | |
| 2907 | # IFS |
| 2908 | # We need space, tab and new line, in precisely that order. Quoting is |
| 2909 | # there to prevent editors from complaining about space-tab. |
| 2910 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 2911 | # splitting by setting IFS to empty value.) |
| 2912 | IFS=" "" $as_nl" |
| 2913 | |
| 2914 | # Find who we are. Look in the path if we contain no directory separator. |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2915 | as_myself= |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2916 | case $0 in #(( |
| 2917 | *[\\/]* ) as_myself=$0 ;; |
| 2918 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2919 | for as_dir in $PATH |
| 2920 | do |
| 2921 | IFS=$as_save_IFS |
| 2922 | test -z "$as_dir" && as_dir=. |
| 2923 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 2924 | done |
| 2925 | IFS=$as_save_IFS |
| 2926 | |
| 2927 | ;; |
| 2928 | esac |
| 2929 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 2930 | # in which case we are not to be found in the path. |
| 2931 | if test "x$as_myself" = x; then |
| 2932 | as_myself=$0 |
| 2933 | fi |
| 2934 | if test ! -f "$as_myself"; then |
| 2935 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 2936 | exit 1 |
| 2937 | fi |
| 2938 | |
| 2939 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 2940 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 2941 | # suppresses any "Segmentation fault" message there. '((' could |
| 2942 | # trigger a bug in pdksh 5.2.14. |
| 2943 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 2944 | do eval test x\${$as_var+set} = xset \ |
| 2945 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 2946 | done |
| 2947 | PS1='$ ' |
| 2948 | PS2='> ' |
| 2949 | PS4='+ ' |
| 2950 | |
| 2951 | # NLS nuisances. |
| 2952 | LC_ALL=C |
| 2953 | export LC_ALL |
| 2954 | LANGUAGE=C |
| 2955 | export LANGUAGE |
| 2956 | |
| 2957 | # CDPATH. |
| 2958 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 2959 | |
| 2960 | |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2961 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 2962 | # ---------------------------------------- |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2963 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 2964 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2965 | # script with STATUS, using 1 if that was 0. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2966 | as_fn_error () |
| 2967 | { |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2968 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 2969 | if test "$4"; then |
| 2970 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2971 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2972 | fi |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2973 | $as_echo "$as_me: error: $2" >&2 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2974 | as_fn_exit $as_status |
| 2975 | } # as_fn_error |
| 2976 | |
| 2977 | |
| 2978 | # as_fn_set_status STATUS |
| 2979 | # ----------------------- |
| 2980 | # Set $? to STATUS, without forking. |
| 2981 | as_fn_set_status () |
| 2982 | { |
| 2983 | return $1 |
| 2984 | } # as_fn_set_status |
| 2985 | |
| 2986 | # as_fn_exit STATUS |
| 2987 | # ----------------- |
| 2988 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 2989 | as_fn_exit () |
| 2990 | { |
| 2991 | set +e |
| 2992 | as_fn_set_status $1 |
| 2993 | exit $1 |
| 2994 | } # as_fn_exit |
| 2995 | |
| 2996 | # as_fn_unset VAR |
| 2997 | # --------------- |
| 2998 | # Portably unset VAR. |
| 2999 | as_fn_unset () |
| 3000 | { |
| 3001 | { eval $1=; unset $1;} |
| 3002 | } |
| 3003 | as_unset=as_fn_unset |
| 3004 | # as_fn_append VAR VALUE |
| 3005 | # ---------------------- |
| 3006 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 3007 | # advantage of any shell optimizations that allow amortized linear growth over |
| 3008 | # repeated appends, instead of the typical quadratic growth present in naive |
| 3009 | # implementations. |
| 3010 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 3011 | eval 'as_fn_append () |
| 3012 | { |
| 3013 | eval $1+=\$2 |
| 3014 | }' |
| 3015 | else |
| 3016 | as_fn_append () |
| 3017 | { |
| 3018 | eval $1=\$$1\$2 |
| 3019 | } |
| 3020 | fi # as_fn_append |
| 3021 | |
| 3022 | # as_fn_arith ARG... |
| 3023 | # ------------------ |
| 3024 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 3025 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 3026 | # must be portable across $(()) and expr. |
| 3027 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 3028 | eval 'as_fn_arith () |
| 3029 | { |
| 3030 | as_val=$(( $* )) |
| 3031 | }' |
| 3032 | else |
| 3033 | as_fn_arith () |
| 3034 | { |
| 3035 | as_val=`expr "$@" || test $? -eq 1` |
| 3036 | } |
| 3037 | fi # as_fn_arith |
| 3038 | |
| 3039 | |
| 3040 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 3041 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 3042 | as_expr=expr |
| 3043 | else |
| 3044 | as_expr=false |
| 3045 | fi |
| 3046 | |
| 3047 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 3048 | as_basename=basename |
| 3049 | else |
| 3050 | as_basename=false |
| 3051 | fi |
| 3052 | |
| 3053 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 3054 | as_dirname=dirname |
| 3055 | else |
| 3056 | as_dirname=false |
| 3057 | fi |
| 3058 | |
| 3059 | as_me=`$as_basename -- "$0" || |
| 3060 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 3061 | X"$0" : 'X\(//\)$' \| \ |
| 3062 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 3063 | $as_echo X/"$0" | |
| 3064 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 3065 | s//\1/ |
| 3066 | q |
| 3067 | } |
| 3068 | /^X\/\(\/\/\)$/{ |
| 3069 | s//\1/ |
| 3070 | q |
| 3071 | } |
| 3072 | /^X\/\(\/\).*/{ |
| 3073 | s//\1/ |
| 3074 | q |
| 3075 | } |
| 3076 | s/.*/./; q'` |
| 3077 | |
| 3078 | # Avoid depending upon Character Ranges. |
| 3079 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 3080 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 3081 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 3082 | as_cr_digits='0123456789' |
| 3083 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 3084 | |
| 3085 | ECHO_C= ECHO_N= ECHO_T= |
| 3086 | case `echo -n x` in #((((( |
| 3087 | -n*) |
| 3088 | case `echo 'xy\c'` in |
| 3089 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 3090 | xy) ECHO_C='\c';; |
| 3091 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 3092 | ECHO_T=' ';; |
| 3093 | esac;; |
| 3094 | *) |
| 3095 | ECHO_N='-n';; |
| 3096 | esac |
| 3097 | |
| 3098 | rm -f conf$$ conf$$.exe conf$$.file |
| 3099 | if test -d conf$$.dir; then |
| 3100 | rm -f conf$$.dir/conf$$.file |
| 3101 | else |
| 3102 | rm -f conf$$.dir |
| 3103 | mkdir conf$$.dir 2>/dev/null |
| 3104 | fi |
| 3105 | if (echo >conf$$.file) 2>/dev/null; then |
| 3106 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 3107 | as_ln_s='ln -s' |
| 3108 | # ... but there are two gotchas: |
| 3109 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 3110 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 3111 | # In both cases, we have to default to `cp -pR'. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3112 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 3113 | as_ln_s='cp -pR' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3114 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 3115 | as_ln_s=ln |
| 3116 | else |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 3117 | as_ln_s='cp -pR' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3118 | fi |
| 3119 | else |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 3120 | as_ln_s='cp -pR' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3121 | fi |
| 3122 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 3123 | rmdir conf$$.dir 2>/dev/null |
| 3124 | |
| 3125 | |
| 3126 | # as_fn_mkdir_p |
| 3127 | # ------------- |
| 3128 | # Create "$as_dir" as a directory, including parents if necessary. |
| 3129 | as_fn_mkdir_p () |
| 3130 | { |
| 3131 | |
| 3132 | case $as_dir in #( |
| 3133 | -*) as_dir=./$as_dir;; |
| 3134 | esac |
| 3135 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 3136 | as_dirs= |
| 3137 | while :; do |
| 3138 | case $as_dir in #( |
| 3139 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 3140 | *) as_qdir=$as_dir;; |
| 3141 | esac |
| 3142 | as_dirs="'$as_qdir' $as_dirs" |
| 3143 | as_dir=`$as_dirname -- "$as_dir" || |
| 3144 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 3145 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 3146 | X"$as_dir" : 'X\(//\)$' \| \ |
| 3147 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 3148 | $as_echo X"$as_dir" | |
| 3149 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 3150 | s//\1/ |
| 3151 | q |
| 3152 | } |
| 3153 | /^X\(\/\/\)[^/].*/{ |
| 3154 | s//\1/ |
| 3155 | q |
| 3156 | } |
| 3157 | /^X\(\/\/\)$/{ |
| 3158 | s//\1/ |
| 3159 | q |
| 3160 | } |
| 3161 | /^X\(\/\).*/{ |
| 3162 | s//\1/ |
| 3163 | q |
| 3164 | } |
| 3165 | s/.*/./; q'` |
| 3166 | test -d "$as_dir" && break |
| 3167 | done |
| 3168 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3169 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3170 | |
| 3171 | |
| 3172 | } # as_fn_mkdir_p |
| 3173 | if mkdir -p . 2>/dev/null; then |
| 3174 | as_mkdir_p='mkdir -p "$as_dir"' |
| 3175 | else |
| 3176 | test -d ./-p && rmdir ./-p |
| 3177 | as_mkdir_p=false |
| 3178 | fi |
| 3179 | |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 3180 | |
| 3181 | # as_fn_executable_p FILE |
| 3182 | # ----------------------- |
| 3183 | # Test if FILE is an executable regular file. |
| 3184 | as_fn_executable_p () |
| 3185 | { |
| 3186 | test -f "$1" && test -x "$1" |
| 3187 | } # as_fn_executable_p |
| 3188 | as_test_x='test -x' |
| 3189 | as_executable_p=as_fn_executable_p |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3190 | |
| 3191 | # Sed expression to map a string onto a valid CPP name. |
| 3192 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 3193 | |
| 3194 | # Sed expression to map a string onto a valid variable name. |
| 3195 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 3196 | |
| 3197 | |
| 3198 | exec 6>&1 |
| 3199 | ## ----------------------------------- ## |
| 3200 | ## Main body of $CONFIG_STATUS script. ## |
| 3201 | ## ----------------------------------- ## |
| 3202 | _ASEOF |
| 3203 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 3204 | |
| 3205 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3206 | # Save the log message, to keep $0 and so on meaningful, and to |
| 3207 | # report actual input values of CONFIG_FILES etc. instead of their |
| 3208 | # values after options handling. |
| 3209 | ac_log=" |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 3210 | This file was extended by mingw-w64 $as_me 4.0b, which was |
| 3211 | generated by GNU Autoconf 2.69. Invocation command line was |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3212 | |
| 3213 | CONFIG_FILES = $CONFIG_FILES |
| 3214 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 3215 | CONFIG_LINKS = $CONFIG_LINKS |
| 3216 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 3217 | $ $0 $@ |
| 3218 | |
| 3219 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 3220 | " |
| 3221 | |
| 3222 | _ACEOF |
| 3223 | |
| 3224 | case $ac_config_files in *" |
| 3225 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 3226 | esac |
| 3227 | |
| 3228 | case $ac_config_headers in *" |
| 3229 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 3230 | esac |
| 3231 | |
| 3232 | |
| 3233 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3234 | # Files that config.status was made for. |
| 3235 | config_files="$ac_config_files" |
| 3236 | config_headers="$ac_config_headers" |
| 3237 | |
| 3238 | _ACEOF |
| 3239 | |
| 3240 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3241 | ac_cs_usage="\ |
| 3242 | \`$as_me' instantiates files and other configuration actions |
| 3243 | from templates according to the current configuration. Unless the files |
| 3244 | and actions are specified as TAGs, all are instantiated by default. |
| 3245 | |
| 3246 | Usage: $0 [OPTION]... [TAG]... |
| 3247 | |
| 3248 | -h, --help print this help, then exit |
| 3249 | -V, --version print version number and configuration settings, then exit |
| 3250 | --config print configuration, then exit |
| 3251 | -q, --quiet, --silent |
| 3252 | do not print progress messages |
| 3253 | -d, --debug don't remove temporary files |
| 3254 | --recheck update $as_me by reconfiguring in the same conditions |
| 3255 | --file=FILE[:TEMPLATE] |
| 3256 | instantiate the configuration file FILE |
| 3257 | --header=FILE[:TEMPLATE] |
| 3258 | instantiate the configuration header FILE |
| 3259 | |
| 3260 | Configuration files: |
| 3261 | $config_files |
| 3262 | |
| 3263 | Configuration headers: |
| 3264 | $config_headers |
| 3265 | |
| 3266 | Report bugs to <mingw-w64-public@lists.sourceforge.net>." |
| 3267 | |
| 3268 | _ACEOF |
| 3269 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3270 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 3271 | ac_cs_version="\\ |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 3272 | mingw-w64 config.status 4.0b |
| 3273 | configured by $0, generated by GNU Autoconf 2.69, |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3274 | with options \\"\$ac_cs_config\\" |
| 3275 | |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 3276 | Copyright (C) 2012 Free Software Foundation, Inc. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3277 | This config.status script is free software; the Free Software Foundation |
| 3278 | gives unlimited permission to copy, distribute and modify it." |
| 3279 | |
| 3280 | ac_pwd='$ac_pwd' |
| 3281 | srcdir='$srcdir' |
| 3282 | INSTALL='$INSTALL' |
| 3283 | MKDIR_P='$MKDIR_P' |
| 3284 | AWK='$AWK' |
| 3285 | test -n "\$AWK" || AWK=awk |
| 3286 | _ACEOF |
| 3287 | |
| 3288 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3289 | # The default lists apply if the user does not specify any file. |
| 3290 | ac_need_defaults=: |
| 3291 | while test $# != 0 |
| 3292 | do |
| 3293 | case $1 in |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3294 | --*=?*) |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3295 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 3296 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 3297 | ac_shift=: |
| 3298 | ;; |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3299 | --*=) |
| 3300 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 3301 | ac_optarg= |
| 3302 | ac_shift=: |
| 3303 | ;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3304 | *) |
| 3305 | ac_option=$1 |
| 3306 | ac_optarg=$2 |
| 3307 | ac_shift=shift |
| 3308 | ;; |
| 3309 | esac |
| 3310 | |
| 3311 | case $ac_option in |
| 3312 | # Handling of the options. |
| 3313 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 3314 | ac_cs_recheck=: ;; |
| 3315 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 3316 | $as_echo "$ac_cs_version"; exit ;; |
| 3317 | --config | --confi | --conf | --con | --co | --c ) |
| 3318 | $as_echo "$ac_cs_config"; exit ;; |
| 3319 | --debug | --debu | --deb | --de | --d | -d ) |
| 3320 | debug=: ;; |
| 3321 | --file | --fil | --fi | --f ) |
| 3322 | $ac_shift |
| 3323 | case $ac_optarg in |
| 3324 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3325 | '') as_fn_error $? "missing file argument" ;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3326 | esac |
| 3327 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 3328 | ac_need_defaults=false;; |
| 3329 | --header | --heade | --head | --hea ) |
| 3330 | $ac_shift |
| 3331 | case $ac_optarg in |
| 3332 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3333 | esac |
| 3334 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 3335 | ac_need_defaults=false;; |
| 3336 | --he | --h) |
| 3337 | # Conflict between --help and --header |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3338 | as_fn_error $? "ambiguous option: \`$1' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3339 | Try \`$0 --help' for more information.";; |
| 3340 | --help | --hel | -h ) |
| 3341 | $as_echo "$ac_cs_usage"; exit ;; |
| 3342 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 3343 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 3344 | ac_cs_silent=: ;; |
| 3345 | |
| 3346 | # This is an error. |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3347 | -*) as_fn_error $? "unrecognized option: \`$1' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3348 | Try \`$0 --help' for more information." ;; |
| 3349 | |
| 3350 | *) as_fn_append ac_config_targets " $1" |
| 3351 | ac_need_defaults=false ;; |
| 3352 | |
| 3353 | esac |
| 3354 | shift |
| 3355 | done |
| 3356 | |
| 3357 | ac_configure_extra_args= |
| 3358 | |
| 3359 | if $ac_cs_silent; then |
| 3360 | exec 6>/dev/null |
| 3361 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 3362 | fi |
| 3363 | |
| 3364 | _ACEOF |
| 3365 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3366 | if \$ac_cs_recheck; then |
Jonathan Yong | b9d7961 | 2014-01-25 03:09:24 +0000 | [diff] [blame] | 3367 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3368 | shift |
| 3369 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 3370 | CONFIG_SHELL='$SHELL' |
| 3371 | export CONFIG_SHELL |
| 3372 | exec "\$@" |
| 3373 | fi |
| 3374 | |
| 3375 | _ACEOF |
| 3376 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3377 | exec 5>>config.log |
| 3378 | { |
| 3379 | echo |
| 3380 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 3381 | ## Running $as_me. ## |
| 3382 | _ASBOX |
| 3383 | $as_echo "$ac_log" |
| 3384 | } >&5 |
| 3385 | |
| 3386 | _ACEOF |
| 3387 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3388 | _ACEOF |
| 3389 | |
| 3390 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3391 | |
| 3392 | # Handling of arguments. |
| 3393 | for ac_config_target in $ac_config_targets |
| 3394 | do |
| 3395 | case $ac_config_target in |
| 3396 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 3397 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 3398 | |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3399 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3400 | esac |
| 3401 | done |
| 3402 | |
| 3403 | |
| 3404 | # If the user did not use the arguments to specify the items to instantiate, |
| 3405 | # then the envvar interface is used. Set only those that are not. |
| 3406 | # We use the long form for the default assignment because of an extremely |
| 3407 | # bizarre bug on SunOS 4.1.3. |
| 3408 | if $ac_need_defaults; then |
| 3409 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 3410 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 3411 | fi |
| 3412 | |
| 3413 | # Have a temporary directory for convenience. Make it in the build tree |
| 3414 | # simply because there is no reason against having it here, and in addition, |
| 3415 | # creating and moving files from /tmp can sometimes cause problems. |
| 3416 | # Hook for its removal unless debugging. |
| 3417 | # Note that there is a small window in which the directory will not be cleaned: |
| 3418 | # after its creation but before its name has been assigned to `$tmp'. |
| 3419 | $debug || |
| 3420 | { |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3421 | tmp= ac_tmp= |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3422 | trap 'exit_status=$? |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3423 | : "${ac_tmp:=$tmp}" |
| 3424 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3425 | ' 0 |
| 3426 | trap 'as_fn_exit 1' 1 2 13 15 |
| 3427 | } |
| 3428 | # Create a (secure) tmp directory for tmp files. |
| 3429 | |
| 3430 | { |
| 3431 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3432 | test -d "$tmp" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3433 | } || |
| 3434 | { |
| 3435 | tmp=./conf$$-$RANDOM |
| 3436 | (umask 077 && mkdir "$tmp") |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3437 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3438 | ac_tmp=$tmp |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3439 | |
| 3440 | # Set up the scripts for CONFIG_FILES section. |
| 3441 | # No need to generate them if there are no CONFIG_FILES. |
| 3442 | # This happens for instance with `./config.status config.h'. |
| 3443 | if test -n "$CONFIG_FILES"; then |
| 3444 | |
| 3445 | |
| 3446 | ac_cr=`echo X | tr X '\015'` |
| 3447 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 3448 | # But we know of no other shell where ac_cr would be empty at this |
| 3449 | # point, so we can use a bashism as a fallback. |
| 3450 | if test "x$ac_cr" = x; then |
| 3451 | eval ac_cr=\$\'\\r\' |
| 3452 | fi |
| 3453 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 3454 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3455 | ac_cs_awk_cr='\\r' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3456 | else |
| 3457 | ac_cs_awk_cr=$ac_cr |
| 3458 | fi |
| 3459 | |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3460 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3461 | _ACEOF |
| 3462 | |
| 3463 | |
| 3464 | { |
| 3465 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 3466 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 3467 | echo "_ACEOF" |
| 3468 | } >conf$$subs.sh || |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3469 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 3470 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3471 | ac_delim='%!_!# ' |
| 3472 | for ac_last_try in false false false false false :; do |
| 3473 | . ./conf$$subs.sh || |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3474 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3475 | |
| 3476 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 3477 | if test $ac_delim_n = $ac_delim_num; then |
| 3478 | break |
| 3479 | elif $ac_last_try; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3480 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3481 | else |
| 3482 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 3483 | fi |
| 3484 | done |
| 3485 | rm -f conf$$subs.sh |
| 3486 | |
| 3487 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3488 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3489 | _ACEOF |
| 3490 | sed -n ' |
| 3491 | h |
| 3492 | s/^/S["/; s/!.*/"]=/ |
| 3493 | p |
| 3494 | g |
| 3495 | s/^[^!]*!// |
| 3496 | :repl |
| 3497 | t repl |
| 3498 | s/'"$ac_delim"'$// |
| 3499 | t delim |
| 3500 | :nl |
| 3501 | h |
| 3502 | s/\(.\{148\}\)..*/\1/ |
| 3503 | t more1 |
| 3504 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 3505 | p |
| 3506 | n |
| 3507 | b repl |
| 3508 | :more1 |
| 3509 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 3510 | p |
| 3511 | g |
| 3512 | s/.\{148\}// |
| 3513 | t nl |
| 3514 | :delim |
| 3515 | h |
| 3516 | s/\(.\{148\}\)..*/\1/ |
| 3517 | t more2 |
| 3518 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 3519 | p |
| 3520 | b |
| 3521 | :more2 |
| 3522 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 3523 | p |
| 3524 | g |
| 3525 | s/.\{148\}// |
| 3526 | t delim |
| 3527 | ' <conf$$subs.awk | sed ' |
| 3528 | /^[^""]/{ |
| 3529 | N |
| 3530 | s/\n// |
| 3531 | } |
| 3532 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 3533 | rm -f conf$$subs.awk |
| 3534 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3535 | _ACAWK |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3536 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3537 | for (key in S) S_is_set[key] = 1 |
| 3538 | FS = "" |
| 3539 | |
| 3540 | } |
| 3541 | { |
| 3542 | line = $ 0 |
| 3543 | nfields = split(line, field, "@") |
| 3544 | substed = 0 |
| 3545 | len = length(field[1]) |
| 3546 | for (i = 2; i < nfields; i++) { |
| 3547 | key = field[i] |
| 3548 | keylen = length(key) |
| 3549 | if (S_is_set[key]) { |
| 3550 | value = S[key] |
| 3551 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 3552 | len += length(value) + length(field[++i]) |
| 3553 | substed = 1 |
| 3554 | } else |
| 3555 | len += 1 + keylen |
| 3556 | } |
| 3557 | |
| 3558 | print line |
| 3559 | } |
| 3560 | |
| 3561 | _ACAWK |
| 3562 | _ACEOF |
| 3563 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3564 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 3565 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 3566 | else |
| 3567 | cat |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3568 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3569 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3570 | _ACEOF |
| 3571 | |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3572 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 3573 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3574 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 3575 | # (actually we leave an empty line to preserve line numbers). |
| 3576 | if test "x$srcdir" = x.; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3577 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 3578 | h |
| 3579 | s/// |
| 3580 | s/^/:/ |
| 3581 | s/[ ]*$/:/ |
| 3582 | s/:\$(srcdir):/:/g |
| 3583 | s/:\${srcdir}:/:/g |
| 3584 | s/:@srcdir@:/:/g |
| 3585 | s/^:*// |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3586 | s/:*$// |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3587 | x |
| 3588 | s/\(=[ ]*\).*/\1/ |
| 3589 | G |
| 3590 | s/\n// |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3591 | s/^[^=]*=[ ]*$// |
| 3592 | }' |
| 3593 | fi |
| 3594 | |
| 3595 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3596 | fi # test -n "$CONFIG_FILES" |
| 3597 | |
| 3598 | # Set up the scripts for CONFIG_HEADERS section. |
| 3599 | # No need to generate them if there are no CONFIG_HEADERS. |
| 3600 | # This happens for instance with `./config.status Makefile'. |
| 3601 | if test -n "$CONFIG_HEADERS"; then |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3602 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3603 | BEGIN { |
| 3604 | _ACEOF |
| 3605 | |
| 3606 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 3607 | # here-document in config.status, that substitutes the proper values into |
| 3608 | # config.h.in to produce config.h. |
| 3609 | |
| 3610 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 3611 | # handling of long lines. |
| 3612 | ac_delim='%!_!# ' |
| 3613 | for ac_last_try in false false :; do |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3614 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 3615 | if test -z "$ac_tt"; then |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3616 | break |
| 3617 | elif $ac_last_try; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3618 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3619 | else |
| 3620 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 3621 | fi |
| 3622 | done |
| 3623 | |
| 3624 | # For the awk script, D is an array of macro values keyed by name, |
| 3625 | # likewise P contains macro parameters if any. Preserve backslash |
| 3626 | # newline sequences. |
| 3627 | |
| 3628 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 3629 | sed -n ' |
| 3630 | s/.\{148\}/&'"$ac_delim"'/g |
| 3631 | t rset |
| 3632 | :rset |
| 3633 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 3634 | t def |
| 3635 | d |
| 3636 | :def |
| 3637 | s/\\$// |
| 3638 | t bsnl |
| 3639 | s/["\\]/\\&/g |
| 3640 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 3641 | D["\1"]=" \3"/p |
| 3642 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 3643 | d |
| 3644 | :bsnl |
| 3645 | s/["\\]/\\&/g |
| 3646 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 3647 | D["\1"]=" \3\\\\\\n"\\/p |
| 3648 | t cont |
| 3649 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 3650 | t cont |
| 3651 | d |
| 3652 | :cont |
| 3653 | n |
| 3654 | s/.\{148\}/&'"$ac_delim"'/g |
| 3655 | t clear |
| 3656 | :clear |
| 3657 | s/\\$// |
| 3658 | t bsnlc |
| 3659 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 3660 | d |
| 3661 | :bsnlc |
| 3662 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 3663 | b cont |
| 3664 | ' <confdefs.h | sed ' |
| 3665 | s/'"$ac_delim"'/"\\\ |
| 3666 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 3667 | |
| 3668 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3669 | for (key in D) D_is_set[key] = 1 |
| 3670 | FS = "" |
| 3671 | } |
| 3672 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 3673 | line = \$ 0 |
| 3674 | split(line, arg, " ") |
| 3675 | if (arg[1] == "#") { |
| 3676 | defundef = arg[2] |
| 3677 | mac1 = arg[3] |
| 3678 | } else { |
| 3679 | defundef = substr(arg[1], 2) |
| 3680 | mac1 = arg[2] |
| 3681 | } |
| 3682 | split(mac1, mac2, "(") #) |
| 3683 | macro = mac2[1] |
| 3684 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 3685 | if (D_is_set[macro]) { |
| 3686 | # Preserve the white space surrounding the "#". |
| 3687 | print prefix "define", macro P[macro] D[macro] |
| 3688 | next |
| 3689 | } else { |
| 3690 | # Replace #undef with comments. This is necessary, for example, |
| 3691 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 3692 | # on some systems where configure will not decide to define it. |
| 3693 | if (defundef == "undef") { |
| 3694 | print "/*", prefix defundef, macro, "*/" |
| 3695 | next |
| 3696 | } |
| 3697 | } |
| 3698 | } |
| 3699 | { print } |
| 3700 | _ACAWK |
| 3701 | _ACEOF |
| 3702 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3703 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3704 | fi # test -n "$CONFIG_HEADERS" |
| 3705 | |
| 3706 | |
| 3707 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 3708 | shift |
| 3709 | for ac_tag |
| 3710 | do |
| 3711 | case $ac_tag in |
| 3712 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 3713 | esac |
| 3714 | case $ac_mode$ac_tag in |
| 3715 | :[FHL]*:*);; |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3716 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3717 | :[FH]-) ac_tag=-:-;; |
| 3718 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 3719 | esac |
| 3720 | ac_save_IFS=$IFS |
| 3721 | IFS=: |
| 3722 | set x $ac_tag |
| 3723 | IFS=$ac_save_IFS |
| 3724 | shift |
| 3725 | ac_file=$1 |
| 3726 | shift |
| 3727 | |
| 3728 | case $ac_mode in |
| 3729 | :L) ac_source=$1;; |
| 3730 | :[FH]) |
| 3731 | ac_file_inputs= |
| 3732 | for ac_f |
| 3733 | do |
| 3734 | case $ac_f in |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3735 | -) ac_f="$ac_tmp/stdin";; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3736 | *) # Look for the file first in the build tree, then in the source tree |
| 3737 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 3738 | # because $ac_f cannot contain `:'. |
| 3739 | test -f "$ac_f" || |
| 3740 | case $ac_f in |
| 3741 | [\\/$]*) false;; |
| 3742 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 3743 | esac || |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3744 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3745 | esac |
| 3746 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 3747 | as_fn_append ac_file_inputs " '$ac_f'" |
| 3748 | done |
| 3749 | |
| 3750 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 3751 | # use $as_me), people would be surprised to read: |
| 3752 | # /* config.h. Generated by config.status. */ |
| 3753 | configure_input='Generated from '` |
| 3754 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 3755 | `' by configure.' |
| 3756 | if test x"$ac_file" != x-; then |
| 3757 | configure_input="$ac_file. $configure_input" |
| 3758 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 3759 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 3760 | fi |
| 3761 | # Neutralize special characters interpreted by sed in replacement strings. |
| 3762 | case $configure_input in #( |
| 3763 | *\&* | *\|* | *\\* ) |
| 3764 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 3765 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 3766 | *) ac_sed_conf_input=$configure_input;; |
| 3767 | esac |
| 3768 | |
| 3769 | case $ac_tag in |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3770 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3771 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3772 | esac |
| 3773 | ;; |
| 3774 | esac |
| 3775 | |
| 3776 | ac_dir=`$as_dirname -- "$ac_file" || |
| 3777 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 3778 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 3779 | X"$ac_file" : 'X\(//\)$' \| \ |
| 3780 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 3781 | $as_echo X"$ac_file" | |
| 3782 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 3783 | s//\1/ |
| 3784 | q |
| 3785 | } |
| 3786 | /^X\(\/\/\)[^/].*/{ |
| 3787 | s//\1/ |
| 3788 | q |
| 3789 | } |
| 3790 | /^X\(\/\/\)$/{ |
| 3791 | s//\1/ |
| 3792 | q |
| 3793 | } |
| 3794 | /^X\(\/\).*/{ |
| 3795 | s//\1/ |
| 3796 | q |
| 3797 | } |
| 3798 | s/.*/./; q'` |
| 3799 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 3800 | ac_builddir=. |
| 3801 | |
| 3802 | case "$ac_dir" in |
| 3803 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 3804 | *) |
| 3805 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 3806 | # A ".." for each directory in $ac_dir_suffix. |
| 3807 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 3808 | case $ac_top_builddir_sub in |
| 3809 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 3810 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 3811 | esac ;; |
| 3812 | esac |
| 3813 | ac_abs_top_builddir=$ac_pwd |
| 3814 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 3815 | # for backward compatibility: |
| 3816 | ac_top_builddir=$ac_top_build_prefix |
| 3817 | |
| 3818 | case $srcdir in |
| 3819 | .) # We are building in place. |
| 3820 | ac_srcdir=. |
| 3821 | ac_top_srcdir=$ac_top_builddir_sub |
| 3822 | ac_abs_top_srcdir=$ac_pwd ;; |
| 3823 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 3824 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 3825 | ac_top_srcdir=$srcdir |
| 3826 | ac_abs_top_srcdir=$srcdir ;; |
| 3827 | *) # Relative name. |
| 3828 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 3829 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 3830 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 3831 | esac |
| 3832 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 3833 | |
| 3834 | |
| 3835 | case $ac_mode in |
| 3836 | :F) |
| 3837 | # |
| 3838 | # CONFIG_FILE |
| 3839 | # |
| 3840 | |
| 3841 | case $INSTALL in |
| 3842 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 3843 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 3844 | esac |
| 3845 | ac_MKDIR_P=$MKDIR_P |
| 3846 | case $MKDIR_P in |
| 3847 | [\\/$]* | ?:[\\/]* ) ;; |
| 3848 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 3849 | esac |
| 3850 | _ACEOF |
| 3851 | |
| 3852 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3853 | # If the template does not know about datarootdir, expand it. |
| 3854 | # FIXME: This hack should be removed a few years after 2.60. |
| 3855 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 3856 | ac_sed_dataroot=' |
| 3857 | /datarootdir/ { |
| 3858 | p |
| 3859 | q |
| 3860 | } |
| 3861 | /@datadir@/p |
| 3862 | /@docdir@/p |
| 3863 | /@infodir@/p |
| 3864 | /@localedir@/p |
| 3865 | /@mandir@/p' |
| 3866 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 3867 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 3868 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 3870 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 3871 | _ACEOF |
| 3872 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3873 | ac_datarootdir_hack=' |
| 3874 | s&@datadir@&$datadir&g |
| 3875 | s&@docdir@&$docdir&g |
| 3876 | s&@infodir@&$infodir&g |
| 3877 | s&@localedir@&$localedir&g |
| 3878 | s&@mandir@&$mandir&g |
| 3879 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 3880 | esac |
| 3881 | _ACEOF |
| 3882 | |
| 3883 | # Neutralize VPATH when `$srcdir' = `.'. |
| 3884 | # Shell code in configure.ac might set extrasub. |
| 3885 | # FIXME: do we really want to maintain this feature? |
| 3886 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3887 | ac_sed_extra="$ac_vpsub |
| 3888 | $extrasub |
| 3889 | _ACEOF |
| 3890 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3891 | :t |
| 3892 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 3893 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 3894 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 3895 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 3896 | s&@srcdir@&$ac_srcdir&;t t |
| 3897 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 3898 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 3899 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 3900 | s&@builddir@&$ac_builddir&;t t |
| 3901 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 3902 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 3903 | s&@INSTALL@&$ac_INSTALL&;t t |
| 3904 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 3905 | $ac_datarootdir_hack |
| 3906 | " |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3907 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 3908 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3909 | |
| 3910 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3911 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 3912 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 3913 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3914 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3915 | which seems to be undefined. Please make sure it is defined" >&5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3916 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3917 | which seems to be undefined. Please make sure it is defined" >&2;} |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3918 | |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3919 | rm -f "$ac_tmp/stdin" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3920 | case $ac_file in |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3921 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 3922 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3923 | esac \ |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3924 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3925 | ;; |
| 3926 | :H) |
| 3927 | # |
| 3928 | # CONFIG_HEADER |
| 3929 | # |
| 3930 | if test x"$ac_file" != x-; then |
| 3931 | { |
| 3932 | $as_echo "/* $configure_input */" \ |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3933 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 3934 | } >"$ac_tmp/config.h" \ |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3935 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3936 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 3938 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 3939 | else |
| 3940 | rm -f "$ac_file" |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3941 | mv "$ac_tmp/config.h" "$ac_file" \ |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3942 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3943 | fi |
| 3944 | else |
| 3945 | $as_echo "/* $configure_input */" \ |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3946 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3947 | || as_fn_error $? "could not create -" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3948 | fi |
| 3949 | # Compute "$ac_file"'s index in $config_headers. |
| 3950 | _am_arg="$ac_file" |
| 3951 | _am_stamp_count=1 |
| 3952 | for _am_header in $config_headers :; do |
| 3953 | case $_am_header in |
| 3954 | $_am_arg | $_am_arg:* ) |
| 3955 | break ;; |
| 3956 | * ) |
| 3957 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 3958 | esac |
| 3959 | done |
| 3960 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 3961 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 3962 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 3963 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 3964 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 3965 | $as_echo X"$_am_arg" | |
| 3966 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 3967 | s//\1/ |
| 3968 | q |
| 3969 | } |
| 3970 | /^X\(\/\/\)[^/].*/{ |
| 3971 | s//\1/ |
| 3972 | q |
| 3973 | } |
| 3974 | /^X\(\/\/\)$/{ |
| 3975 | s//\1/ |
| 3976 | q |
| 3977 | } |
| 3978 | /^X\(\/\).*/{ |
| 3979 | s//\1/ |
| 3980 | q |
| 3981 | } |
| 3982 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 3983 | ;; |
| 3984 | |
| 3985 | |
| 3986 | esac |
| 3987 | |
| 3988 | done # for ac_tag |
| 3989 | |
| 3990 | |
| 3991 | as_fn_exit 0 |
| 3992 | _ACEOF |
| 3993 | ac_clean_files=$ac_clean_files_save |
| 3994 | |
| 3995 | test $ac_write_fail = 0 || |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3996 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3997 | |
| 3998 | |
| 3999 | # configure is writing to config.log, and then calls config.status. |
| 4000 | # config.status does its own redirection, appending to config.log. |
| 4001 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 4002 | # by configure, so config.status won't be able to write to it; its |
| 4003 | # output is simply discarded. So we exec the FD to /dev/null, |
| 4004 | # effectively closing config.log, so it can be properly (re)opened and |
| 4005 | # appended to by config.status. When coming back to configure, we |
| 4006 | # need to make the FD available again. |
| 4007 | if test "$no_create" != yes; then |
| 4008 | ac_cs_success=: |
| 4009 | ac_config_status_args= |
| 4010 | test "$silent" = yes && |
| 4011 | ac_config_status_args="$ac_config_status_args --quiet" |
| 4012 | exec 5>/dev/null |
| 4013 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 4014 | exec 5>>config.log |
| 4015 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 4016 | # would make configure fail if this is the last instruction. |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 4017 | $ac_cs_success || as_fn_exit 1 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 4018 | fi |
| 4019 | |
| 4020 | # |
| 4021 | # CONFIG_SUBDIRS section. |
| 4022 | # |
| 4023 | if test "$no_recursion" != yes; then |
| 4024 | |
| 4025 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
| 4026 | # so they do not pile up. |
| 4027 | ac_sub_configure_args= |
| 4028 | ac_prev= |
| 4029 | eval "set x $ac_configure_args" |
| 4030 | shift |
| 4031 | for ac_arg |
| 4032 | do |
| 4033 | if test -n "$ac_prev"; then |
| 4034 | ac_prev= |
| 4035 | continue |
| 4036 | fi |
| 4037 | case $ac_arg in |
| 4038 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 4039 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 4040 | ac_prev=cache_file ;; |
| 4041 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 4042 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 4043 | | --c=*) |
| 4044 | ;; |
| 4045 | --config-cache | -C) |
| 4046 | ;; |
| 4047 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 4048 | ac_prev=srcdir ;; |
| 4049 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 4050 | ;; |
| 4051 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 4052 | ac_prev=prefix ;; |
| 4053 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 4054 | ;; |
| 4055 | --disable-option-checking) |
| 4056 | ;; |
| 4057 | *) |
| 4058 | case $ac_arg in |
| 4059 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 4060 | esac |
| 4061 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
| 4062 | esac |
| 4063 | done |
| 4064 | |
| 4065 | # Always prepend --prefix to ensure using the same prefix |
| 4066 | # in subdir configurations. |
| 4067 | ac_arg="--prefix=$prefix" |
| 4068 | case $ac_arg in |
| 4069 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 4070 | esac |
| 4071 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" |
| 4072 | |
| 4073 | # Pass --silent |
| 4074 | if test "$silent" = yes; then |
| 4075 | ac_sub_configure_args="--silent $ac_sub_configure_args" |
| 4076 | fi |
| 4077 | |
| 4078 | # Always prepend --disable-option-checking to silence warnings, since |
| 4079 | # different subdirs can have different --enable and --with options. |
| 4080 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" |
| 4081 | |
| 4082 | ac_popdir=`pwd` |
| 4083 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 4084 | |
| 4085 | # Do not complain, so a configure script can configure whichever |
| 4086 | # parts of a large source tree are present. |
| 4087 | test -d "$srcdir/$ac_dir" || continue |
| 4088 | |
| 4089 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 4090 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
| 4091 | $as_echo "$ac_msg" >&6 |
| 4092 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 4093 | ac_builddir=. |
| 4094 | |
| 4095 | case "$ac_dir" in |
| 4096 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 4097 | *) |
| 4098 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 4099 | # A ".." for each directory in $ac_dir_suffix. |
| 4100 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 4101 | case $ac_top_builddir_sub in |
| 4102 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 4103 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 4104 | esac ;; |
| 4105 | esac |
| 4106 | ac_abs_top_builddir=$ac_pwd |
| 4107 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 4108 | # for backward compatibility: |
| 4109 | ac_top_builddir=$ac_top_build_prefix |
| 4110 | |
| 4111 | case $srcdir in |
| 4112 | .) # We are building in place. |
| 4113 | ac_srcdir=. |
| 4114 | ac_top_srcdir=$ac_top_builddir_sub |
| 4115 | ac_abs_top_srcdir=$ac_pwd ;; |
| 4116 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 4117 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 4118 | ac_top_srcdir=$srcdir |
| 4119 | ac_abs_top_srcdir=$srcdir ;; |
| 4120 | *) # Relative name. |
| 4121 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 4122 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 4123 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 4124 | esac |
| 4125 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 4126 | |
| 4127 | |
| 4128 | cd "$ac_dir" |
| 4129 | |
| 4130 | # Check for guested configure; otherwise get Cygnus style configure. |
| 4131 | if test -f "$ac_srcdir/configure.gnu"; then |
| 4132 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 4133 | elif test -f "$ac_srcdir/configure"; then |
| 4134 | ac_sub_configure=$ac_srcdir/configure |
| 4135 | elif test -f "$ac_srcdir/configure.in"; then |
| 4136 | # This should be Cygnus configure. |
| 4137 | ac_sub_configure=$ac_aux_dir/configure |
| 4138 | else |
| 4139 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
| 4140 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 4141 | ac_sub_configure= |
| 4142 | fi |
| 4143 | |
| 4144 | # The recursion is here. |
| 4145 | if test -n "$ac_sub_configure"; then |
| 4146 | # Make the cache file name correct relative to the subdirectory. |
| 4147 | case $cache_file in |
| 4148 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
| 4149 | *) # Relative name. |
| 4150 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
| 4151 | esac |
| 4152 | |
| 4153 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 4154 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
| 4155 | # The eval makes quoting arguments work. |
| 4156 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 4157 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 4158 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 4159 | fi |
| 4160 | |
| 4161 | cd "$ac_popdir" |
| 4162 | done |
| 4163 | fi |
| 4164 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 4165 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 4166 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 4167 | fi |
| 4168 | |
NightStrike | adb344b | 2010-02-26 14:13:00 +0000 | [diff] [blame] | 4169 | |