[107] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
[1229] | 3 | # Generated by GNU Autoconf 2.69 for Duchamp 1.4. |
---|
[107] | 4 | # |
---|
[121] | 5 | # Report bugs to <Matthew.Whiting@csiro.au>. |
---|
[107] | 6 | # |
---|
[788] | 7 | # |
---|
[1224] | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
---|
[788] | 9 | # |
---|
| 10 | # |
---|
[107] | 11 | # This configure script is free software; the Free Software Foundation |
---|
| 12 | # gives unlimited permission to copy, distribute and modify it. |
---|
[788] | 13 | ## -------------------- ## |
---|
| 14 | ## M4sh Initialization. ## |
---|
| 15 | ## -------------------- ## |
---|
[107] | 16 | |
---|
[763] | 17 | # Be more Bourne compatible |
---|
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
[788] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
[107] | 20 | emulate sh |
---|
| 21 | NULLCMD=: |
---|
[788] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
[107] | 23 | # is contrary to our usage. Disable this feature. |
---|
| 24 | alias -g '${1+"$@"}'='"$@"' |
---|
[763] | 25 | setopt NO_GLOB_SUBST |
---|
| 26 | else |
---|
[788] | 27 | case `(set -o) 2>/dev/null` in #( |
---|
| 28 | *posix*) : |
---|
| 29 | set -o posix ;; #( |
---|
| 30 | *) : |
---|
| 31 | ;; |
---|
[763] | 32 | esac |
---|
[107] | 33 | fi |
---|
| 34 | |
---|
[763] | 35 | |
---|
[788] | 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' |
---|
[763] | 56 | else |
---|
[788] | 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' |
---|
[763] | 69 | fi |
---|
[788] | 70 | export as_echo_body |
---|
| 71 | as_echo='sh -c $as_echo_body as_echo' |
---|
[763] | 72 | fi |
---|
| 73 | |
---|
[788] | 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 | } |
---|
[107] | 81 | fi |
---|
| 82 | |
---|
| 83 | |
---|
[763] | 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. |
---|
[788] | 92 | as_myself= |
---|
| 93 | case $0 in #(( |
---|
[763] | 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=. |
---|
[788] | 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 101 | done |
---|
[763] | 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 |
---|
[788] | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
| 113 | exit 1 |
---|
[763] | 114 | fi |
---|
| 115 | |
---|
[788] | 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 || : |
---|
[763] | 123 | done |
---|
[107] | 124 | PS1='$ ' |
---|
| 125 | PS2='> ' |
---|
| 126 | PS4='+ ' |
---|
| 127 | |
---|
| 128 | # NLS nuisances. |
---|
[788] | 129 | LC_ALL=C |
---|
| 130 | export LC_ALL |
---|
| 131 | LANGUAGE=C |
---|
| 132 | export LANGUAGE |
---|
[107] | 133 | |
---|
[763] | 134 | # CDPATH. |
---|
[788] | 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
[107] | 136 | |
---|
[1224] | 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;} |
---|
[763] | 162 | if test "x$CONFIG_SHELL" = x; then |
---|
[788] | 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 |
---|
[763] | 170 | else |
---|
[788] | 171 | case \`(set -o) 2>/dev/null\` in #( |
---|
| 172 | *posix*) : |
---|
| 173 | set -o posix ;; #( |
---|
| 174 | *) : |
---|
| 175 | ;; |
---|
| 176 | esac |
---|
[107] | 177 | fi |
---|
[788] | 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; } |
---|
[107] | 184 | |
---|
[763] | 185 | exitcode=0 |
---|
[788] | 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 : |
---|
[107] | 191 | |
---|
[763] | 192 | else |
---|
[788] | 193 | exitcode=1; echo positional parameters were not saved. |
---|
[763] | 194 | fi |
---|
[1224] | 195 | test x\$exitcode = x0 || exit 1 |
---|
| 196 | test -x / || exit 1" |
---|
[788] | 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
| 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
| 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
| 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
---|
| 201 | test \$(( 1 + 1 )) = 2 || exit 1" |
---|
| 202 | if (eval "$as_required") 2>/dev/null; then : |
---|
| 203 | as_have_required=yes |
---|
[763] | 204 | else |
---|
[788] | 205 | as_have_required=no |
---|
[763] | 206 | fi |
---|
[788] | 207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
---|
[763] | 208 | |
---|
| 209 | else |
---|
[788] | 210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 211 | as_found=false |
---|
[107] | 212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 213 | do |
---|
| 214 | IFS=$as_save_IFS |
---|
| 215 | test -z "$as_dir" && as_dir=. |
---|
[788] | 216 | as_found=: |
---|
| 217 | case $as_dir in #( |
---|
[107] | 218 | /*) |
---|
[763] | 219 | for as_base in sh bash ksh sh5; do |
---|
[788] | 220 | # Try only shells that exist, to save several forks. |
---|
| 221 | as_shell=$as_dir/$as_base |
---|
| 222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
| 223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
| 224 | CONFIG_SHELL=$as_shell as_have_required=yes |
---|
| 225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
| 226 | break 2 |
---|
| 227 | fi |
---|
| 228 | fi |
---|
[763] | 229 | done;; |
---|
| 230 | esac |
---|
[788] | 231 | as_found=false |
---|
[763] | 232 | done |
---|
[788] | 233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
---|
| 234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
---|
| 235 | CONFIG_SHELL=$SHELL as_have_required=yes |
---|
| 236 | fi; } |
---|
[763] | 237 | IFS=$as_save_IFS |
---|
| 238 | |
---|
| 239 | |
---|
[788] | 240 | if test "x$CONFIG_SHELL" != x; then : |
---|
[1224] | 241 | export CONFIG_SHELL |
---|
| 242 | # We cannot yet assume a decent shell, so we have to provide a |
---|
| 243 | # neutralization value for shells without unset; and this also |
---|
| 244 | # works around shells that cannot unset nonexistent variables. |
---|
| 245 | # Preserve -v and -x to the replacement shell. |
---|
| 246 | BASH_ENV=/dev/null |
---|
| 247 | ENV=/dev/null |
---|
| 248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
| 249 | case $- in # (((( |
---|
| 250 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
| 251 | *v* ) as_opts=-v ;; |
---|
| 252 | *x* ) as_opts=-x ;; |
---|
| 253 | * ) as_opts= ;; |
---|
| 254 | esac |
---|
| 255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
| 256 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
| 257 | # out after a failed `exec'. |
---|
| 258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
| 259 | exit 255 |
---|
[763] | 260 | fi |
---|
| 261 | |
---|
[788] | 262 | if test x$as_have_required = xno; then : |
---|
| 263 | $as_echo "$0: This script requires a shell more modern than all" |
---|
| 264 | $as_echo "$0: the shells that I found on your system." |
---|
| 265 | if test x${ZSH_VERSION+set} = xset ; then |
---|
| 266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
---|
| 267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
---|
| 268 | else |
---|
| 269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
---|
| 270 | $0: Matthew.Whiting@csiro.au about your system, including |
---|
| 271 | $0: any error possibly output before this message. Then |
---|
| 272 | $0: install a modern shell, or manually run the script |
---|
| 273 | $0: under such a shell if you do have one." |
---|
| 274 | fi |
---|
| 275 | exit 1 |
---|
[763] | 276 | fi |
---|
| 277 | fi |
---|
| 278 | fi |
---|
[788] | 279 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 280 | export SHELL |
---|
| 281 | # Unset more variables known to interfere with behavior of common tools. |
---|
| 282 | CLICOLOR_FORCE= GREP_OPTIONS= |
---|
| 283 | unset CLICOLOR_FORCE GREP_OPTIONS |
---|
[763] | 284 | |
---|
[788] | 285 | ## --------------------- ## |
---|
| 286 | ## M4sh Shell Functions. ## |
---|
| 287 | ## --------------------- ## |
---|
| 288 | # as_fn_unset VAR |
---|
| 289 | # --------------- |
---|
| 290 | # Portably unset VAR. |
---|
| 291 | as_fn_unset () |
---|
| 292 | { |
---|
| 293 | { eval $1=; unset $1;} |
---|
| 294 | } |
---|
| 295 | as_unset=as_fn_unset |
---|
[763] | 296 | |
---|
[788] | 297 | # as_fn_set_status STATUS |
---|
| 298 | # ----------------------- |
---|
| 299 | # Set $? to STATUS, without forking. |
---|
| 300 | as_fn_set_status () |
---|
| 301 | { |
---|
| 302 | return $1 |
---|
| 303 | } # as_fn_set_status |
---|
[763] | 304 | |
---|
[788] | 305 | # as_fn_exit STATUS |
---|
| 306 | # ----------------- |
---|
| 307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
| 308 | as_fn_exit () |
---|
| 309 | { |
---|
| 310 | set +e |
---|
| 311 | as_fn_set_status $1 |
---|
| 312 | exit $1 |
---|
| 313 | } # as_fn_exit |
---|
[763] | 314 | |
---|
[788] | 315 | # as_fn_mkdir_p |
---|
| 316 | # ------------- |
---|
| 317 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
| 318 | as_fn_mkdir_p () |
---|
| 319 | { |
---|
[763] | 320 | |
---|
[788] | 321 | case $as_dir in #( |
---|
| 322 | -*) as_dir=./$as_dir;; |
---|
| 323 | esac |
---|
| 324 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
| 325 | as_dirs= |
---|
| 326 | while :; do |
---|
| 327 | case $as_dir in #( |
---|
| 328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
| 329 | *) as_qdir=$as_dir;; |
---|
| 330 | esac |
---|
| 331 | as_dirs="'$as_qdir' $as_dirs" |
---|
| 332 | as_dir=`$as_dirname -- "$as_dir" || |
---|
| 333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 334 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 335 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 337 | $as_echo X"$as_dir" | |
---|
| 338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 339 | s//\1/ |
---|
| 340 | q |
---|
| 341 | } |
---|
| 342 | /^X\(\/\/\)[^/].*/{ |
---|
| 343 | s//\1/ |
---|
| 344 | q |
---|
| 345 | } |
---|
| 346 | /^X\(\/\/\)$/{ |
---|
| 347 | s//\1/ |
---|
| 348 | q |
---|
| 349 | } |
---|
| 350 | /^X\(\/\).*/{ |
---|
| 351 | s//\1/ |
---|
| 352 | q |
---|
| 353 | } |
---|
| 354 | s/.*/./; q'` |
---|
| 355 | test -d "$as_dir" && break |
---|
| 356 | done |
---|
| 357 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
| 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
[107] | 359 | |
---|
[763] | 360 | |
---|
[788] | 361 | } # as_fn_mkdir_p |
---|
[1224] | 362 | |
---|
| 363 | # as_fn_executable_p FILE |
---|
| 364 | # ----------------------- |
---|
| 365 | # Test if FILE is an executable regular file. |
---|
| 366 | as_fn_executable_p () |
---|
| 367 | { |
---|
| 368 | test -f "$1" && test -x "$1" |
---|
| 369 | } # as_fn_executable_p |
---|
[788] | 370 | # as_fn_append VAR VALUE |
---|
| 371 | # ---------------------- |
---|
| 372 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
| 373 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
| 374 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
| 375 | # implementations. |
---|
| 376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
| 377 | eval 'as_fn_append () |
---|
| 378 | { |
---|
| 379 | eval $1+=\$2 |
---|
| 380 | }' |
---|
| 381 | else |
---|
| 382 | as_fn_append () |
---|
| 383 | { |
---|
| 384 | eval $1=\$$1\$2 |
---|
| 385 | } |
---|
| 386 | fi # as_fn_append |
---|
[763] | 387 | |
---|
[788] | 388 | # as_fn_arith ARG... |
---|
| 389 | # ------------------ |
---|
| 390 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
| 391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
| 392 | # must be portable across $(()) and expr. |
---|
| 393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
| 394 | eval 'as_fn_arith () |
---|
| 395 | { |
---|
| 396 | as_val=$(( $* )) |
---|
| 397 | }' |
---|
| 398 | else |
---|
| 399 | as_fn_arith () |
---|
| 400 | { |
---|
| 401 | as_val=`expr "$@" || test $? -eq 1` |
---|
| 402 | } |
---|
| 403 | fi # as_fn_arith |
---|
[763] | 404 | |
---|
| 405 | |
---|
[788] | 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
| 407 | # ---------------------------------------- |
---|
| 408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
| 409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
| 410 | # script with STATUS, using 1 if that was 0. |
---|
| 411 | as_fn_error () |
---|
| 412 | { |
---|
| 413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
| 414 | if test "$4"; then |
---|
| 415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
| 417 | fi |
---|
| 418 | $as_echo "$as_me: error: $2" >&2 |
---|
| 419 | as_fn_exit $as_status |
---|
| 420 | } # as_fn_error |
---|
[763] | 421 | |
---|
[788] | 422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
| 424 | as_expr=expr |
---|
[763] | 425 | else |
---|
[788] | 426 | as_expr=false |
---|
[763] | 427 | fi |
---|
| 428 | |
---|
[788] | 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
| 430 | as_basename=basename |
---|
[763] | 431 | else |
---|
[788] | 432 | as_basename=false |
---|
[763] | 433 | fi |
---|
| 434 | |
---|
[788] | 435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
| 436 | as_dirname=dirname |
---|
[763] | 437 | else |
---|
[788] | 438 | as_dirname=false |
---|
[763] | 439 | fi |
---|
| 440 | |
---|
[788] | 441 | as_me=`$as_basename -- "$0" || |
---|
| 442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 443 | X"$0" : 'X\(//\)$' \| \ |
---|
| 444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 445 | $as_echo X/"$0" | |
---|
| 446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
| 447 | s//\1/ |
---|
| 448 | q |
---|
| 449 | } |
---|
| 450 | /^X\/\(\/\/\)$/{ |
---|
| 451 | s//\1/ |
---|
| 452 | q |
---|
| 453 | } |
---|
| 454 | /^X\/\(\/\).*/{ |
---|
| 455 | s//\1/ |
---|
| 456 | q |
---|
| 457 | } |
---|
| 458 | s/.*/./; q'` |
---|
[763] | 459 | |
---|
[788] | 460 | # Avoid depending upon Character Ranges. |
---|
| 461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 464 | as_cr_digits='0123456789' |
---|
| 465 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
[763] | 466 | |
---|
| 467 | |
---|
[788] | 468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
---|
| 469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
---|
| 470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
---|
| 471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
---|
| 472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
---|
[763] | 473 | sed -n ' |
---|
| 474 | p |
---|
| 475 | /[$]LINENO/= |
---|
| 476 | ' <$as_myself | |
---|
[107] | 477 | sed ' |
---|
[763] | 478 | s/[$]LINENO.*/&-/ |
---|
| 479 | t lineno |
---|
| 480 | b |
---|
| 481 | :lineno |
---|
[107] | 482 | N |
---|
[763] | 483 | :loop |
---|
| 484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
[107] | 485 | t loop |
---|
[763] | 486 | s/-\n.*// |
---|
[107] | 487 | ' >$as_me.lineno && |
---|
[763] | 488 | chmod +x "$as_me.lineno" || |
---|
[788] | 489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
[107] | 490 | |
---|
[1224] | 491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
---|
| 492 | # already done that, so ensure we don't try to do so again and fall |
---|
| 493 | # in an infinite loop. This has already happened in practice. |
---|
| 494 | _as_can_reexec=no; export _as_can_reexec |
---|
[107] | 495 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 496 | # (the dirname of $[0] is not the place where we might find the |
---|
[763] | 497 | # original and so on. Autoconf is especially sensitive to this). |
---|
| 498 | . "./$as_me.lineno" |
---|
[107] | 499 | # Exit status is that of the last command. |
---|
| 500 | exit |
---|
| 501 | } |
---|
| 502 | |
---|
[763] | 503 | ECHO_C= ECHO_N= ECHO_T= |
---|
[788] | 504 | case `echo -n x` in #((((( |
---|
[763] | 505 | -n*) |
---|
[788] | 506 | case `echo 'xy\c'` in |
---|
[763] | 507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
[788] | 508 | xy) ECHO_C='\c';; |
---|
| 509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
| 510 | ECHO_T=' ';; |
---|
[763] | 511 | esac;; |
---|
| 512 | *) |
---|
| 513 | ECHO_N='-n';; |
---|
[107] | 514 | esac |
---|
| 515 | |
---|
| 516 | rm -f conf$$ conf$$.exe conf$$.file |
---|
[763] | 517 | if test -d conf$$.dir; then |
---|
| 518 | rm -f conf$$.dir/conf$$.file |
---|
| 519 | else |
---|
| 520 | rm -f conf$$.dir |
---|
[788] | 521 | mkdir conf$$.dir 2>/dev/null |
---|
[763] | 522 | fi |
---|
[788] | 523 | if (echo >conf$$.file) 2>/dev/null; then |
---|
| 524 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 525 | as_ln_s='ln -s' |
---|
| 526 | # ... but there are two gotchas: |
---|
| 527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
| 528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
[1224] | 529 | # In both cases, we have to default to `cp -pR'. |
---|
[788] | 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
[1224] | 531 | as_ln_s='cp -pR' |
---|
[788] | 532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 533 | as_ln_s=ln |
---|
| 534 | else |
---|
[1224] | 535 | as_ln_s='cp -pR' |
---|
[788] | 536 | fi |
---|
[107] | 537 | else |
---|
[1224] | 538 | as_ln_s='cp -pR' |
---|
[107] | 539 | fi |
---|
[763] | 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
| 541 | rmdir conf$$.dir 2>/dev/null |
---|
[107] | 542 | |
---|
| 543 | if mkdir -p . 2>/dev/null; then |
---|
[788] | 544 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
[107] | 545 | else |
---|
[349] | 546 | test -d ./-p && rmdir ./-p |
---|
[107] | 547 | as_mkdir_p=false |
---|
| 548 | fi |
---|
| 549 | |
---|
[1224] | 550 | as_test_x='test -x' |
---|
| 551 | as_executable_p=as_fn_executable_p |
---|
[107] | 552 | |
---|
| 553 | # Sed expression to map a string onto a valid CPP name. |
---|
[349] | 554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
[107] | 555 | |
---|
| 556 | # Sed expression to map a string onto a valid variable name. |
---|
[349] | 557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
[107] | 558 | |
---|
| 559 | |
---|
[788] | 560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
| 561 | exec 6>&1 |
---|
[107] | 562 | |
---|
| 563 | # Name of the host. |
---|
[788] | 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
---|
[107] | 565 | # so uname gets run too. |
---|
| 566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 567 | |
---|
| 568 | # |
---|
| 569 | # Initializations. |
---|
| 570 | # |
---|
| 571 | ac_default_prefix=/usr/local |
---|
[763] | 572 | ac_clean_files= |
---|
[107] | 573 | ac_config_libobj_dir=. |
---|
[763] | 574 | LIBOBJS= |
---|
[107] | 575 | cross_compiling=no |
---|
| 576 | subdirs= |
---|
| 577 | MFLAGS= |
---|
| 578 | MAKEFLAGS= |
---|
| 579 | |
---|
| 580 | # Identity of this package. |
---|
| 581 | PACKAGE_NAME='Duchamp' |
---|
| 582 | PACKAGE_TARNAME='duchamp' |
---|
[1229] | 583 | PACKAGE_VERSION='1.4' |
---|
| 584 | PACKAGE_STRING='Duchamp 1.4' |
---|
[121] | 585 | PACKAGE_BUGREPORT='Matthew.Whiting@csiro.au' |
---|
[788] | 586 | PACKAGE_URL='' |
---|
[107] | 587 | |
---|
[168] | 588 | ac_unique_file="src/duchamp.hh" |
---|
[347] | 589 | ac_default_prefix=/usr/local |
---|
[107] | 590 | # Factoring default headers for most tests. |
---|
| 591 | ac_includes_default="\ |
---|
| 592 | #include <stdio.h> |
---|
[763] | 593 | #ifdef HAVE_SYS_TYPES_H |
---|
[107] | 594 | # include <sys/types.h> |
---|
| 595 | #endif |
---|
[763] | 596 | #ifdef HAVE_SYS_STAT_H |
---|
[107] | 597 | # include <sys/stat.h> |
---|
| 598 | #endif |
---|
[763] | 599 | #ifdef STDC_HEADERS |
---|
[107] | 600 | # include <stdlib.h> |
---|
| 601 | # include <stddef.h> |
---|
| 602 | #else |
---|
[763] | 603 | # ifdef HAVE_STDLIB_H |
---|
[107] | 604 | # include <stdlib.h> |
---|
| 605 | # endif |
---|
| 606 | #endif |
---|
[763] | 607 | #ifdef HAVE_STRING_H |
---|
| 608 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
[107] | 609 | # include <memory.h> |
---|
| 610 | # endif |
---|
| 611 | # include <string.h> |
---|
| 612 | #endif |
---|
[763] | 613 | #ifdef HAVE_STRINGS_H |
---|
[107] | 614 | # include <strings.h> |
---|
| 615 | #endif |
---|
[763] | 616 | #ifdef HAVE_INTTYPES_H |
---|
[107] | 617 | # include <inttypes.h> |
---|
| 618 | #endif |
---|
[763] | 619 | #ifdef HAVE_STDINT_H |
---|
| 620 | # include <stdint.h> |
---|
| 621 | #endif |
---|
| 622 | #ifdef HAVE_UNISTD_H |
---|
[107] | 623 | # include <unistd.h> |
---|
| 624 | #endif" |
---|
| 625 | |
---|
[788] | 626 | ac_subst_vars='LTLIBOBJS |
---|
| 627 | WCSLIB |
---|
| 628 | WCSINC |
---|
| 629 | CFITSIOLIB |
---|
| 630 | CFITSIOINC |
---|
| 631 | PGPLOTLIB |
---|
| 632 | PGPLOTINC |
---|
| 633 | LINKER |
---|
[1058] | 634 | X_EXTRA_LIBS |
---|
| 635 | X_LIBS |
---|
| 636 | X_PRE_LIBS |
---|
| 637 | X_CFLAGS |
---|
[788] | 638 | XMKMF |
---|
| 639 | LIBOBJS |
---|
| 640 | POW_LIB |
---|
[1222] | 641 | SHRLN |
---|
| 642 | SHRSFX |
---|
| 643 | SHRLD |
---|
| 644 | SHRFLAGS |
---|
| 645 | SHRLIB |
---|
[788] | 646 | RANLIB |
---|
| 647 | EGREP |
---|
| 648 | GREP |
---|
| 649 | INSTALL |
---|
| 650 | LN_S |
---|
| 651 | ac_ct_F77 |
---|
| 652 | FFLAGS |
---|
| 653 | F77 |
---|
| 654 | CPP |
---|
| 655 | ac_ct_CC |
---|
| 656 | CFLAGS |
---|
| 657 | CC |
---|
| 658 | OBJEXT |
---|
| 659 | EXEEXT |
---|
| 660 | ac_ct_CXX |
---|
| 661 | CPPFLAGS |
---|
| 662 | LDFLAGS |
---|
| 663 | CXXFLAGS |
---|
| 664 | CXX |
---|
[1224] | 665 | ARCH |
---|
| 666 | build_os |
---|
| 667 | build_vendor |
---|
| 668 | build_cpu |
---|
| 669 | build |
---|
[788] | 670 | target_alias |
---|
| 671 | host_alias |
---|
| 672 | build_alias |
---|
| 673 | LIBS |
---|
| 674 | ECHO_T |
---|
| 675 | ECHO_N |
---|
| 676 | ECHO_C |
---|
| 677 | DEFS |
---|
| 678 | mandir |
---|
| 679 | localedir |
---|
| 680 | libdir |
---|
| 681 | psdir |
---|
| 682 | pdfdir |
---|
| 683 | dvidir |
---|
| 684 | htmldir |
---|
| 685 | infodir |
---|
| 686 | docdir |
---|
| 687 | oldincludedir |
---|
| 688 | includedir |
---|
| 689 | localstatedir |
---|
| 690 | sharedstatedir |
---|
| 691 | sysconfdir |
---|
| 692 | datadir |
---|
| 693 | datarootdir |
---|
| 694 | libexecdir |
---|
| 695 | sbindir |
---|
| 696 | bindir |
---|
| 697 | program_transform_name |
---|
| 698 | prefix |
---|
| 699 | exec_prefix |
---|
| 700 | PACKAGE_URL |
---|
| 701 | PACKAGE_BUGREPORT |
---|
| 702 | PACKAGE_STRING |
---|
| 703 | PACKAGE_VERSION |
---|
| 704 | PACKAGE_TARNAME |
---|
| 705 | PACKAGE_NAME |
---|
[763] | 706 | PATH_SEPARATOR |
---|
[788] | 707 | SHELL' |
---|
[107] | 708 | ac_subst_files='' |
---|
[788] | 709 | ac_user_opts=' |
---|
| 710 | enable_option_checking |
---|
| 711 | with_pgplot |
---|
| 712 | with_x |
---|
| 713 | with_cfitsio |
---|
| 714 | with_wcslib |
---|
| 715 | ' |
---|
[763] | 716 | ac_precious_vars='build_alias |
---|
| 717 | host_alias |
---|
| 718 | target_alias |
---|
| 719 | CXX |
---|
| 720 | CXXFLAGS |
---|
| 721 | LDFLAGS |
---|
| 722 | LIBS |
---|
| 723 | CPPFLAGS |
---|
| 724 | CCC |
---|
| 725 | CC |
---|
| 726 | CFLAGS |
---|
| 727 | CPP |
---|
| 728 | F77 |
---|
| 729 | FFLAGS |
---|
| 730 | XMKMF' |
---|
[107] | 731 | |
---|
[763] | 732 | |
---|
[107] | 733 | # Initialize some variables set by options. |
---|
| 734 | ac_init_help= |
---|
| 735 | ac_init_version=false |
---|
[788] | 736 | ac_unrecognized_opts= |
---|
| 737 | ac_unrecognized_sep= |
---|
[107] | 738 | # The variables have the same names as the options, with |
---|
| 739 | # dashes changed to underlines. |
---|
| 740 | cache_file=/dev/null |
---|
| 741 | exec_prefix=NONE |
---|
| 742 | no_create= |
---|
| 743 | no_recursion= |
---|
| 744 | prefix=NONE |
---|
| 745 | program_prefix=NONE |
---|
| 746 | program_suffix=NONE |
---|
| 747 | program_transform_name=s,x,x, |
---|
| 748 | silent= |
---|
| 749 | site= |
---|
| 750 | srcdir= |
---|
| 751 | verbose= |
---|
| 752 | x_includes=NONE |
---|
| 753 | x_libraries=NONE |
---|
| 754 | |
---|
| 755 | # Installation directory options. |
---|
| 756 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
| 757 | # and all the variables that are supposed to be based on exec_prefix |
---|
| 758 | # by default will actually change. |
---|
| 759 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
[763] | 760 | # (The list follows the same order as the GNU Coding Standards.) |
---|
[107] | 761 | bindir='${exec_prefix}/bin' |
---|
| 762 | sbindir='${exec_prefix}/sbin' |
---|
| 763 | libexecdir='${exec_prefix}/libexec' |
---|
[763] | 764 | datarootdir='${prefix}/share' |
---|
| 765 | datadir='${datarootdir}' |
---|
[107] | 766 | sysconfdir='${prefix}/etc' |
---|
| 767 | sharedstatedir='${prefix}/com' |
---|
| 768 | localstatedir='${prefix}/var' |
---|
| 769 | includedir='${prefix}/include' |
---|
| 770 | oldincludedir='/usr/include' |
---|
[763] | 771 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
| 772 | infodir='${datarootdir}/info' |
---|
| 773 | htmldir='${docdir}' |
---|
| 774 | dvidir='${docdir}' |
---|
| 775 | pdfdir='${docdir}' |
---|
| 776 | psdir='${docdir}' |
---|
| 777 | libdir='${exec_prefix}/lib' |
---|
| 778 | localedir='${datarootdir}/locale' |
---|
| 779 | mandir='${datarootdir}/man' |
---|
[107] | 780 | |
---|
| 781 | ac_prev= |
---|
[763] | 782 | ac_dashdash= |
---|
[107] | 783 | for ac_option |
---|
| 784 | do |
---|
| 785 | # If the previous option needs an argument, assign it. |
---|
| 786 | if test -n "$ac_prev"; then |
---|
[763] | 787 | eval $ac_prev=\$ac_option |
---|
[107] | 788 | ac_prev= |
---|
| 789 | continue |
---|
| 790 | fi |
---|
| 791 | |
---|
[763] | 792 | case $ac_option in |
---|
[788] | 793 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
| 794 | *=) ac_optarg= ;; |
---|
| 795 | *) ac_optarg=yes ;; |
---|
[763] | 796 | esac |
---|
[107] | 797 | |
---|
| 798 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 799 | |
---|
[763] | 800 | case $ac_dashdash$ac_option in |
---|
| 801 | --) |
---|
| 802 | ac_dashdash=yes ;; |
---|
[107] | 803 | |
---|
| 804 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 805 | ac_prev=bindir ;; |
---|
| 806 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 807 | bindir=$ac_optarg ;; |
---|
| 808 | |
---|
| 809 | -build | --build | --buil | --bui | --bu) |
---|
| 810 | ac_prev=build_alias ;; |
---|
| 811 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 812 | build_alias=$ac_optarg ;; |
---|
| 813 | |
---|
| 814 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 815 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 816 | ac_prev=cache_file ;; |
---|
| 817 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 818 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 819 | cache_file=$ac_optarg ;; |
---|
| 820 | |
---|
| 821 | --config-cache | -C) |
---|
| 822 | cache_file=config.cache ;; |
---|
| 823 | |
---|
[763] | 824 | -datadir | --datadir | --datadi | --datad) |
---|
[107] | 825 | ac_prev=datadir ;; |
---|
[763] | 826 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
[107] | 827 | datadir=$ac_optarg ;; |
---|
| 828 | |
---|
[763] | 829 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
| 830 | | --dataroo | --dataro | --datar) |
---|
| 831 | ac_prev=datarootdir ;; |
---|
| 832 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
| 833 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
| 834 | datarootdir=$ac_optarg ;; |
---|
| 835 | |
---|
[107] | 836 | -disable-* | --disable-*) |
---|
[788] | 837 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
[107] | 838 | # Reject names that are not valid shell variable names. |
---|
[788] | 839 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 840 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
| 841 | ac_useropt_orig=$ac_useropt |
---|
| 842 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 843 | case $ac_user_opts in |
---|
| 844 | *" |
---|
| 845 | "enable_$ac_useropt" |
---|
| 846 | "*) ;; |
---|
| 847 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
| 848 | ac_unrecognized_sep=', ';; |
---|
| 849 | esac |
---|
| 850 | eval enable_$ac_useropt=no ;; |
---|
[107] | 851 | |
---|
[763] | 852 | -docdir | --docdir | --docdi | --doc | --do) |
---|
| 853 | ac_prev=docdir ;; |
---|
| 854 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
| 855 | docdir=$ac_optarg ;; |
---|
| 856 | |
---|
| 857 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
| 858 | ac_prev=dvidir ;; |
---|
| 859 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
| 860 | dvidir=$ac_optarg ;; |
---|
| 861 | |
---|
[107] | 862 | -enable-* | --enable-*) |
---|
[788] | 863 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
[107] | 864 | # Reject names that are not valid shell variable names. |
---|
[788] | 865 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 866 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
| 867 | ac_useropt_orig=$ac_useropt |
---|
| 868 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 869 | case $ac_user_opts in |
---|
| 870 | *" |
---|
| 871 | "enable_$ac_useropt" |
---|
| 872 | "*) ;; |
---|
| 873 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
| 874 | ac_unrecognized_sep=', ';; |
---|
| 875 | esac |
---|
| 876 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
[107] | 877 | |
---|
| 878 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 879 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 880 | | --exec | --exe | --ex) |
---|
| 881 | ac_prev=exec_prefix ;; |
---|
| 882 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 883 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 884 | | --exec=* | --exe=* | --ex=*) |
---|
| 885 | exec_prefix=$ac_optarg ;; |
---|
| 886 | |
---|
| 887 | -gas | --gas | --ga | --g) |
---|
| 888 | # Obsolete; use --with-gas. |
---|
| 889 | with_gas=yes ;; |
---|
| 890 | |
---|
| 891 | -help | --help | --hel | --he | -h) |
---|
| 892 | ac_init_help=long ;; |
---|
| 893 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
| 894 | ac_init_help=recursive ;; |
---|
| 895 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
| 896 | ac_init_help=short ;; |
---|
| 897 | |
---|
| 898 | -host | --host | --hos | --ho) |
---|
| 899 | ac_prev=host_alias ;; |
---|
| 900 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 901 | host_alias=$ac_optarg ;; |
---|
| 902 | |
---|
[763] | 903 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
| 904 | ac_prev=htmldir ;; |
---|
| 905 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
| 906 | | --ht=*) |
---|
| 907 | htmldir=$ac_optarg ;; |
---|
| 908 | |
---|
[107] | 909 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 910 | | --includ | --inclu | --incl | --inc) |
---|
| 911 | ac_prev=includedir ;; |
---|
| 912 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 913 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 914 | includedir=$ac_optarg ;; |
---|
| 915 | |
---|
| 916 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 917 | ac_prev=infodir ;; |
---|
| 918 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 919 | infodir=$ac_optarg ;; |
---|
| 920 | |
---|
| 921 | -libdir | --libdir | --libdi | --libd) |
---|
| 922 | ac_prev=libdir ;; |
---|
| 923 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 924 | libdir=$ac_optarg ;; |
---|
| 925 | |
---|
| 926 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 927 | | --libexe | --libex | --libe) |
---|
| 928 | ac_prev=libexecdir ;; |
---|
| 929 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 930 | | --libexe=* | --libex=* | --libe=*) |
---|
| 931 | libexecdir=$ac_optarg ;; |
---|
| 932 | |
---|
[763] | 933 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
| 934 | ac_prev=localedir ;; |
---|
| 935 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
| 936 | localedir=$ac_optarg ;; |
---|
| 937 | |
---|
[107] | 938 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
[763] | 939 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
[107] | 940 | ac_prev=localstatedir ;; |
---|
| 941 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
[763] | 942 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
[107] | 943 | localstatedir=$ac_optarg ;; |
---|
| 944 | |
---|
| 945 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 946 | ac_prev=mandir ;; |
---|
| 947 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 948 | mandir=$ac_optarg ;; |
---|
| 949 | |
---|
| 950 | -nfp | --nfp | --nf) |
---|
| 951 | # Obsolete; use --without-fp. |
---|
| 952 | with_fp=no ;; |
---|
| 953 | |
---|
| 954 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 955 | | --no-cr | --no-c | -n) |
---|
| 956 | no_create=yes ;; |
---|
| 957 | |
---|
| 958 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 959 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 960 | no_recursion=yes ;; |
---|
| 961 | |
---|
| 962 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 963 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 964 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 965 | ac_prev=oldincludedir ;; |
---|
| 966 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 967 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 968 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 969 | oldincludedir=$ac_optarg ;; |
---|
| 970 | |
---|
| 971 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 972 | ac_prev=prefix ;; |
---|
| 973 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 974 | prefix=$ac_optarg ;; |
---|
| 975 | |
---|
| 976 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 977 | | --program-pre | --program-pr | --program-p) |
---|
| 978 | ac_prev=program_prefix ;; |
---|
| 979 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 980 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 981 | program_prefix=$ac_optarg ;; |
---|
| 982 | |
---|
| 983 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 984 | | --program-suf | --program-su | --program-s) |
---|
| 985 | ac_prev=program_suffix ;; |
---|
| 986 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 987 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 988 | program_suffix=$ac_optarg ;; |
---|
| 989 | |
---|
| 990 | -program-transform-name | --program-transform-name \ |
---|
| 991 | | --program-transform-nam | --program-transform-na \ |
---|
| 992 | | --program-transform-n | --program-transform- \ |
---|
| 993 | | --program-transform | --program-transfor \ |
---|
| 994 | | --program-transfo | --program-transf \ |
---|
| 995 | | --program-trans | --program-tran \ |
---|
| 996 | | --progr-tra | --program-tr | --program-t) |
---|
| 997 | ac_prev=program_transform_name ;; |
---|
| 998 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 999 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 1000 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 1001 | | --program-transform=* | --program-transfor=* \ |
---|
| 1002 | | --program-transfo=* | --program-transf=* \ |
---|
| 1003 | | --program-trans=* | --program-tran=* \ |
---|
| 1004 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 1005 | program_transform_name=$ac_optarg ;; |
---|
| 1006 | |
---|
[763] | 1007 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
| 1008 | ac_prev=pdfdir ;; |
---|
| 1009 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
| 1010 | pdfdir=$ac_optarg ;; |
---|
| 1011 | |
---|
| 1012 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
| 1013 | ac_prev=psdir ;; |
---|
| 1014 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
| 1015 | psdir=$ac_optarg ;; |
---|
| 1016 | |
---|
[107] | 1017 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1018 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1019 | silent=yes ;; |
---|
| 1020 | |
---|
| 1021 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 1022 | ac_prev=sbindir ;; |
---|
| 1023 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 1024 | | --sbi=* | --sb=*) |
---|
| 1025 | sbindir=$ac_optarg ;; |
---|
| 1026 | |
---|
| 1027 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 1028 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 1029 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 1030 | | --sha | --sh) |
---|
| 1031 | ac_prev=sharedstatedir ;; |
---|
| 1032 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 1033 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 1034 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 1035 | | --sha=* | --sh=*) |
---|
| 1036 | sharedstatedir=$ac_optarg ;; |
---|
| 1037 | |
---|
| 1038 | -site | --site | --sit) |
---|
| 1039 | ac_prev=site ;; |
---|
| 1040 | -site=* | --site=* | --sit=*) |
---|
| 1041 | site=$ac_optarg ;; |
---|
| 1042 | |
---|
| 1043 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 1044 | ac_prev=srcdir ;; |
---|
| 1045 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 1046 | srcdir=$ac_optarg ;; |
---|
| 1047 | |
---|
| 1048 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 1049 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 1050 | ac_prev=sysconfdir ;; |
---|
| 1051 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 1052 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 1053 | sysconfdir=$ac_optarg ;; |
---|
| 1054 | |
---|
| 1055 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 1056 | ac_prev=target_alias ;; |
---|
| 1057 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 1058 | target_alias=$ac_optarg ;; |
---|
| 1059 | |
---|
| 1060 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 1061 | verbose=yes ;; |
---|
| 1062 | |
---|
| 1063 | -version | --version | --versio | --versi | --vers | -V) |
---|
| 1064 | ac_init_version=: ;; |
---|
| 1065 | |
---|
| 1066 | -with-* | --with-*) |
---|
[788] | 1067 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
[107] | 1068 | # Reject names that are not valid shell variable names. |
---|
[788] | 1069 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 1070 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
| 1071 | ac_useropt_orig=$ac_useropt |
---|
| 1072 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 1073 | case $ac_user_opts in |
---|
| 1074 | *" |
---|
| 1075 | "with_$ac_useropt" |
---|
| 1076 | "*) ;; |
---|
| 1077 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
| 1078 | ac_unrecognized_sep=', ';; |
---|
| 1079 | esac |
---|
| 1080 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
[107] | 1081 | |
---|
| 1082 | -without-* | --without-*) |
---|
[788] | 1083 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
[107] | 1084 | # Reject names that are not valid shell variable names. |
---|
[788] | 1085 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 1086 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
| 1087 | ac_useropt_orig=$ac_useropt |
---|
| 1088 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 1089 | case $ac_user_opts in |
---|
| 1090 | *" |
---|
| 1091 | "with_$ac_useropt" |
---|
| 1092 | "*) ;; |
---|
| 1093 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
| 1094 | ac_unrecognized_sep=', ';; |
---|
| 1095 | esac |
---|
| 1096 | eval with_$ac_useropt=no ;; |
---|
[107] | 1097 | |
---|
| 1098 | --x) |
---|
| 1099 | # Obsolete; use --with-x. |
---|
| 1100 | with_x=yes ;; |
---|
| 1101 | |
---|
| 1102 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 1103 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 1104 | ac_prev=x_includes ;; |
---|
| 1105 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 1106 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 1107 | x_includes=$ac_optarg ;; |
---|
| 1108 | |
---|
| 1109 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 1110 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 1111 | ac_prev=x_libraries ;; |
---|
| 1112 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 1113 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 1114 | x_libraries=$ac_optarg ;; |
---|
| 1115 | |
---|
[788] | 1116 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
| 1117 | Try \`$0 --help' for more information" |
---|
[107] | 1118 | ;; |
---|
| 1119 | |
---|
| 1120 | *=*) |
---|
| 1121 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
| 1122 | # Reject names that are not valid shell variable names. |
---|
[788] | 1123 | case $ac_envvar in #( |
---|
| 1124 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
| 1125 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
| 1126 | esac |
---|
[763] | 1127 | eval $ac_envvar=\$ac_optarg |
---|
[107] | 1128 | export $ac_envvar ;; |
---|
| 1129 | |
---|
| 1130 | *) |
---|
| 1131 | # FIXME: should be removed in autoconf 3.0. |
---|
[788] | 1132 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
[107] | 1133 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
[788] | 1134 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
| 1135 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
[107] | 1136 | ;; |
---|
| 1137 | |
---|
| 1138 | esac |
---|
| 1139 | done |
---|
| 1140 | |
---|
| 1141 | if test -n "$ac_prev"; then |
---|
| 1142 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
[788] | 1143 | as_fn_error $? "missing argument to $ac_option" |
---|
[107] | 1144 | fi |
---|
| 1145 | |
---|
[788] | 1146 | if test -n "$ac_unrecognized_opts"; then |
---|
| 1147 | case $enable_option_checking in |
---|
| 1148 | no) ;; |
---|
| 1149 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
| 1150 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
| 1151 | esac |
---|
| 1152 | fi |
---|
| 1153 | |
---|
| 1154 | # Check all directory arguments for consistency. |
---|
[763] | 1155 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
| 1156 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
| 1157 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
| 1158 | libdir localedir mandir |
---|
[107] | 1159 | do |
---|
[763] | 1160 | eval ac_val=\$$ac_var |
---|
[788] | 1161 | # Remove trailing slashes. |
---|
[107] | 1162 | case $ac_val in |
---|
[788] | 1163 | */ ) |
---|
| 1164 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
| 1165 | eval $ac_var=\$ac_val;; |
---|
| 1166 | esac |
---|
| 1167 | # Be sure to have absolute directory names. |
---|
| 1168 | case $ac_val in |
---|
[763] | 1169 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
| 1170 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
[107] | 1171 | esac |
---|
[788] | 1172 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
[107] | 1173 | done |
---|
| 1174 | |
---|
| 1175 | # There might be people who depend on the old broken behavior: `$host' |
---|
| 1176 | # used to hold the argument of --host etc. |
---|
| 1177 | # FIXME: To remove some day. |
---|
| 1178 | build=$build_alias |
---|
| 1179 | host=$host_alias |
---|
| 1180 | target=$target_alias |
---|
| 1181 | |
---|
| 1182 | # FIXME: To remove some day. |
---|
| 1183 | if test "x$host_alias" != x; then |
---|
| 1184 | if test "x$build_alias" = x; then |
---|
| 1185 | cross_compiling=maybe |
---|
| 1186 | elif test "x$build_alias" != "x$host_alias"; then |
---|
| 1187 | cross_compiling=yes |
---|
| 1188 | fi |
---|
| 1189 | fi |
---|
| 1190 | |
---|
| 1191 | ac_tool_prefix= |
---|
| 1192 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
| 1193 | |
---|
| 1194 | test "$silent" = yes && exec 6>/dev/null |
---|
| 1195 | |
---|
| 1196 | |
---|
[763] | 1197 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
| 1198 | ac_ls_di=`ls -di .` && |
---|
| 1199 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
[788] | 1200 | as_fn_error $? "working directory cannot be determined" |
---|
[763] | 1201 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
[788] | 1202 | as_fn_error $? "pwd does not report name of working directory" |
---|
[763] | 1203 | |
---|
| 1204 | |
---|
[107] | 1205 | # Find the source files, if location was not specified. |
---|
| 1206 | if test -z "$srcdir"; then |
---|
| 1207 | ac_srcdir_defaulted=yes |
---|
[763] | 1208 | # Try the directory containing this script, then the parent directory. |
---|
[788] | 1209 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
| 1210 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 1211 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
| 1212 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
| 1213 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 1214 | $as_echo X"$as_myself" | |
---|
[763] | 1215 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 1216 | s//\1/ |
---|
| 1217 | q |
---|
| 1218 | } |
---|
| 1219 | /^X\(\/\/\)[^/].*/{ |
---|
| 1220 | s//\1/ |
---|
| 1221 | q |
---|
| 1222 | } |
---|
| 1223 | /^X\(\/\/\)$/{ |
---|
| 1224 | s//\1/ |
---|
| 1225 | q |
---|
| 1226 | } |
---|
| 1227 | /^X\(\/\).*/{ |
---|
| 1228 | s//\1/ |
---|
| 1229 | q |
---|
| 1230 | } |
---|
| 1231 | s/.*/./; q'` |
---|
[107] | 1232 | srcdir=$ac_confdir |
---|
[763] | 1233 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
[107] | 1234 | srcdir=.. |
---|
| 1235 | fi |
---|
| 1236 | else |
---|
| 1237 | ac_srcdir_defaulted=no |
---|
| 1238 | fi |
---|
[763] | 1239 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
| 1240 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
[788] | 1241 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
[763] | 1242 | fi |
---|
| 1243 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
| 1244 | ac_abs_confdir=`( |
---|
[788] | 1245 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
[763] | 1246 | pwd)` |
---|
| 1247 | # When building in place, set srcdir=. |
---|
| 1248 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
| 1249 | srcdir=. |
---|
[107] | 1250 | fi |
---|
[763] | 1251 | # Remove unnecessary trailing slashes from srcdir. |
---|
| 1252 | # Double slashes in file names in object file debugging info |
---|
| 1253 | # mess up M-x gdb in Emacs. |
---|
| 1254 | case $srcdir in |
---|
| 1255 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
| 1256 | esac |
---|
| 1257 | for ac_var in $ac_precious_vars; do |
---|
| 1258 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
| 1259 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
| 1260 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
| 1261 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
| 1262 | done |
---|
[107] | 1263 | |
---|
| 1264 | # |
---|
| 1265 | # Report the --help message. |
---|
| 1266 | # |
---|
| 1267 | if test "$ac_init_help" = "long"; then |
---|
| 1268 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 1269 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 1270 | cat <<_ACEOF |
---|
[1229] | 1271 | \`configure' configures Duchamp 1.4 to adapt to many kinds of systems. |
---|
[107] | 1272 | |
---|
| 1273 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 1274 | |
---|
| 1275 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 1276 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 1277 | |
---|
| 1278 | Defaults for the options are specified in brackets. |
---|
| 1279 | |
---|
| 1280 | Configuration: |
---|
| 1281 | -h, --help display this help and exit |
---|
| 1282 | --help=short display options specific to this package |
---|
| 1283 | --help=recursive display the short help of all the included packages |
---|
| 1284 | -V, --version display version information and exit |
---|
[788] | 1285 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
[107] | 1286 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 1287 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 1288 | -n, --no-create do not create output files |
---|
| 1289 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 1290 | |
---|
| 1291 | Installation directories: |
---|
| 1292 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
[788] | 1293 | [$ac_default_prefix] |
---|
[107] | 1294 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
[788] | 1295 | [PREFIX] |
---|
[107] | 1296 | |
---|
| 1297 | By default, \`make install' will install all the files in |
---|
| 1298 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 1299 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 1300 | for instance \`--prefix=\$HOME'. |
---|
| 1301 | |
---|
| 1302 | For better control, use the options below. |
---|
| 1303 | |
---|
| 1304 | Fine tuning of the installation directories: |
---|
[788] | 1305 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 1306 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 1307 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 1308 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 1309 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 1310 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 1311 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 1312 | --includedir=DIR C header files [PREFIX/include] |
---|
| 1313 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
| 1314 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
| 1315 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
| 1316 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
| 1317 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
| 1318 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
| 1319 | --docdir=DIR documentation root [DATAROOTDIR/doc/duchamp] |
---|
| 1320 | --htmldir=DIR html documentation [DOCDIR] |
---|
| 1321 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
| 1322 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
| 1323 | --psdir=DIR ps documentation [DOCDIR] |
---|
[107] | 1324 | _ACEOF |
---|
| 1325 | |
---|
| 1326 | cat <<\_ACEOF |
---|
| 1327 | |
---|
| 1328 | X features: |
---|
| 1329 | --x-includes=DIR X include files are in DIR |
---|
| 1330 | --x-libraries=DIR X library files are in DIR |
---|
[1224] | 1331 | |
---|
| 1332 | System types: |
---|
| 1333 | --build=BUILD configure for building on BUILD [guessed] |
---|
[107] | 1334 | _ACEOF |
---|
| 1335 | fi |
---|
| 1336 | |
---|
| 1337 | if test -n "$ac_init_help"; then |
---|
| 1338 | case $ac_init_help in |
---|
[1229] | 1339 | short | recursive ) echo "Configuration of Duchamp 1.4:";; |
---|
[107] | 1340 | esac |
---|
| 1341 | cat <<\_ACEOF |
---|
| 1342 | |
---|
| 1343 | Optional Packages: |
---|
| 1344 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 1345 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
[342] | 1346 | |
---|
| 1347 | --with-pgplot=no Compile without PGPLOT graphics capabilities. |
---|
| 1348 | --without-pgplot Compile without PGPLOT graphics capabilities. |
---|
| 1349 | --with-pgplot=<dir> Compile with PGPLOT graphics capabilities, using the |
---|
| 1350 | directory <dir> to specify the PGPLOT library., |
---|
| 1351 | |
---|
[107] | 1352 | --with-x use the X Window System |
---|
[342] | 1353 | --with-cfitsio=<dir> The CFITSIO library and include files are in |
---|
| 1354 | directory <dir>. |
---|
| 1355 | --with-wcslib=<dir> The WCSLIB library and include files are in |
---|
| 1356 | directory <dir>. |
---|
[107] | 1357 | |
---|
| 1358 | Some influential environment variables: |
---|
| 1359 | CXX C++ compiler command |
---|
| 1360 | CXXFLAGS C++ compiler flags |
---|
| 1361 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 1362 | nonstandard directory <lib dir> |
---|
[763] | 1363 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
[788] | 1364 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
[763] | 1365 | you have headers in a nonstandard directory <include dir> |
---|
[107] | 1366 | CC C compiler command |
---|
| 1367 | CFLAGS C compiler flags |
---|
| 1368 | CPP C preprocessor |
---|
[351] | 1369 | F77 Fortran 77 compiler command |
---|
| 1370 | FFLAGS Fortran 77 compiler flags |
---|
[763] | 1371 | XMKMF Path to xmkmf, Makefile generator for X Window System |
---|
[107] | 1372 | |
---|
| 1373 | Use these variables to override the choices made by `configure' or to help |
---|
| 1374 | it to find libraries and programs with nonstandard names/locations. |
---|
| 1375 | |
---|
[121] | 1376 | Report bugs to <Matthew.Whiting@csiro.au>. |
---|
[107] | 1377 | _ACEOF |
---|
[763] | 1378 | ac_status=$? |
---|
[107] | 1379 | fi |
---|
| 1380 | |
---|
| 1381 | if test "$ac_init_help" = "recursive"; then |
---|
| 1382 | # If there are subdirs, report their specific --help. |
---|
| 1383 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
[788] | 1384 | test -d "$ac_dir" || |
---|
| 1385 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
| 1386 | continue |
---|
[107] | 1387 | ac_builddir=. |
---|
| 1388 | |
---|
[763] | 1389 | case "$ac_dir" in |
---|
| 1390 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 1391 | *) |
---|
[788] | 1392 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
[763] | 1393 | # A ".." for each directory in $ac_dir_suffix. |
---|
[788] | 1394 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
[763] | 1395 | case $ac_top_builddir_sub in |
---|
| 1396 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 1397 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
| 1398 | esac ;; |
---|
| 1399 | esac |
---|
| 1400 | ac_abs_top_builddir=$ac_pwd |
---|
| 1401 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
| 1402 | # for backward compatibility: |
---|
| 1403 | ac_top_builddir=$ac_top_build_prefix |
---|
[107] | 1404 | |
---|
| 1405 | case $srcdir in |
---|
[763] | 1406 | .) # We are building in place. |
---|
[107] | 1407 | ac_srcdir=. |
---|
[763] | 1408 | ac_top_srcdir=$ac_top_builddir_sub |
---|
| 1409 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
| 1410 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
[107] | 1411 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
[763] | 1412 | ac_top_srcdir=$srcdir |
---|
| 1413 | ac_abs_top_srcdir=$srcdir ;; |
---|
| 1414 | *) # Relative name. |
---|
| 1415 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
| 1416 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
| 1417 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
[107] | 1418 | esac |
---|
[763] | 1419 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
[107] | 1420 | |
---|
[763] | 1421 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
| 1422 | # Check for guested configure. |
---|
| 1423 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
| 1424 | echo && |
---|
| 1425 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
| 1426 | elif test -f "$ac_srcdir/configure"; then |
---|
| 1427 | echo && |
---|
| 1428 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
[107] | 1429 | else |
---|
[788] | 1430 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
[763] | 1431 | fi || ac_status=$? |
---|
| 1432 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
[107] | 1433 | done |
---|
| 1434 | fi |
---|
| 1435 | |
---|
[763] | 1436 | test -n "$ac_init_help" && exit $ac_status |
---|
[107] | 1437 | if $ac_init_version; then |
---|
| 1438 | cat <<\_ACEOF |
---|
[1229] | 1439 | Duchamp configure 1.4 |
---|
[1224] | 1440 | generated by GNU Autoconf 2.69 |
---|
[107] | 1441 | |
---|
[1224] | 1442 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
[107] | 1443 | This configure script is free software; the Free Software Foundation |
---|
| 1444 | gives unlimited permission to copy, distribute and modify it. |
---|
| 1445 | _ACEOF |
---|
[763] | 1446 | exit |
---|
[107] | 1447 | fi |
---|
[788] | 1448 | |
---|
| 1449 | ## ------------------------ ## |
---|
| 1450 | ## Autoconf initialization. ## |
---|
| 1451 | ## ------------------------ ## |
---|
| 1452 | |
---|
| 1453 | # ac_fn_cxx_try_compile LINENO |
---|
| 1454 | # ---------------------------- |
---|
| 1455 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
| 1456 | ac_fn_cxx_try_compile () |
---|
| 1457 | { |
---|
| 1458 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1459 | rm -f conftest.$ac_objext |
---|
| 1460 | if { { ac_try="$ac_compile" |
---|
| 1461 | case "(($ac_try" in |
---|
| 1462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1463 | *) ac_try_echo=$ac_try;; |
---|
| 1464 | esac |
---|
| 1465 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1466 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1467 | (eval "$ac_compile") 2>conftest.err |
---|
| 1468 | ac_status=$? |
---|
| 1469 | if test -s conftest.err; then |
---|
| 1470 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1471 | cat conftest.er1 >&5 |
---|
| 1472 | mv -f conftest.er1 conftest.err |
---|
| 1473 | fi |
---|
| 1474 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1475 | test $ac_status = 0; } && { |
---|
| 1476 | test -z "$ac_cxx_werror_flag" || |
---|
| 1477 | test ! -s conftest.err |
---|
| 1478 | } && test -s conftest.$ac_objext; then : |
---|
| 1479 | ac_retval=0 |
---|
| 1480 | else |
---|
| 1481 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1482 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1483 | |
---|
| 1484 | ac_retval=1 |
---|
| 1485 | fi |
---|
| 1486 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1487 | as_fn_set_status $ac_retval |
---|
| 1488 | |
---|
| 1489 | } # ac_fn_cxx_try_compile |
---|
| 1490 | |
---|
| 1491 | # ac_fn_c_try_compile LINENO |
---|
| 1492 | # -------------------------- |
---|
| 1493 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
| 1494 | ac_fn_c_try_compile () |
---|
| 1495 | { |
---|
| 1496 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1497 | rm -f conftest.$ac_objext |
---|
| 1498 | if { { ac_try="$ac_compile" |
---|
| 1499 | case "(($ac_try" in |
---|
| 1500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1501 | *) ac_try_echo=$ac_try;; |
---|
| 1502 | esac |
---|
| 1503 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1504 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1505 | (eval "$ac_compile") 2>conftest.err |
---|
| 1506 | ac_status=$? |
---|
| 1507 | if test -s conftest.err; then |
---|
| 1508 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1509 | cat conftest.er1 >&5 |
---|
| 1510 | mv -f conftest.er1 conftest.err |
---|
| 1511 | fi |
---|
| 1512 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1513 | test $ac_status = 0; } && { |
---|
| 1514 | test -z "$ac_c_werror_flag" || |
---|
| 1515 | test ! -s conftest.err |
---|
| 1516 | } && test -s conftest.$ac_objext; then : |
---|
| 1517 | ac_retval=0 |
---|
| 1518 | else |
---|
| 1519 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1520 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1521 | |
---|
| 1522 | ac_retval=1 |
---|
| 1523 | fi |
---|
| 1524 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1525 | as_fn_set_status $ac_retval |
---|
| 1526 | |
---|
| 1527 | } # ac_fn_c_try_compile |
---|
| 1528 | |
---|
| 1529 | # ac_fn_c_try_cpp LINENO |
---|
| 1530 | # ---------------------- |
---|
| 1531 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
| 1532 | ac_fn_c_try_cpp () |
---|
| 1533 | { |
---|
| 1534 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1535 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 1536 | case "(($ac_try" in |
---|
| 1537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1538 | *) ac_try_echo=$ac_try;; |
---|
| 1539 | esac |
---|
| 1540 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1541 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1542 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
| 1543 | ac_status=$? |
---|
| 1544 | if test -s conftest.err; then |
---|
| 1545 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1546 | cat conftest.er1 >&5 |
---|
| 1547 | mv -f conftest.er1 conftest.err |
---|
| 1548 | fi |
---|
| 1549 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1550 | test $ac_status = 0; } > conftest.i && { |
---|
| 1551 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
| 1552 | test ! -s conftest.err |
---|
| 1553 | }; then : |
---|
| 1554 | ac_retval=0 |
---|
| 1555 | else |
---|
| 1556 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1557 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1558 | |
---|
| 1559 | ac_retval=1 |
---|
| 1560 | fi |
---|
| 1561 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1562 | as_fn_set_status $ac_retval |
---|
| 1563 | |
---|
| 1564 | } # ac_fn_c_try_cpp |
---|
| 1565 | |
---|
| 1566 | # ac_fn_f77_try_compile LINENO |
---|
| 1567 | # ---------------------------- |
---|
| 1568 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
| 1569 | ac_fn_f77_try_compile () |
---|
| 1570 | { |
---|
| 1571 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1572 | rm -f conftest.$ac_objext |
---|
| 1573 | if { { ac_try="$ac_compile" |
---|
| 1574 | case "(($ac_try" in |
---|
| 1575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1576 | *) ac_try_echo=$ac_try;; |
---|
| 1577 | esac |
---|
| 1578 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1579 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1580 | (eval "$ac_compile") 2>conftest.err |
---|
| 1581 | ac_status=$? |
---|
| 1582 | if test -s conftest.err; then |
---|
| 1583 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1584 | cat conftest.er1 >&5 |
---|
| 1585 | mv -f conftest.er1 conftest.err |
---|
| 1586 | fi |
---|
| 1587 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1588 | test $ac_status = 0; } && { |
---|
| 1589 | test -z "$ac_f77_werror_flag" || |
---|
| 1590 | test ! -s conftest.err |
---|
| 1591 | } && test -s conftest.$ac_objext; then : |
---|
| 1592 | ac_retval=0 |
---|
| 1593 | else |
---|
| 1594 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1595 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1596 | |
---|
| 1597 | ac_retval=1 |
---|
| 1598 | fi |
---|
| 1599 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1600 | as_fn_set_status $ac_retval |
---|
| 1601 | |
---|
| 1602 | } # ac_fn_f77_try_compile |
---|
| 1603 | |
---|
| 1604 | # ac_fn_c_try_link LINENO |
---|
| 1605 | # ----------------------- |
---|
| 1606 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
| 1607 | ac_fn_c_try_link () |
---|
| 1608 | { |
---|
| 1609 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1610 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 1611 | if { { ac_try="$ac_link" |
---|
| 1612 | case "(($ac_try" in |
---|
| 1613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1614 | *) ac_try_echo=$ac_try;; |
---|
| 1615 | esac |
---|
| 1616 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1617 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1618 | (eval "$ac_link") 2>conftest.err |
---|
| 1619 | ac_status=$? |
---|
| 1620 | if test -s conftest.err; then |
---|
| 1621 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1622 | cat conftest.er1 >&5 |
---|
| 1623 | mv -f conftest.er1 conftest.err |
---|
| 1624 | fi |
---|
| 1625 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1626 | test $ac_status = 0; } && { |
---|
| 1627 | test -z "$ac_c_werror_flag" || |
---|
| 1628 | test ! -s conftest.err |
---|
| 1629 | } && test -s conftest$ac_exeext && { |
---|
| 1630 | test "$cross_compiling" = yes || |
---|
[1224] | 1631 | test -x conftest$ac_exeext |
---|
[788] | 1632 | }; then : |
---|
| 1633 | ac_retval=0 |
---|
| 1634 | else |
---|
| 1635 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1636 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1637 | |
---|
| 1638 | ac_retval=1 |
---|
| 1639 | fi |
---|
| 1640 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
| 1641 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
| 1642 | # interfere with the next link command; also delete a directory that is |
---|
| 1643 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
| 1644 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
| 1645 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1646 | as_fn_set_status $ac_retval |
---|
| 1647 | |
---|
| 1648 | } # ac_fn_c_try_link |
---|
| 1649 | |
---|
| 1650 | # ac_fn_c_try_run LINENO |
---|
| 1651 | # ---------------------- |
---|
| 1652 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
| 1653 | # that executables *can* be run. |
---|
| 1654 | ac_fn_c_try_run () |
---|
| 1655 | { |
---|
| 1656 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1657 | if { { ac_try="$ac_link" |
---|
| 1658 | case "(($ac_try" in |
---|
| 1659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1660 | *) ac_try_echo=$ac_try;; |
---|
| 1661 | esac |
---|
| 1662 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1663 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1664 | (eval "$ac_link") 2>&5 |
---|
| 1665 | ac_status=$? |
---|
| 1666 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1667 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
| 1668 | { { case "(($ac_try" in |
---|
| 1669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1670 | *) ac_try_echo=$ac_try;; |
---|
| 1671 | esac |
---|
| 1672 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1673 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1674 | (eval "$ac_try") 2>&5 |
---|
| 1675 | ac_status=$? |
---|
| 1676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1677 | test $ac_status = 0; }; }; then : |
---|
| 1678 | ac_retval=0 |
---|
| 1679 | else |
---|
| 1680 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 1681 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1682 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1683 | |
---|
| 1684 | ac_retval=$ac_status |
---|
| 1685 | fi |
---|
| 1686 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
| 1687 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1688 | as_fn_set_status $ac_retval |
---|
| 1689 | |
---|
| 1690 | } # ac_fn_c_try_run |
---|
| 1691 | |
---|
| 1692 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
| 1693 | # ------------------------------------------------------- |
---|
| 1694 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
| 1695 | # the include files in INCLUDES and setting the cache variable VAR |
---|
| 1696 | # accordingly. |
---|
| 1697 | ac_fn_c_check_header_mongrel () |
---|
| 1698 | { |
---|
| 1699 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1700 | if eval \${$3+:} false; then : |
---|
| 1701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 1702 | $as_echo_n "checking for $2... " >&6; } |
---|
| 1703 | if eval \${$3+:} false; then : |
---|
| 1704 | $as_echo_n "(cached) " >&6 |
---|
| 1705 | fi |
---|
| 1706 | eval ac_res=\$$3 |
---|
| 1707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 1708 | $as_echo "$ac_res" >&6; } |
---|
| 1709 | else |
---|
| 1710 | # Is the header compilable? |
---|
| 1711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
| 1712 | $as_echo_n "checking $2 usability... " >&6; } |
---|
| 1713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1714 | /* end confdefs.h. */ |
---|
| 1715 | $4 |
---|
| 1716 | #include <$2> |
---|
| 1717 | _ACEOF |
---|
| 1718 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 1719 | ac_header_compiler=yes |
---|
| 1720 | else |
---|
| 1721 | ac_header_compiler=no |
---|
| 1722 | fi |
---|
| 1723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 1724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
| 1725 | $as_echo "$ac_header_compiler" >&6; } |
---|
| 1726 | |
---|
| 1727 | # Is the header present? |
---|
| 1728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
| 1729 | $as_echo_n "checking $2 presence... " >&6; } |
---|
| 1730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1731 | /* end confdefs.h. */ |
---|
| 1732 | #include <$2> |
---|
| 1733 | _ACEOF |
---|
| 1734 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
| 1735 | ac_header_preproc=yes |
---|
| 1736 | else |
---|
| 1737 | ac_header_preproc=no |
---|
| 1738 | fi |
---|
| 1739 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 1740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
| 1741 | $as_echo "$ac_header_preproc" >&6; } |
---|
| 1742 | |
---|
| 1743 | # So? What about this header? |
---|
| 1744 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
---|
| 1745 | yes:no: ) |
---|
| 1746 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 1747 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 1748 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
| 1749 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
| 1750 | ;; |
---|
| 1751 | no:yes:* ) |
---|
| 1752 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
| 1753 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
| 1754 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
| 1755 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
| 1756 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
| 1757 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
| 1758 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 1759 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 1760 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
| 1761 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
| 1762 | ( $as_echo "## --------------------------------------- ## |
---|
| 1763 | ## Report this to Matthew.Whiting@csiro.au ## |
---|
| 1764 | ## --------------------------------------- ##" |
---|
| 1765 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 1766 | ;; |
---|
| 1767 | esac |
---|
| 1768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 1769 | $as_echo_n "checking for $2... " >&6; } |
---|
| 1770 | if eval \${$3+:} false; then : |
---|
| 1771 | $as_echo_n "(cached) " >&6 |
---|
| 1772 | else |
---|
| 1773 | eval "$3=\$ac_header_compiler" |
---|
| 1774 | fi |
---|
| 1775 | eval ac_res=\$$3 |
---|
| 1776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 1777 | $as_echo "$ac_res" >&6; } |
---|
| 1778 | fi |
---|
| 1779 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1780 | |
---|
| 1781 | } # ac_fn_c_check_header_mongrel |
---|
| 1782 | |
---|
| 1783 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
| 1784 | # ------------------------------------------------------- |
---|
| 1785 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
| 1786 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
| 1787 | ac_fn_c_check_header_compile () |
---|
| 1788 | { |
---|
| 1789 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 1791 | $as_echo_n "checking for $2... " >&6; } |
---|
| 1792 | if eval \${$3+:} false; then : |
---|
| 1793 | $as_echo_n "(cached) " >&6 |
---|
| 1794 | else |
---|
| 1795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1796 | /* end confdefs.h. */ |
---|
| 1797 | $4 |
---|
| 1798 | #include <$2> |
---|
| 1799 | _ACEOF |
---|
| 1800 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 1801 | eval "$3=yes" |
---|
| 1802 | else |
---|
| 1803 | eval "$3=no" |
---|
| 1804 | fi |
---|
| 1805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 1806 | fi |
---|
| 1807 | eval ac_res=\$$3 |
---|
| 1808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 1809 | $as_echo "$ac_res" >&6; } |
---|
| 1810 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1811 | |
---|
| 1812 | } # ac_fn_c_check_header_compile |
---|
| 1813 | |
---|
| 1814 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
---|
| 1815 | # ------------------------------------------- |
---|
| 1816 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
---|
| 1817 | # variable VAR accordingly. |
---|
| 1818 | ac_fn_c_check_type () |
---|
| 1819 | { |
---|
| 1820 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 1822 | $as_echo_n "checking for $2... " >&6; } |
---|
| 1823 | if eval \${$3+:} false; then : |
---|
| 1824 | $as_echo_n "(cached) " >&6 |
---|
| 1825 | else |
---|
| 1826 | eval "$3=no" |
---|
| 1827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1828 | /* end confdefs.h. */ |
---|
| 1829 | $4 |
---|
| 1830 | int |
---|
| 1831 | main () |
---|
| 1832 | { |
---|
| 1833 | if (sizeof ($2)) |
---|
| 1834 | return 0; |
---|
| 1835 | ; |
---|
| 1836 | return 0; |
---|
| 1837 | } |
---|
| 1838 | _ACEOF |
---|
| 1839 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 1840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1841 | /* end confdefs.h. */ |
---|
| 1842 | $4 |
---|
| 1843 | int |
---|
| 1844 | main () |
---|
| 1845 | { |
---|
| 1846 | if (sizeof (($2))) |
---|
| 1847 | return 0; |
---|
| 1848 | ; |
---|
| 1849 | return 0; |
---|
| 1850 | } |
---|
| 1851 | _ACEOF |
---|
| 1852 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 1853 | |
---|
| 1854 | else |
---|
| 1855 | eval "$3=yes" |
---|
| 1856 | fi |
---|
| 1857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 1858 | fi |
---|
| 1859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 1860 | fi |
---|
| 1861 | eval ac_res=\$$3 |
---|
| 1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 1863 | $as_echo "$ac_res" >&6; } |
---|
| 1864 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1865 | |
---|
| 1866 | } # ac_fn_c_check_type |
---|
| 1867 | |
---|
| 1868 | # ac_fn_c_check_func LINENO FUNC VAR |
---|
| 1869 | # ---------------------------------- |
---|
| 1870 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
| 1871 | ac_fn_c_check_func () |
---|
| 1872 | { |
---|
| 1873 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 1875 | $as_echo_n "checking for $2... " >&6; } |
---|
| 1876 | if eval \${$3+:} false; then : |
---|
| 1877 | $as_echo_n "(cached) " >&6 |
---|
| 1878 | else |
---|
| 1879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1880 | /* end confdefs.h. */ |
---|
| 1881 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
| 1882 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 1883 | #define $2 innocuous_$2 |
---|
| 1884 | |
---|
| 1885 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 1886 | which can conflict with char $2 (); below. |
---|
| 1887 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 1888 | <limits.h> exists even on freestanding compilers. */ |
---|
| 1889 | |
---|
| 1890 | #ifdef __STDC__ |
---|
| 1891 | # include <limits.h> |
---|
| 1892 | #else |
---|
| 1893 | # include <assert.h> |
---|
| 1894 | #endif |
---|
| 1895 | |
---|
| 1896 | #undef $2 |
---|
| 1897 | |
---|
| 1898 | /* Override any GCC internal prototype to avoid an error. |
---|
| 1899 | Use char because int might match the return type of a GCC |
---|
| 1900 | builtin and then its argument prototype would still apply. */ |
---|
| 1901 | #ifdef __cplusplus |
---|
| 1902 | extern "C" |
---|
| 1903 | #endif |
---|
| 1904 | char $2 (); |
---|
| 1905 | /* The GNU C library defines this for functions which it implements |
---|
| 1906 | to always fail with ENOSYS. Some functions are actually named |
---|
| 1907 | something starting with __ and the normal name is an alias. */ |
---|
| 1908 | #if defined __stub_$2 || defined __stub___$2 |
---|
| 1909 | choke me |
---|
| 1910 | #endif |
---|
| 1911 | |
---|
| 1912 | int |
---|
| 1913 | main () |
---|
| 1914 | { |
---|
| 1915 | return $2 (); |
---|
| 1916 | ; |
---|
| 1917 | return 0; |
---|
| 1918 | } |
---|
| 1919 | _ACEOF |
---|
| 1920 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 1921 | eval "$3=yes" |
---|
| 1922 | else |
---|
| 1923 | eval "$3=no" |
---|
| 1924 | fi |
---|
| 1925 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 1926 | conftest$ac_exeext conftest.$ac_ext |
---|
| 1927 | fi |
---|
| 1928 | eval ac_res=\$$3 |
---|
| 1929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 1930 | $as_echo "$ac_res" >&6; } |
---|
| 1931 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1932 | |
---|
| 1933 | } # ac_fn_c_check_func |
---|
| 1934 | |
---|
| 1935 | # ac_fn_f77_try_link LINENO |
---|
| 1936 | # ------------------------- |
---|
| 1937 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
| 1938 | ac_fn_f77_try_link () |
---|
| 1939 | { |
---|
| 1940 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1941 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 1942 | if { { ac_try="$ac_link" |
---|
| 1943 | case "(($ac_try" in |
---|
| 1944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1945 | *) ac_try_echo=$ac_try;; |
---|
| 1946 | esac |
---|
| 1947 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1948 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1949 | (eval "$ac_link") 2>conftest.err |
---|
| 1950 | ac_status=$? |
---|
| 1951 | if test -s conftest.err; then |
---|
| 1952 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1953 | cat conftest.er1 >&5 |
---|
| 1954 | mv -f conftest.er1 conftest.err |
---|
| 1955 | fi |
---|
| 1956 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1957 | test $ac_status = 0; } && { |
---|
| 1958 | test -z "$ac_f77_werror_flag" || |
---|
| 1959 | test ! -s conftest.err |
---|
| 1960 | } && test -s conftest$ac_exeext && { |
---|
| 1961 | test "$cross_compiling" = yes || |
---|
[1224] | 1962 | test -x conftest$ac_exeext |
---|
[788] | 1963 | }; then : |
---|
| 1964 | ac_retval=0 |
---|
| 1965 | else |
---|
| 1966 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1967 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1968 | |
---|
| 1969 | ac_retval=1 |
---|
| 1970 | fi |
---|
| 1971 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
| 1972 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
| 1973 | # interfere with the next link command; also delete a directory that is |
---|
| 1974 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
| 1975 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
| 1976 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1977 | as_fn_set_status $ac_retval |
---|
| 1978 | |
---|
| 1979 | } # ac_fn_f77_try_link |
---|
[763] | 1980 | cat >config.log <<_ACEOF |
---|
[107] | 1981 | This file contains any messages produced by compilers while |
---|
| 1982 | running configure, to aid debugging if configure makes a mistake. |
---|
| 1983 | |
---|
[1229] | 1984 | It was created by Duchamp $as_me 1.4, which was |
---|
[1224] | 1985 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
[107] | 1986 | |
---|
| 1987 | $ $0 $@ |
---|
| 1988 | |
---|
| 1989 | _ACEOF |
---|
[763] | 1990 | exec 5>>config.log |
---|
[107] | 1991 | { |
---|
| 1992 | cat <<_ASUNAME |
---|
| 1993 | ## --------- ## |
---|
| 1994 | ## Platform. ## |
---|
| 1995 | ## --------- ## |
---|
| 1996 | |
---|
| 1997 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1998 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1999 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 2000 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 2001 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 2002 | |
---|
| 2003 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 2004 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 2005 | |
---|
| 2006 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 2007 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 2008 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
[763] | 2009 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
[107] | 2010 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 2011 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 2012 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 2013 | |
---|
| 2014 | _ASUNAME |
---|
| 2015 | |
---|
| 2016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2017 | for as_dir in $PATH |
---|
| 2018 | do |
---|
| 2019 | IFS=$as_save_IFS |
---|
| 2020 | test -z "$as_dir" && as_dir=. |
---|
[788] | 2021 | $as_echo "PATH: $as_dir" |
---|
| 2022 | done |
---|
[763] | 2023 | IFS=$as_save_IFS |
---|
[107] | 2024 | |
---|
| 2025 | } >&5 |
---|
| 2026 | |
---|
| 2027 | cat >&5 <<_ACEOF |
---|
| 2028 | |
---|
| 2029 | |
---|
| 2030 | ## ----------- ## |
---|
| 2031 | ## Core tests. ## |
---|
| 2032 | ## ----------- ## |
---|
| 2033 | |
---|
| 2034 | _ACEOF |
---|
| 2035 | |
---|
| 2036 | |
---|
| 2037 | # Keep a trace of the command line. |
---|
| 2038 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 2039 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 2040 | # Also quote any args containing shell meta-characters. |
---|
| 2041 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 2042 | ac_configure_args= |
---|
| 2043 | ac_configure_args0= |
---|
| 2044 | ac_configure_args1= |
---|
| 2045 | ac_must_keep_next=false |
---|
| 2046 | for ac_pass in 1 2 |
---|
| 2047 | do |
---|
| 2048 | for ac_arg |
---|
| 2049 | do |
---|
| 2050 | case $ac_arg in |
---|
| 2051 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 2052 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 2053 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 2054 | continue ;; |
---|
[763] | 2055 | *\'*) |
---|
[788] | 2056 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
[107] | 2057 | esac |
---|
| 2058 | case $ac_pass in |
---|
[788] | 2059 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
[107] | 2060 | 2) |
---|
[788] | 2061 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
[107] | 2062 | if test $ac_must_keep_next = true; then |
---|
[349] | 2063 | ac_must_keep_next=false # Got value, back to normal. |
---|
[107] | 2064 | else |
---|
[349] | 2065 | case $ac_arg in |
---|
| 2066 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 2067 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 2068 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 2069 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 2070 | case "$ac_configure_args0 " in |
---|
| 2071 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 2072 | esac |
---|
| 2073 | ;; |
---|
| 2074 | -* ) ac_must_keep_next=true ;; |
---|
| 2075 | esac |
---|
[107] | 2076 | fi |
---|
[788] | 2077 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
[107] | 2078 | ;; |
---|
| 2079 | esac |
---|
| 2080 | done |
---|
| 2081 | done |
---|
[788] | 2082 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
| 2083 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
[107] | 2084 | |
---|
| 2085 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 2086 | # config.log. We remove comments because anyway the quotes in there |
---|
| 2087 | # would cause problems or look ugly. |
---|
[763] | 2088 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
| 2089 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
[107] | 2090 | trap 'exit_status=$? |
---|
| 2091 | # Save into config.log some information that might help in debugging. |
---|
| 2092 | { |
---|
| 2093 | echo |
---|
| 2094 | |
---|
[788] | 2095 | $as_echo "## ---------------- ## |
---|
[107] | 2096 | ## Cache variables. ## |
---|
[788] | 2097 | ## ---------------- ##" |
---|
[107] | 2098 | echo |
---|
| 2099 | # The following way of writing the cache mishandles newlines in values, |
---|
[763] | 2100 | ( |
---|
| 2101 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
| 2102 | eval ac_val=\$$ac_var |
---|
| 2103 | case $ac_val in #( |
---|
| 2104 | *${as_nl}*) |
---|
| 2105 | case $ac_var in #( |
---|
[788] | 2106 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
| 2107 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
[763] | 2108 | esac |
---|
| 2109 | case $ac_var in #( |
---|
| 2110 | _ | IFS | as_nl) ;; #( |
---|
[788] | 2111 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
| 2112 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
[763] | 2113 | esac ;; |
---|
| 2114 | esac |
---|
| 2115 | done |
---|
[107] | 2116 | (set) 2>&1 | |
---|
[763] | 2117 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
| 2118 | *${as_nl}ac_space=\ *) |
---|
[107] | 2119 | sed -n \ |
---|
[763] | 2120 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
| 2121 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
| 2122 | ;; #( |
---|
[107] | 2123 | *) |
---|
[763] | 2124 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
[107] | 2125 | ;; |
---|
[763] | 2126 | esac | |
---|
| 2127 | sort |
---|
| 2128 | ) |
---|
[107] | 2129 | echo |
---|
| 2130 | |
---|
[788] | 2131 | $as_echo "## ----------------- ## |
---|
[107] | 2132 | ## Output variables. ## |
---|
[788] | 2133 | ## ----------------- ##" |
---|
[107] | 2134 | echo |
---|
| 2135 | for ac_var in $ac_subst_vars |
---|
| 2136 | do |
---|
[763] | 2137 | eval ac_val=\$$ac_var |
---|
| 2138 | case $ac_val in |
---|
[788] | 2139 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
[763] | 2140 | esac |
---|
[788] | 2141 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
[107] | 2142 | done | sort |
---|
| 2143 | echo |
---|
| 2144 | |
---|
| 2145 | if test -n "$ac_subst_files"; then |
---|
[788] | 2146 | $as_echo "## ------------------- ## |
---|
[763] | 2147 | ## File substitutions. ## |
---|
[788] | 2148 | ## ------------------- ##" |
---|
[107] | 2149 | echo |
---|
| 2150 | for ac_var in $ac_subst_files |
---|
| 2151 | do |
---|
[763] | 2152 | eval ac_val=\$$ac_var |
---|
| 2153 | case $ac_val in |
---|
[788] | 2154 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
[763] | 2155 | esac |
---|
[788] | 2156 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
[107] | 2157 | done | sort |
---|
| 2158 | echo |
---|
| 2159 | fi |
---|
| 2160 | |
---|
| 2161 | if test -s confdefs.h; then |
---|
[788] | 2162 | $as_echo "## ----------- ## |
---|
[107] | 2163 | ## confdefs.h. ## |
---|
[788] | 2164 | ## ----------- ##" |
---|
[107] | 2165 | echo |
---|
[763] | 2166 | cat confdefs.h |
---|
[107] | 2167 | echo |
---|
| 2168 | fi |
---|
| 2169 | test "$ac_signal" != 0 && |
---|
[788] | 2170 | $as_echo "$as_me: caught signal $ac_signal" |
---|
| 2171 | $as_echo "$as_me: exit $exit_status" |
---|
[107] | 2172 | } >&5 |
---|
[763] | 2173 | rm -f core *.core core.conftest.* && |
---|
| 2174 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
[107] | 2175 | exit $exit_status |
---|
[763] | 2176 | ' 0 |
---|
[107] | 2177 | for ac_signal in 1 2 13 15; do |
---|
[788] | 2178 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
[107] | 2179 | done |
---|
| 2180 | ac_signal=0 |
---|
| 2181 | |
---|
| 2182 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
[763] | 2183 | rm -f -r conftest* confdefs.h |
---|
[107] | 2184 | |
---|
[788] | 2185 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
| 2186 | |
---|
[107] | 2187 | # Predefined preprocessor variables. |
---|
| 2188 | |
---|
| 2189 | cat >>confdefs.h <<_ACEOF |
---|
| 2190 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 2191 | _ACEOF |
---|
| 2192 | |
---|
| 2193 | cat >>confdefs.h <<_ACEOF |
---|
| 2194 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 2195 | _ACEOF |
---|
| 2196 | |
---|
| 2197 | cat >>confdefs.h <<_ACEOF |
---|
| 2198 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 2199 | _ACEOF |
---|
| 2200 | |
---|
| 2201 | cat >>confdefs.h <<_ACEOF |
---|
| 2202 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 2203 | _ACEOF |
---|
| 2204 | |
---|
| 2205 | cat >>confdefs.h <<_ACEOF |
---|
| 2206 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 2207 | _ACEOF |
---|
| 2208 | |
---|
[788] | 2209 | cat >>confdefs.h <<_ACEOF |
---|
| 2210 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
| 2211 | _ACEOF |
---|
[107] | 2212 | |
---|
[788] | 2213 | |
---|
[107] | 2214 | # Let the site file select an alternate cache file if it wants to. |
---|
[788] | 2215 | # Prefer an explicitly selected file to automatically selected ones. |
---|
| 2216 | ac_site_file1=NONE |
---|
| 2217 | ac_site_file2=NONE |
---|
[763] | 2218 | if test -n "$CONFIG_SITE"; then |
---|
[788] | 2219 | # We do not want a PATH search for config.site. |
---|
| 2220 | case $CONFIG_SITE in #(( |
---|
| 2221 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
| 2222 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
| 2223 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
| 2224 | esac |
---|
[763] | 2225 | elif test "x$prefix" != xNONE; then |
---|
[788] | 2226 | ac_site_file1=$prefix/share/config.site |
---|
| 2227 | ac_site_file2=$prefix/etc/config.site |
---|
[763] | 2228 | else |
---|
[788] | 2229 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
| 2230 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
[107] | 2231 | fi |
---|
[788] | 2232 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
[763] | 2233 | do |
---|
[788] | 2234 | test "x$ac_site_file" = xNONE && continue |
---|
| 2235 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
| 2236 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
| 2237 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
[107] | 2238 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
[788] | 2239 | . "$ac_site_file" \ |
---|
| 2240 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2241 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2242 | as_fn_error $? "failed to load site script $ac_site_file |
---|
| 2243 | See \`config.log' for more details" "$LINENO" 5; } |
---|
[107] | 2244 | fi |
---|
| 2245 | done |
---|
| 2246 | |
---|
| 2247 | if test -r "$cache_file"; then |
---|
[788] | 2248 | # Some versions of bash will fail to source /dev/null (special files |
---|
| 2249 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
| 2250 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
| 2251 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
| 2252 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
[107] | 2253 | case $cache_file in |
---|
[763] | 2254 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
| 2255 | *) . "./$cache_file";; |
---|
[107] | 2256 | esac |
---|
| 2257 | fi |
---|
| 2258 | else |
---|
[788] | 2259 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
| 2260 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
[107] | 2261 | >$cache_file |
---|
| 2262 | fi |
---|
| 2263 | |
---|
| 2264 | # Check that the precious variables saved in the cache have kept the same |
---|
| 2265 | # value. |
---|
| 2266 | ac_cache_corrupted=false |
---|
[763] | 2267 | for ac_var in $ac_precious_vars; do |
---|
[107] | 2268 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 2269 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
[763] | 2270 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
| 2271 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
[107] | 2272 | case $ac_old_set,$ac_new_set in |
---|
| 2273 | set,) |
---|
[788] | 2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 2275 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
[107] | 2276 | ac_cache_corrupted=: ;; |
---|
| 2277 | ,set) |
---|
[788] | 2278 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 2279 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
[107] | 2280 | ac_cache_corrupted=: ;; |
---|
| 2281 | ,);; |
---|
| 2282 | *) |
---|
| 2283 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
[788] | 2284 | # differences in whitespace do not lead to failure. |
---|
| 2285 | ac_old_val_w=`echo x $ac_old_val` |
---|
| 2286 | ac_new_val_w=`echo x $ac_new_val` |
---|
| 2287 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
| 2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 2289 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 2290 | ac_cache_corrupted=: |
---|
| 2291 | else |
---|
| 2292 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
| 2293 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
| 2294 | eval $ac_var=\$ac_old_val |
---|
| 2295 | fi |
---|
| 2296 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
| 2297 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
| 2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
| 2299 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
[107] | 2300 | fi;; |
---|
| 2301 | esac |
---|
| 2302 | # Pass precious variables to config.status. |
---|
| 2303 | if test "$ac_new_set" = set; then |
---|
| 2304 | case $ac_new_val in |
---|
[788] | 2305 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
[107] | 2306 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 2307 | esac |
---|
| 2308 | case " $ac_configure_args " in |
---|
| 2309 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
[788] | 2310 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
[107] | 2311 | esac |
---|
| 2312 | fi |
---|
| 2313 | done |
---|
| 2314 | if $ac_cache_corrupted; then |
---|
[788] | 2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2316 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2317 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
| 2318 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 2319 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
[107] | 2320 | fi |
---|
[788] | 2321 | ## -------------------- ## |
---|
| 2322 | ## Main body of script. ## |
---|
| 2323 | ## -------------------- ## |
---|
[107] | 2324 | |
---|
[763] | 2325 | ac_ext=c |
---|
| 2326 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2327 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2328 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2329 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
[107] | 2330 | |
---|
| 2331 | |
---|
| 2332 | |
---|
[763] | 2333 | ac_config_headers="$ac_config_headers src/config.h" |
---|
[107] | 2334 | |
---|
| 2335 | |
---|
| 2336 | |
---|
[1224] | 2337 | ac_aux_dir= |
---|
| 2338 | for ac_dir in config "$srcdir"/config; do |
---|
| 2339 | if test -f "$ac_dir/install-sh"; then |
---|
| 2340 | ac_aux_dir=$ac_dir |
---|
| 2341 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 2342 | break |
---|
| 2343 | elif test -f "$ac_dir/install.sh"; then |
---|
| 2344 | ac_aux_dir=$ac_dir |
---|
| 2345 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 2346 | break |
---|
| 2347 | elif test -f "$ac_dir/shtool"; then |
---|
| 2348 | ac_aux_dir=$ac_dir |
---|
| 2349 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 2350 | break |
---|
| 2351 | fi |
---|
| 2352 | done |
---|
| 2353 | if test -z "$ac_aux_dir"; then |
---|
| 2354 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 |
---|
| 2355 | fi |
---|
| 2356 | |
---|
| 2357 | # These three variables are undocumented and unsupported, |
---|
| 2358 | # and are intended to be withdrawn in a future Autoconf release. |
---|
| 2359 | # They can cause serious problems if a builder's source tree is in a directory |
---|
| 2360 | # whose full name contains unusual characters. |
---|
| 2361 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
| 2362 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
| 2363 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
| 2364 | |
---|
| 2365 | |
---|
| 2366 | |
---|
| 2367 | # Get the system type. |
---|
| 2368 | # Make sure we can run config.sub. |
---|
| 2369 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
---|
| 2370 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
---|
| 2371 | |
---|
| 2372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
---|
| 2373 | $as_echo_n "checking build system type... " >&6; } |
---|
| 2374 | if ${ac_cv_build+:} false; then : |
---|
| 2375 | $as_echo_n "(cached) " >&6 |
---|
| 2376 | else |
---|
| 2377 | ac_build_alias=$build_alias |
---|
| 2378 | test "x$ac_build_alias" = x && |
---|
| 2379 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
---|
| 2380 | test "x$ac_build_alias" = x && |
---|
| 2381 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
---|
| 2382 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
---|
| 2383 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
---|
| 2384 | |
---|
| 2385 | fi |
---|
| 2386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
---|
| 2387 | $as_echo "$ac_cv_build" >&6; } |
---|
| 2388 | case $ac_cv_build in |
---|
| 2389 | *-*-*) ;; |
---|
| 2390 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
---|
| 2391 | esac |
---|
| 2392 | build=$ac_cv_build |
---|
| 2393 | ac_save_IFS=$IFS; IFS='-' |
---|
| 2394 | set x $ac_cv_build |
---|
| 2395 | shift |
---|
| 2396 | build_cpu=$1 |
---|
| 2397 | build_vendor=$2 |
---|
| 2398 | shift; shift |
---|
| 2399 | # Remember, the first character of IFS is used to create $*, |
---|
| 2400 | # except with old shells: |
---|
| 2401 | build_os=$* |
---|
| 2402 | IFS=$ac_save_IFS |
---|
| 2403 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
---|
| 2404 | |
---|
| 2405 | |
---|
| 2406 | ARCH="${build_cpu}-$build_os" |
---|
| 2407 | |
---|
| 2408 | |
---|
[107] | 2409 | # Checks for programs. |
---|
[763] | 2410 | ac_ext=cpp |
---|
[107] | 2411 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 2412 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2413 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2414 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
[763] | 2415 | if test -z "$CXX"; then |
---|
| 2416 | if test -n "$CCC"; then |
---|
| 2417 | CXX=$CCC |
---|
| 2418 | else |
---|
| 2419 | if test -n "$ac_tool_prefix"; then |
---|
| 2420 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
[107] | 2421 | do |
---|
| 2422 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2423 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
[788] | 2424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2425 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2426 | if ${ac_cv_prog_CXX+:} false; then : |
---|
| 2427 | $as_echo_n "(cached) " >&6 |
---|
[107] | 2428 | else |
---|
| 2429 | if test -n "$CXX"; then |
---|
| 2430 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 2431 | else |
---|
| 2432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2433 | for as_dir in $PATH |
---|
| 2434 | do |
---|
| 2435 | IFS=$as_save_IFS |
---|
| 2436 | test -z "$as_dir" && as_dir=. |
---|
[788] | 2437 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1224] | 2438 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[107] | 2439 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
[788] | 2440 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[107] | 2441 | break 2 |
---|
| 2442 | fi |
---|
| 2443 | done |
---|
[788] | 2444 | done |
---|
[763] | 2445 | IFS=$as_save_IFS |
---|
[107] | 2446 | |
---|
| 2447 | fi |
---|
| 2448 | fi |
---|
| 2449 | CXX=$ac_cv_prog_CXX |
---|
| 2450 | if test -n "$CXX"; then |
---|
[788] | 2451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
| 2452 | $as_echo "$CXX" >&6; } |
---|
[107] | 2453 | else |
---|
[788] | 2454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2455 | $as_echo "no" >&6; } |
---|
[107] | 2456 | fi |
---|
| 2457 | |
---|
[763] | 2458 | |
---|
[107] | 2459 | test -n "$CXX" && break |
---|
| 2460 | done |
---|
| 2461 | fi |
---|
| 2462 | if test -z "$CXX"; then |
---|
| 2463 | ac_ct_CXX=$CXX |
---|
[763] | 2464 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
[107] | 2465 | do |
---|
| 2466 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2467 | set dummy $ac_prog; ac_word=$2 |
---|
[788] | 2468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2469 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2470 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
| 2471 | $as_echo_n "(cached) " >&6 |
---|
[107] | 2472 | else |
---|
| 2473 | if test -n "$ac_ct_CXX"; then |
---|
| 2474 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 2475 | else |
---|
| 2476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2477 | for as_dir in $PATH |
---|
| 2478 | do |
---|
| 2479 | IFS=$as_save_IFS |
---|
| 2480 | test -z "$as_dir" && as_dir=. |
---|
[788] | 2481 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1224] | 2482 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[107] | 2483 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
[788] | 2484 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[107] | 2485 | break 2 |
---|
| 2486 | fi |
---|
| 2487 | done |
---|
[788] | 2488 | done |
---|
[763] | 2489 | IFS=$as_save_IFS |
---|
[107] | 2490 | |
---|
| 2491 | fi |
---|
| 2492 | fi |
---|
| 2493 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 2494 | if test -n "$ac_ct_CXX"; then |
---|
[788] | 2495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
| 2496 | $as_echo "$ac_ct_CXX" >&6; } |
---|
[107] | 2497 | else |
---|
[788] | 2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2499 | $as_echo "no" >&6; } |
---|
[107] | 2500 | fi |
---|
| 2501 | |
---|
[763] | 2502 | |
---|
[107] | 2503 | test -n "$ac_ct_CXX" && break |
---|
| 2504 | done |
---|
| 2505 | |
---|
[763] | 2506 | if test "x$ac_ct_CXX" = x; then |
---|
| 2507 | CXX="g++" |
---|
| 2508 | else |
---|
| 2509 | case $cross_compiling:$ac_tool_warned in |
---|
| 2510 | yes:) |
---|
[788] | 2511 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 2512 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
[763] | 2513 | ac_tool_warned=yes ;; |
---|
| 2514 | esac |
---|
| 2515 | CXX=$ac_ct_CXX |
---|
| 2516 | fi |
---|
[107] | 2517 | fi |
---|
| 2518 | |
---|
[763] | 2519 | fi |
---|
| 2520 | fi |
---|
[107] | 2521 | # Provide some information about the compiler. |
---|
[788] | 2522 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
| 2523 | set X $ac_compile |
---|
| 2524 | ac_compiler=$2 |
---|
| 2525 | for ac_option in --version -v -V -qversion; do |
---|
| 2526 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
[763] | 2527 | case "(($ac_try" in |
---|
| 2528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2529 | *) ac_try_echo=$ac_try;; |
---|
| 2530 | esac |
---|
[788] | 2531 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2532 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 2533 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
[107] | 2534 | ac_status=$? |
---|
[788] | 2535 | if test -s conftest.err; then |
---|
| 2536 | sed '10a\ |
---|
| 2537 | ... rest of stderr output deleted ... |
---|
| 2538 | 10q' conftest.err >conftest.er1 |
---|
| 2539 | cat conftest.er1 >&5 |
---|
| 2540 | fi |
---|
| 2541 | rm -f conftest.er1 conftest.err |
---|
| 2542 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2543 | test $ac_status = 0; } |
---|
| 2544 | done |
---|
[107] | 2545 | |
---|
[788] | 2546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 2547 | /* end confdefs.h. */ |
---|
| 2548 | |
---|
| 2549 | int |
---|
| 2550 | main () |
---|
| 2551 | { |
---|
| 2552 | |
---|
| 2553 | ; |
---|
| 2554 | return 0; |
---|
| 2555 | } |
---|
| 2556 | _ACEOF |
---|
| 2557 | ac_clean_files_save=$ac_clean_files |
---|
[788] | 2558 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
[107] | 2559 | # Try to create an executable without -o first, disregard a.out. |
---|
| 2560 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 2561 | # of exeext. |
---|
[788] | 2562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
---|
| 2563 | $as_echo_n "checking whether the C++ compiler works... " >&6; } |
---|
| 2564 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 2565 | |
---|
| 2566 | # The possible output files: |
---|
| 2567 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
| 2568 | |
---|
[763] | 2569 | ac_rmfiles= |
---|
| 2570 | for ac_file in $ac_files |
---|
| 2571 | do |
---|
| 2572 | case $ac_file in |
---|
[788] | 2573 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
[763] | 2574 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
| 2575 | esac |
---|
| 2576 | done |
---|
| 2577 | rm -f $ac_rmfiles |
---|
| 2578 | |
---|
[788] | 2579 | if { { ac_try="$ac_link_default" |
---|
[763] | 2580 | case "(($ac_try" in |
---|
| 2581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2582 | *) ac_try_echo=$ac_try;; |
---|
| 2583 | esac |
---|
[788] | 2584 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2585 | $as_echo "$ac_try_echo"; } >&5 |
---|
[763] | 2586 | (eval "$ac_link_default") 2>&5 |
---|
[107] | 2587 | ac_status=$? |
---|
[788] | 2588 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2589 | test $ac_status = 0; }; then : |
---|
[763] | 2590 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
| 2591 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
| 2592 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
| 2593 | # so that the user can short-circuit this test for compilers unknown to |
---|
| 2594 | # Autoconf. |
---|
| 2595 | for ac_file in $ac_files '' |
---|
[107] | 2596 | do |
---|
| 2597 | test -f "$ac_file" || continue |
---|
| 2598 | case $ac_file in |
---|
[788] | 2599 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
[349] | 2600 | ;; |
---|
[107] | 2601 | [ab].out ) |
---|
[349] | 2602 | # We found the default executable, but exeext='' is most |
---|
| 2603 | # certainly right. |
---|
| 2604 | break;; |
---|
[107] | 2605 | *.* ) |
---|
[788] | 2606 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
[763] | 2607 | then :; else |
---|
| 2608 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2609 | fi |
---|
| 2610 | # We set ac_cv_exeext here because the later test for it is not |
---|
| 2611 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
| 2612 | # argument, so we may need to know it at that point already. |
---|
| 2613 | # Even if this section looks crufty: it has the advantage of |
---|
| 2614 | # actually working. |
---|
[349] | 2615 | break;; |
---|
[107] | 2616 | * ) |
---|
[349] | 2617 | break;; |
---|
[107] | 2618 | esac |
---|
| 2619 | done |
---|
[763] | 2620 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
| 2621 | |
---|
[107] | 2622 | else |
---|
[763] | 2623 | ac_file='' |
---|
| 2624 | fi |
---|
[788] | 2625 | if test -z "$ac_file"; then : |
---|
| 2626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2627 | $as_echo "no" >&6; } |
---|
| 2628 | $as_echo "$as_me: failed program was:" >&5 |
---|
[107] | 2629 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2630 | |
---|
[788] | 2631 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2632 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2633 | as_fn_error 77 "C++ compiler cannot create executables |
---|
| 2634 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 2635 | else |
---|
| 2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
| 2637 | $as_echo "yes" >&6; } |
---|
[107] | 2638 | fi |
---|
[788] | 2639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
---|
| 2640 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } |
---|
| 2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
| 2642 | $as_echo "$ac_file" >&6; } |
---|
[107] | 2643 | ac_exeext=$ac_cv_exeext |
---|
| 2644 | |
---|
[788] | 2645 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
[107] | 2646 | ac_clean_files=$ac_clean_files_save |
---|
[788] | 2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
| 2648 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
| 2649 | if { { ac_try="$ac_link" |
---|
[763] | 2650 | case "(($ac_try" in |
---|
| 2651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2652 | *) ac_try_echo=$ac_try;; |
---|
| 2653 | esac |
---|
[788] | 2654 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2655 | $as_echo "$ac_try_echo"; } >&5 |
---|
[763] | 2656 | (eval "$ac_link") 2>&5 |
---|
[107] | 2657 | ac_status=$? |
---|
[788] | 2658 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2659 | test $ac_status = 0; }; then : |
---|
[107] | 2660 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2661 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2662 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2663 | # `rm'. |
---|
| 2664 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2665 | test -f "$ac_file" || continue |
---|
| 2666 | case $ac_file in |
---|
[788] | 2667 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
[107] | 2668 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
[349] | 2669 | break;; |
---|
[107] | 2670 | * ) break;; |
---|
| 2671 | esac |
---|
| 2672 | done |
---|
| 2673 | else |
---|
[788] | 2674 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2675 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2676 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
| 2677 | See \`config.log' for more details" "$LINENO" 5; } |
---|
[107] | 2678 | fi |
---|
[788] | 2679 | rm -f conftest conftest$ac_cv_exeext |
---|
| 2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
| 2681 | $as_echo "$ac_cv_exeext" >&6; } |
---|
[107] | 2682 | |
---|
| 2683 | rm -f conftest.$ac_ext |
---|
| 2684 | EXEEXT=$ac_cv_exeext |
---|
| 2685 | ac_exeext=$EXEEXT |
---|
[788] | 2686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 2687 | /* end confdefs.h. */ |
---|
| 2688 | #include <stdio.h> |
---|
| 2689 | int |
---|
| 2690 | main () |
---|
| 2691 | { |
---|
| 2692 | FILE *f = fopen ("conftest.out", "w"); |
---|
| 2693 | return ferror (f) || fclose (f) != 0; |
---|
| 2694 | |
---|
| 2695 | ; |
---|
| 2696 | return 0; |
---|
| 2697 | } |
---|
| 2698 | _ACEOF |
---|
| 2699 | ac_clean_files="$ac_clean_files conftest.out" |
---|
| 2700 | # Check that the compiler produces executables we can run. If not, either |
---|
| 2701 | # the compiler is broken, or we cross compile. |
---|
| 2702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
| 2703 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
| 2704 | if test "$cross_compiling" != yes; then |
---|
| 2705 | { { ac_try="$ac_link" |
---|
| 2706 | case "(($ac_try" in |
---|
| 2707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2708 | *) ac_try_echo=$ac_try;; |
---|
| 2709 | esac |
---|
| 2710 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2711 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 2712 | (eval "$ac_link") 2>&5 |
---|
| 2713 | ac_status=$? |
---|
| 2714 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2715 | test $ac_status = 0; } |
---|
| 2716 | if { ac_try='./conftest$ac_cv_exeext' |
---|
| 2717 | { { case "(($ac_try" in |
---|
| 2718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2719 | *) ac_try_echo=$ac_try;; |
---|
| 2720 | esac |
---|
| 2721 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2722 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 2723 | (eval "$ac_try") 2>&5 |
---|
| 2724 | ac_status=$? |
---|
| 2725 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2726 | test $ac_status = 0; }; }; then |
---|
| 2727 | cross_compiling=no |
---|
| 2728 | else |
---|
| 2729 | if test "$cross_compiling" = maybe; then |
---|
| 2730 | cross_compiling=yes |
---|
| 2731 | else |
---|
| 2732 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2733 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2734 | as_fn_error $? "cannot run C++ compiled programs. |
---|
| 2735 | If you meant to cross compile, use \`--host'. |
---|
| 2736 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 2737 | fi |
---|
| 2738 | fi |
---|
| 2739 | fi |
---|
| 2740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
| 2741 | $as_echo "$cross_compiling" >&6; } |
---|
| 2742 | |
---|
| 2743 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
| 2744 | ac_clean_files=$ac_clean_files_save |
---|
| 2745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
| 2746 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
| 2747 | if ${ac_cv_objext+:} false; then : |
---|
| 2748 | $as_echo_n "(cached) " >&6 |
---|
[107] | 2749 | else |
---|
[788] | 2750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 2751 | /* end confdefs.h. */ |
---|
| 2752 | |
---|
| 2753 | int |
---|
| 2754 | main () |
---|
| 2755 | { |
---|
| 2756 | |
---|
| 2757 | ; |
---|
| 2758 | return 0; |
---|
| 2759 | } |
---|
| 2760 | _ACEOF |
---|
| 2761 | rm -f conftest.o conftest.obj |
---|
[788] | 2762 | if { { ac_try="$ac_compile" |
---|
[763] | 2763 | case "(($ac_try" in |
---|
| 2764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2765 | *) ac_try_echo=$ac_try;; |
---|
| 2766 | esac |
---|
[788] | 2767 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2768 | $as_echo "$ac_try_echo"; } >&5 |
---|
[763] | 2769 | (eval "$ac_compile") 2>&5 |
---|
[107] | 2770 | ac_status=$? |
---|
[788] | 2771 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2772 | test $ac_status = 0; }; then : |
---|
[763] | 2773 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
| 2774 | test -f "$ac_file" || continue; |
---|
[107] | 2775 | case $ac_file in |
---|
[788] | 2776 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
[107] | 2777 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2778 | break;; |
---|
| 2779 | esac |
---|
| 2780 | done |
---|
| 2781 | else |
---|
[788] | 2782 | $as_echo "$as_me: failed program was:" >&5 |
---|
[107] | 2783 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2784 | |
---|
[788] | 2785 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2786 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2787 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
| 2788 | See \`config.log' for more details" "$LINENO" 5; } |
---|
[107] | 2789 | fi |
---|
| 2790 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2791 | fi |
---|
[788] | 2792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
| 2793 | $as_echo "$ac_cv_objext" >&6; } |
---|
[107] | 2794 | OBJEXT=$ac_cv_objext |
---|
| 2795 | ac_objext=$OBJEXT |
---|
[788] | 2796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 2797 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
| 2798 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
| 2799 | $as_echo_n "(cached) " >&6 |
---|
[107] | 2800 | else |
---|
[788] | 2801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 2802 | /* end confdefs.h. */ |
---|
| 2803 | |
---|
| 2804 | int |
---|
| 2805 | main () |
---|
| 2806 | { |
---|
| 2807 | #ifndef __GNUC__ |
---|
| 2808 | choke me |
---|
| 2809 | #endif |
---|
| 2810 | |
---|
| 2811 | ; |
---|
| 2812 | return 0; |
---|
| 2813 | } |
---|
| 2814 | _ACEOF |
---|
[788] | 2815 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
[107] | 2816 | ac_compiler_gnu=yes |
---|
| 2817 | else |
---|
[788] | 2818 | ac_compiler_gnu=no |
---|
[107] | 2819 | fi |
---|
[763] | 2820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 2821 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 2822 | |
---|
| 2823 | fi |
---|
[788] | 2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 2825 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
| 2826 | if test $ac_compiler_gnu = yes; then |
---|
| 2827 | GXX=yes |
---|
| 2828 | else |
---|
| 2829 | GXX= |
---|
| 2830 | fi |
---|
[107] | 2831 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 2832 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
[788] | 2833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
| 2834 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
| 2835 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
| 2836 | $as_echo_n "(cached) " >&6 |
---|
[107] | 2837 | else |
---|
[763] | 2838 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
| 2839 | ac_cxx_werror_flag=yes |
---|
| 2840 | ac_cv_prog_cxx_g=no |
---|
| 2841 | CXXFLAGS="-g" |
---|
[788] | 2842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 2843 | /* end confdefs.h. */ |
---|
| 2844 | |
---|
| 2845 | int |
---|
| 2846 | main () |
---|
| 2847 | { |
---|
| 2848 | |
---|
| 2849 | ; |
---|
| 2850 | return 0; |
---|
| 2851 | } |
---|
| 2852 | _ACEOF |
---|
[788] | 2853 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
[107] | 2854 | ac_cv_prog_cxx_g=yes |
---|
| 2855 | else |
---|
[788] | 2856 | CXXFLAGS="" |
---|
| 2857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 2858 | /* end confdefs.h. */ |
---|
[763] | 2859 | |
---|
[107] | 2860 | int |
---|
| 2861 | main () |
---|
| 2862 | { |
---|
[763] | 2863 | |
---|
[107] | 2864 | ; |
---|
| 2865 | return 0; |
---|
| 2866 | } |
---|
| 2867 | _ACEOF |
---|
[788] | 2868 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 2869 | |
---|
[107] | 2870 | else |
---|
[788] | 2871 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
[763] | 2872 | CXXFLAGS="-g" |
---|
[788] | 2873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 2874 | /* end confdefs.h. */ |
---|
[763] | 2875 | |
---|
[107] | 2876 | int |
---|
| 2877 | main () |
---|
| 2878 | { |
---|
[763] | 2879 | |
---|
[107] | 2880 | ; |
---|
| 2881 | return 0; |
---|
| 2882 | } |
---|
| 2883 | _ACEOF |
---|
[788] | 2884 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
[763] | 2885 | ac_cv_prog_cxx_g=yes |
---|
[107] | 2886 | fi |
---|
[763] | 2887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 2888 | fi |
---|
[763] | 2889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2890 | fi |
---|
| 2891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2892 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
| 2893 | fi |
---|
[788] | 2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 2895 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
[763] | 2896 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 2897 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 2898 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 2899 | if test "$GXX" = yes; then |
---|
| 2900 | CXXFLAGS="-g -O2" |
---|
| 2901 | else |
---|
| 2902 | CXXFLAGS="-g" |
---|
| 2903 | fi |
---|
| 2904 | else |
---|
| 2905 | if test "$GXX" = yes; then |
---|
| 2906 | CXXFLAGS="-O2" |
---|
| 2907 | else |
---|
| 2908 | CXXFLAGS= |
---|
| 2909 | fi |
---|
| 2910 | fi |
---|
[107] | 2911 | ac_ext=c |
---|
| 2912 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2913 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2914 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2915 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2916 | |
---|
| 2917 | ac_ext=c |
---|
| 2918 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2919 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2920 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2921 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2922 | if test -n "$ac_tool_prefix"; then |
---|
| 2923 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2924 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
[788] | 2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2926 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2927 | if ${ac_cv_prog_CC+:} false; then : |
---|
| 2928 | $as_echo_n "(cached) " >&6 |
---|
[107] | 2929 | else |
---|
| 2930 | if test -n "$CC"; then |
---|
| 2931 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2932 | else |
---|
| 2933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2934 | for as_dir in $PATH |
---|
| 2935 | do |
---|
| 2936 | IFS=$as_save_IFS |
---|
| 2937 | test -z "$as_dir" && as_dir=. |
---|
[788] | 2938 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1224] | 2939 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[107] | 2940 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
[788] | 2941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[107] | 2942 | break 2 |
---|
| 2943 | fi |
---|
| 2944 | done |
---|
[788] | 2945 | done |
---|
[763] | 2946 | IFS=$as_save_IFS |
---|
[107] | 2947 | |
---|
| 2948 | fi |
---|
| 2949 | fi |
---|
| 2950 | CC=$ac_cv_prog_CC |
---|
| 2951 | if test -n "$CC"; then |
---|
[788] | 2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 2953 | $as_echo "$CC" >&6; } |
---|
[107] | 2954 | else |
---|
[788] | 2955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2956 | $as_echo "no" >&6; } |
---|
[107] | 2957 | fi |
---|
| 2958 | |
---|
[763] | 2959 | |
---|
[107] | 2960 | fi |
---|
| 2961 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2962 | ac_ct_CC=$CC |
---|
| 2963 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2964 | set dummy gcc; ac_word=$2 |
---|
[788] | 2965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2966 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2967 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
| 2968 | $as_echo_n "(cached) " >&6 |
---|
[107] | 2969 | else |
---|
| 2970 | if test -n "$ac_ct_CC"; then |
---|
| 2971 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2972 | else |
---|
| 2973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2974 | for as_dir in $PATH |
---|
| 2975 | do |
---|
| 2976 | IFS=$as_save_IFS |
---|
| 2977 | test -z "$as_dir" && as_dir=. |
---|
[788] | 2978 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1224] | 2979 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[107] | 2980 | ac_cv_prog_ac_ct_CC="gcc" |
---|
[788] | 2981 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[107] | 2982 | break 2 |
---|
| 2983 | fi |
---|
| 2984 | done |
---|
[788] | 2985 | done |
---|
[763] | 2986 | IFS=$as_save_IFS |
---|
[107] | 2987 | |
---|
| 2988 | fi |
---|
| 2989 | fi |
---|
| 2990 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2991 | if test -n "$ac_ct_CC"; then |
---|
[788] | 2992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
| 2993 | $as_echo "$ac_ct_CC" >&6; } |
---|
[107] | 2994 | else |
---|
[788] | 2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2996 | $as_echo "no" >&6; } |
---|
[107] | 2997 | fi |
---|
| 2998 | |
---|
[763] | 2999 | if test "x$ac_ct_CC" = x; then |
---|
| 3000 | CC="" |
---|
| 3001 | else |
---|
| 3002 | case $cross_compiling:$ac_tool_warned in |
---|
| 3003 | yes:) |
---|
[788] | 3004 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 3005 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
[763] | 3006 | ac_tool_warned=yes ;; |
---|
| 3007 | esac |
---|
| 3008 | CC=$ac_ct_CC |
---|
| 3009 | fi |
---|
[107] | 3010 | else |
---|
| 3011 | CC="$ac_cv_prog_CC" |
---|
| 3012 | fi |
---|
| 3013 | |
---|
| 3014 | if test -z "$CC"; then |
---|
[763] | 3015 | if test -n "$ac_tool_prefix"; then |
---|
| 3016 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
[107] | 3017 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
[788] | 3018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3019 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 3020 | if ${ac_cv_prog_CC+:} false; then : |
---|
| 3021 | $as_echo_n "(cached) " >&6 |
---|
[107] | 3022 | else |
---|
| 3023 | if test -n "$CC"; then |
---|
| 3024 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 3025 | else |
---|
| 3026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3027 | for as_dir in $PATH |
---|
| 3028 | do |
---|
| 3029 | IFS=$as_save_IFS |
---|
| 3030 | test -z "$as_dir" && as_dir=. |
---|
[788] | 3031 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1224] | 3032 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[107] | 3033 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
[788] | 3034 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[107] | 3035 | break 2 |
---|
| 3036 | fi |
---|
| 3037 | done |
---|
[788] | 3038 | done |
---|
[763] | 3039 | IFS=$as_save_IFS |
---|
[107] | 3040 | |
---|
| 3041 | fi |
---|
| 3042 | fi |
---|
| 3043 | CC=$ac_cv_prog_CC |
---|
| 3044 | if test -n "$CC"; then |
---|
[788] | 3045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 3046 | $as_echo "$CC" >&6; } |
---|
[107] | 3047 | else |
---|
[788] | 3048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3049 | $as_echo "no" >&6; } |
---|
[107] | 3050 | fi |
---|
| 3051 | |
---|
[763] | 3052 | |
---|
[107] | 3053 | fi |
---|
| 3054 | fi |
---|
| 3055 | if test -z "$CC"; then |
---|
| 3056 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 3057 | set dummy cc; ac_word=$2 |
---|
[788] | 3058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3059 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 3060 | if ${ac_cv_prog_CC+:} false; then : |
---|
| 3061 | $as_echo_n "(cached) " >&6 |
---|
[107] | 3062 | else |
---|
| 3063 | if test -n "$CC"; then |
---|
| 3064 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 3065 | else |
---|
| 3066 | ac_prog_rejected=no |
---|
| 3067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3068 | for as_dir in $PATH |
---|
| 3069 | do |
---|
| 3070 | IFS=$as_save_IFS |
---|
| 3071 | test -z "$as_dir" && as_dir=. |
---|
[788] | 3072 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1224] | 3073 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[107] | 3074 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 3075 | ac_prog_rejected=yes |
---|
| 3076 | continue |
---|
| 3077 | fi |
---|
| 3078 | ac_cv_prog_CC="cc" |
---|
[788] | 3079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[107] | 3080 | break 2 |
---|
| 3081 | fi |
---|
| 3082 | done |
---|
[788] | 3083 | done |
---|
[763] | 3084 | IFS=$as_save_IFS |
---|
[107] | 3085 | |
---|
| 3086 | if test $ac_prog_rejected = yes; then |
---|
| 3087 | # We found a bogon in the path, so make sure we never use it. |
---|
| 3088 | set dummy $ac_cv_prog_CC |
---|
| 3089 | shift |
---|
| 3090 | if test $# != 0; then |
---|
| 3091 | # We chose a different compiler from the bogus one. |
---|
| 3092 | # However, it has the same basename, so the bogon will be chosen |
---|
| 3093 | # first if we set CC to just the basename; use the full file name. |
---|
| 3094 | shift |
---|
| 3095 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 3096 | fi |
---|
| 3097 | fi |
---|
| 3098 | fi |
---|
| 3099 | fi |
---|
| 3100 | CC=$ac_cv_prog_CC |
---|
| 3101 | if test -n "$CC"; then |
---|
[788] | 3102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 3103 | $as_echo "$CC" >&6; } |
---|
[107] | 3104 | else |
---|
[788] | 3105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3106 | $as_echo "no" >&6; } |
---|
[107] | 3107 | fi |
---|
| 3108 | |
---|
[763] | 3109 | |
---|
[107] | 3110 | fi |
---|
| 3111 | if test -z "$CC"; then |
---|
| 3112 | if test -n "$ac_tool_prefix"; then |
---|
[763] | 3113 | for ac_prog in cl.exe |
---|
[107] | 3114 | do |
---|
| 3115 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 3116 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
[788] | 3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3118 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 3119 | if ${ac_cv_prog_CC+:} false; then : |
---|
| 3120 | $as_echo_n "(cached) " >&6 |
---|
[107] | 3121 | else |
---|
| 3122 | if test -n "$CC"; then |
---|
| 3123 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 3124 | else |
---|
| 3125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3126 | for as_dir in $PATH |
---|
| 3127 | do |
---|
| 3128 | IFS=$as_save_IFS |
---|
| 3129 | test -z "$as_dir" && as_dir=. |
---|
[788] | 3130 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1224] | 3131 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[107] | 3132 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
[788] | 3133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[107] | 3134 | break 2 |
---|
| 3135 | fi |
---|
| 3136 | done |
---|
[788] | 3137 | done |
---|
[763] | 3138 | IFS=$as_save_IFS |
---|
[107] | 3139 | |
---|
| 3140 | fi |
---|
| 3141 | fi |
---|
| 3142 | CC=$ac_cv_prog_CC |
---|
| 3143 | if test -n "$CC"; then |
---|
[788] | 3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 3145 | $as_echo "$CC" >&6; } |
---|
[107] | 3146 | else |
---|
[788] | 3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3148 | $as_echo "no" >&6; } |
---|
[107] | 3149 | fi |
---|
| 3150 | |
---|
[763] | 3151 | |
---|
[107] | 3152 | test -n "$CC" && break |
---|
| 3153 | done |
---|
| 3154 | fi |
---|
| 3155 | if test -z "$CC"; then |
---|
| 3156 | ac_ct_CC=$CC |
---|
[763] | 3157 | for ac_prog in cl.exe |
---|
[107] | 3158 | do |
---|
| 3159 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 3160 | set dummy $ac_prog; ac_word=$2 |
---|
[788] | 3161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3162 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 3163 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
| 3164 | $as_echo_n "(cached) " >&6 |
---|
[107] | 3165 | else |
---|
| 3166 | if test -n "$ac_ct_CC"; then |
---|
| 3167 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 3168 | else |
---|
| 3169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3170 | for as_dir in $PATH |
---|
| 3171 | do |
---|
| 3172 | IFS=$as_save_IFS |
---|
| 3173 | test -z "$as_dir" && as_dir=. |
---|
[788] | 3174 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1224] | 3175 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[107] | 3176 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
[788] | 3177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[107] | 3178 | break 2 |
---|
| 3179 | fi |
---|
| 3180 | done |
---|
[788] | 3181 | done |
---|
[763] | 3182 | IFS=$as_save_IFS |
---|
[107] | 3183 | |
---|
| 3184 | fi |
---|
| 3185 | fi |
---|
| 3186 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 3187 | if test -n "$ac_ct_CC"; then |
---|
[788] | 3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
| 3189 | $as_echo "$ac_ct_CC" >&6; } |
---|
[107] | 3190 | else |
---|
[788] | 3191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3192 | $as_echo "no" >&6; } |
---|
[107] | 3193 | fi |
---|
| 3194 | |
---|
[763] | 3195 | |
---|
[107] | 3196 | test -n "$ac_ct_CC" && break |
---|
| 3197 | done |
---|
| 3198 | |
---|
[763] | 3199 | if test "x$ac_ct_CC" = x; then |
---|
| 3200 | CC="" |
---|
| 3201 | else |
---|
| 3202 | case $cross_compiling:$ac_tool_warned in |
---|
| 3203 | yes:) |
---|
[788] | 3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 3205 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
[763] | 3206 | ac_tool_warned=yes ;; |
---|
| 3207 | esac |
---|
| 3208 | CC=$ac_ct_CC |
---|
| 3209 | fi |
---|
[107] | 3210 | fi |
---|
| 3211 | |
---|
| 3212 | fi |
---|
| 3213 | |
---|
| 3214 | |
---|
[788] | 3215 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 3216 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 3217 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
| 3218 | See \`config.log' for more details" "$LINENO" 5; } |
---|
[107] | 3219 | |
---|
| 3220 | # Provide some information about the compiler. |
---|
[788] | 3221 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
| 3222 | set X $ac_compile |
---|
| 3223 | ac_compiler=$2 |
---|
| 3224 | for ac_option in --version -v -V -qversion; do |
---|
| 3225 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
[763] | 3226 | case "(($ac_try" in |
---|
| 3227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3228 | *) ac_try_echo=$ac_try;; |
---|
| 3229 | esac |
---|
[788] | 3230 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 3231 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 3232 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
[107] | 3233 | ac_status=$? |
---|
[788] | 3234 | if test -s conftest.err; then |
---|
| 3235 | sed '10a\ |
---|
| 3236 | ... rest of stderr output deleted ... |
---|
| 3237 | 10q' conftest.err >conftest.er1 |
---|
| 3238 | cat conftest.er1 >&5 |
---|
| 3239 | fi |
---|
| 3240 | rm -f conftest.er1 conftest.err |
---|
| 3241 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 3242 | test $ac_status = 0; } |
---|
| 3243 | done |
---|
[107] | 3244 | |
---|
[788] | 3245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
| 3246 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
| 3247 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
| 3248 | $as_echo_n "(cached) " >&6 |
---|
[107] | 3249 | else |
---|
[788] | 3250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 3251 | /* end confdefs.h. */ |
---|
| 3252 | |
---|
| 3253 | int |
---|
| 3254 | main () |
---|
| 3255 | { |
---|
| 3256 | #ifndef __GNUC__ |
---|
| 3257 | choke me |
---|
| 3258 | #endif |
---|
| 3259 | |
---|
| 3260 | ; |
---|
| 3261 | return 0; |
---|
| 3262 | } |
---|
| 3263 | _ACEOF |
---|
[788] | 3264 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
[107] | 3265 | ac_compiler_gnu=yes |
---|
| 3266 | else |
---|
[788] | 3267 | ac_compiler_gnu=no |
---|
[107] | 3268 | fi |
---|
[763] | 3269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 3270 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 3271 | |
---|
| 3272 | fi |
---|
[788] | 3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 3274 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
| 3275 | if test $ac_compiler_gnu = yes; then |
---|
| 3276 | GCC=yes |
---|
| 3277 | else |
---|
| 3278 | GCC= |
---|
| 3279 | fi |
---|
[107] | 3280 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 3281 | ac_save_CFLAGS=$CFLAGS |
---|
[788] | 3282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
| 3283 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
| 3284 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
| 3285 | $as_echo_n "(cached) " >&6 |
---|
[107] | 3286 | else |
---|
[763] | 3287 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
| 3288 | ac_c_werror_flag=yes |
---|
| 3289 | ac_cv_prog_cc_g=no |
---|
| 3290 | CFLAGS="-g" |
---|
[788] | 3291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 3292 | /* end confdefs.h. */ |
---|
| 3293 | |
---|
| 3294 | int |
---|
| 3295 | main () |
---|
| 3296 | { |
---|
| 3297 | |
---|
| 3298 | ; |
---|
| 3299 | return 0; |
---|
| 3300 | } |
---|
| 3301 | _ACEOF |
---|
[788] | 3302 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
[763] | 3303 | ac_cv_prog_cc_g=yes |
---|
| 3304 | else |
---|
[788] | 3305 | CFLAGS="" |
---|
| 3306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[763] | 3307 | /* end confdefs.h. */ |
---|
| 3308 | |
---|
| 3309 | int |
---|
| 3310 | main () |
---|
| 3311 | { |
---|
| 3312 | |
---|
| 3313 | ; |
---|
| 3314 | return 0; |
---|
| 3315 | } |
---|
| 3316 | _ACEOF |
---|
[788] | 3317 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 3318 | |
---|
[763] | 3319 | else |
---|
[788] | 3320 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
[763] | 3321 | CFLAGS="-g" |
---|
[788] | 3322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[763] | 3323 | /* end confdefs.h. */ |
---|
| 3324 | |
---|
| 3325 | int |
---|
| 3326 | main () |
---|
| 3327 | { |
---|
| 3328 | |
---|
| 3329 | ; |
---|
| 3330 | return 0; |
---|
| 3331 | } |
---|
| 3332 | _ACEOF |
---|
[788] | 3333 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
[107] | 3334 | ac_cv_prog_cc_g=yes |
---|
| 3335 | fi |
---|
[763] | 3336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 3337 | fi |
---|
[763] | 3338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3339 | fi |
---|
| 3340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3341 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
| 3342 | fi |
---|
[788] | 3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
| 3344 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
[107] | 3345 | if test "$ac_test_CFLAGS" = set; then |
---|
| 3346 | CFLAGS=$ac_save_CFLAGS |
---|
| 3347 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 3348 | if test "$GCC" = yes; then |
---|
| 3349 | CFLAGS="-g -O2" |
---|
| 3350 | else |
---|
| 3351 | CFLAGS="-g" |
---|
| 3352 | fi |
---|
| 3353 | else |
---|
| 3354 | if test "$GCC" = yes; then |
---|
| 3355 | CFLAGS="-O2" |
---|
| 3356 | else |
---|
| 3357 | CFLAGS= |
---|
| 3358 | fi |
---|
| 3359 | fi |
---|
[788] | 3360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
| 3361 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
| 3362 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
| 3363 | $as_echo_n "(cached) " >&6 |
---|
[107] | 3364 | else |
---|
[763] | 3365 | ac_cv_prog_cc_c89=no |
---|
[107] | 3366 | ac_save_CC=$CC |
---|
[788] | 3367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 3368 | /* end confdefs.h. */ |
---|
| 3369 | #include <stdarg.h> |
---|
| 3370 | #include <stdio.h> |
---|
[1224] | 3371 | struct stat; |
---|
[107] | 3372 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 3373 | struct buf { int x; }; |
---|
| 3374 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 3375 | static char *e (p, i) |
---|
| 3376 | char **p; |
---|
| 3377 | int i; |
---|
| 3378 | { |
---|
| 3379 | return p[i]; |
---|
| 3380 | } |
---|
| 3381 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 3382 | { |
---|
| 3383 | char *s; |
---|
| 3384 | va_list v; |
---|
| 3385 | va_start (v,p); |
---|
| 3386 | s = g (p, va_arg (v,int)); |
---|
| 3387 | va_end (v); |
---|
| 3388 | return s; |
---|
| 3389 | } |
---|
[349] | 3390 | |
---|
| 3391 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 3392 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 3393 | These don't provoke an error unfortunately, instead are silently treated |
---|
[763] | 3394 | as 'x'. The following induces an error, until -std is added to get |
---|
[349] | 3395 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 3396 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
[763] | 3397 | that's true only with -std. */ |
---|
[349] | 3398 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 3399 | |
---|
[763] | 3400 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
| 3401 | inside strings and character constants. */ |
---|
| 3402 | #define FOO(x) 'x' |
---|
| 3403 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
| 3404 | |
---|
[107] | 3405 | int test (int i, double x); |
---|
| 3406 | struct s1 {int (*f) (int a);}; |
---|
| 3407 | struct s2 {int (*f) (double a);}; |
---|
| 3408 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 3409 | int argc; |
---|
| 3410 | char **argv; |
---|
| 3411 | int |
---|
| 3412 | main () |
---|
| 3413 | { |
---|
| 3414 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 3415 | ; |
---|
| 3416 | return 0; |
---|
| 3417 | } |
---|
| 3418 | _ACEOF |
---|
[763] | 3419 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
| 3420 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
[107] | 3421 | do |
---|
| 3422 | CC="$ac_save_CC $ac_arg" |
---|
[788] | 3423 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
[763] | 3424 | ac_cv_prog_cc_c89=$ac_arg |
---|
[107] | 3425 | fi |
---|
[763] | 3426 | rm -f core conftest.err conftest.$ac_objext |
---|
| 3427 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
[107] | 3428 | done |
---|
[763] | 3429 | rm -f conftest.$ac_ext |
---|
[107] | 3430 | CC=$ac_save_CC |
---|
| 3431 | |
---|
| 3432 | fi |
---|
[763] | 3433 | # AC_CACHE_VAL |
---|
| 3434 | case "x$ac_cv_prog_cc_c89" in |
---|
| 3435 | x) |
---|
[788] | 3436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
| 3437 | $as_echo "none needed" >&6; } ;; |
---|
[763] | 3438 | xno) |
---|
[788] | 3439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
| 3440 | $as_echo "unsupported" >&6; } ;; |
---|
[107] | 3441 | *) |
---|
[763] | 3442 | CC="$CC $ac_cv_prog_cc_c89" |
---|
[788] | 3443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
| 3444 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
[107] | 3445 | esac |
---|
[788] | 3446 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
[107] | 3447 | |
---|
[788] | 3448 | fi |
---|
[107] | 3449 | |
---|
| 3450 | ac_ext=c |
---|
| 3451 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3452 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3453 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3454 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3455 | |
---|
| 3456 | ac_ext=c |
---|
| 3457 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3458 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3459 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3460 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
[788] | 3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
| 3462 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
[107] | 3463 | # On Suns, sometimes $CPP names a directory. |
---|
| 3464 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 3465 | CPP= |
---|
| 3466 | fi |
---|
| 3467 | if test -z "$CPP"; then |
---|
[788] | 3468 | if ${ac_cv_prog_CPP+:} false; then : |
---|
| 3469 | $as_echo_n "(cached) " >&6 |
---|
[107] | 3470 | else |
---|
| 3471 | # Double quotes because CPP needs to be expanded |
---|
| 3472 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 3473 | do |
---|
| 3474 | ac_preproc_ok=false |
---|
| 3475 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3476 | do |
---|
| 3477 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3478 | # with a fresh cross-compiler works. |
---|
| 3479 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3480 | # <limits.h> exists even on freestanding compilers. |
---|
| 3481 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3482 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
[788] | 3483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 3484 | /* end confdefs.h. */ |
---|
| 3485 | #ifdef __STDC__ |
---|
| 3486 | # include <limits.h> |
---|
| 3487 | #else |
---|
| 3488 | # include <assert.h> |
---|
| 3489 | #endif |
---|
[349] | 3490 | Syntax error |
---|
[107] | 3491 | _ACEOF |
---|
[788] | 3492 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
| 3493 | |
---|
[107] | 3494 | else |
---|
| 3495 | # Broken: fails on valid input. |
---|
| 3496 | continue |
---|
| 3497 | fi |
---|
[788] | 3498 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
[763] | 3499 | |
---|
| 3500 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
[107] | 3501 | # can be detected and how. |
---|
[788] | 3502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 3503 | /* end confdefs.h. */ |
---|
| 3504 | #include <ac_nonexistent.h> |
---|
| 3505 | _ACEOF |
---|
[788] | 3506 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
[107] | 3507 | # Broken: success on invalid input. |
---|
| 3508 | continue |
---|
| 3509 | else |
---|
| 3510 | # Passes both tests. |
---|
| 3511 | ac_preproc_ok=: |
---|
| 3512 | break |
---|
| 3513 | fi |
---|
[788] | 3514 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
[763] | 3515 | |
---|
[107] | 3516 | done |
---|
| 3517 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
[788] | 3518 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
| 3519 | if $ac_preproc_ok; then : |
---|
[107] | 3520 | break |
---|
| 3521 | fi |
---|
| 3522 | |
---|
| 3523 | done |
---|
| 3524 | ac_cv_prog_CPP=$CPP |
---|
| 3525 | |
---|
| 3526 | fi |
---|
| 3527 | CPP=$ac_cv_prog_CPP |
---|
| 3528 | else |
---|
| 3529 | ac_cv_prog_CPP=$CPP |
---|
| 3530 | fi |
---|
[788] | 3531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
| 3532 | $as_echo "$CPP" >&6; } |
---|
[107] | 3533 | ac_preproc_ok=false |
---|
| 3534 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3535 | do |
---|
| 3536 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3537 | # with a fresh cross-compiler works. |
---|
| 3538 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3539 | # <limits.h> exists even on freestanding compilers. |
---|
| 3540 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3541 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
[788] | 3542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 3543 | /* end confdefs.h. */ |
---|
| 3544 | #ifdef __STDC__ |
---|
| 3545 | # include <limits.h> |
---|
| 3546 | #else |
---|
| 3547 | # include <assert.h> |
---|
| 3548 | #endif |
---|
[349] | 3549 | Syntax error |
---|
[107] | 3550 | _ACEOF |
---|
[788] | 3551 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
| 3552 | |
---|
[107] | 3553 | else |
---|
| 3554 | # Broken: fails on valid input. |
---|
| 3555 | continue |
---|
| 3556 | fi |
---|
[788] | 3557 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
[763] | 3558 | |
---|
| 3559 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
[107] | 3560 | # can be detected and how. |
---|
[788] | 3561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 3562 | /* end confdefs.h. */ |
---|
| 3563 | #include <ac_nonexistent.h> |
---|
| 3564 | _ACEOF |
---|
[788] | 3565 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
[107] | 3566 | # Broken: success on invalid input. |
---|
| 3567 | continue |
---|
| 3568 | else |
---|
| 3569 | # Passes both tests. |
---|
| 3570 | ac_preproc_ok=: |
---|
| 3571 | break |
---|
| 3572 | fi |
---|
[788] | 3573 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
[763] | 3574 | |
---|
[107] | 3575 | done |
---|
| 3576 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
[788] | 3577 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
| 3578 | if $ac_preproc_ok; then : |
---|
| 3579 | |
---|
[107] | 3580 | else |
---|
[788] | 3581 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 3582 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 3583 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
| 3584 | See \`config.log' for more details" "$LINENO" 5; } |
---|
[107] | 3585 | fi |
---|
| 3586 | |
---|
| 3587 | ac_ext=c |
---|
| 3588 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3589 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3590 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3591 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3592 | |
---|
[351] | 3593 | ac_ext=f |
---|
| 3594 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
| 3595 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3596 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
| 3597 | if test -n "$ac_tool_prefix"; then |
---|
[1224] | 3598 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor |
---|
[351] | 3599 | do |
---|
| 3600 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 3601 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
[788] | 3602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3603 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 3604 | if ${ac_cv_prog_F77+:} false; then : |
---|
| 3605 | $as_echo_n "(cached) " >&6 |
---|
[351] | 3606 | else |
---|
| 3607 | if test -n "$F77"; then |
---|
| 3608 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
| 3609 | else |
---|
| 3610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3611 | for as_dir in $PATH |
---|
| 3612 | do |
---|
| 3613 | IFS=$as_save_IFS |
---|
| 3614 | test -z "$as_dir" && as_dir=. |
---|
[788] | 3615 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1224] | 3616 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[351] | 3617 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
[788] | 3618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[351] | 3619 | break 2 |
---|
| 3620 | fi |
---|
| 3621 | done |
---|
[788] | 3622 | done |
---|
[763] | 3623 | IFS=$as_save_IFS |
---|
[351] | 3624 | |
---|
| 3625 | fi |
---|
| 3626 | fi |
---|
| 3627 | F77=$ac_cv_prog_F77 |
---|
| 3628 | if test -n "$F77"; then |
---|
[788] | 3629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 |
---|
| 3630 | $as_echo "$F77" >&6; } |
---|
[351] | 3631 | else |
---|
[788] | 3632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3633 | $as_echo "no" >&6; } |
---|
[351] | 3634 | fi |
---|
| 3635 | |
---|
[763] | 3636 | |
---|
[351] | 3637 | test -n "$F77" && break |
---|
| 3638 | done |
---|
| 3639 | fi |
---|
| 3640 | if test -z "$F77"; then |
---|
| 3641 | ac_ct_F77=$F77 |
---|
[1224] | 3642 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor |
---|
[351] | 3643 | do |
---|
| 3644 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 3645 | set dummy $ac_prog; ac_word=$2 |
---|
[788] | 3646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3647 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 3648 | if ${ac_cv_prog_ac_ct_F77+:} false; then : |
---|
| 3649 | $as_echo_n "(cached) " >&6 |
---|
[351] | 3650 | else |
---|
| 3651 | if test -n "$ac_ct_F77"; then |
---|
| 3652 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
| 3653 | else |
---|
| 3654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3655 | for as_dir in $PATH |
---|
| 3656 | do |
---|
| 3657 | IFS=$as_save_IFS |
---|
| 3658 | test -z "$as_dir" && as_dir=. |
---|
[788] | 3659 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1224] | 3660 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[351] | 3661 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
[788] | 3662 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[351] | 3663 | break 2 |
---|
| 3664 | fi |
---|
| 3665 | done |
---|
[788] | 3666 | done |
---|
[763] | 3667 | IFS=$as_save_IFS |
---|
[351] | 3668 | |
---|
| 3669 | fi |
---|
| 3670 | fi |
---|
| 3671 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
| 3672 | if test -n "$ac_ct_F77"; then |
---|
[788] | 3673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 |
---|
| 3674 | $as_echo "$ac_ct_F77" >&6; } |
---|
[351] | 3675 | else |
---|
[788] | 3676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3677 | $as_echo "no" >&6; } |
---|
[351] | 3678 | fi |
---|
| 3679 | |
---|
[763] | 3680 | |
---|
[351] | 3681 | test -n "$ac_ct_F77" && break |
---|
| 3682 | done |
---|
| 3683 | |
---|
[763] | 3684 | if test "x$ac_ct_F77" = x; then |
---|
| 3685 | F77="" |
---|
| 3686 | else |
---|
| 3687 | case $cross_compiling:$ac_tool_warned in |
---|
| 3688 | yes:) |
---|
[788] | 3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 3690 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
[763] | 3691 | ac_tool_warned=yes ;; |
---|
| 3692 | esac |
---|
| 3693 | F77=$ac_ct_F77 |
---|
| 3694 | fi |
---|
[351] | 3695 | fi |
---|
| 3696 | |
---|
| 3697 | |
---|
| 3698 | # Provide some information about the compiler. |
---|
[788] | 3699 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 |
---|
| 3700 | set X $ac_compile |
---|
| 3701 | ac_compiler=$2 |
---|
| 3702 | for ac_option in --version -v -V -qversion; do |
---|
| 3703 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
[763] | 3704 | case "(($ac_try" in |
---|
| 3705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3706 | *) ac_try_echo=$ac_try;; |
---|
| 3707 | esac |
---|
[788] | 3708 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 3709 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 3710 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
[351] | 3711 | ac_status=$? |
---|
[788] | 3712 | if test -s conftest.err; then |
---|
| 3713 | sed '10a\ |
---|
| 3714 | ... rest of stderr output deleted ... |
---|
| 3715 | 10q' conftest.err >conftest.er1 |
---|
| 3716 | cat conftest.er1 >&5 |
---|
| 3717 | fi |
---|
| 3718 | rm -f conftest.er1 conftest.err |
---|
| 3719 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 3720 | test $ac_status = 0; } |
---|
| 3721 | done |
---|
[351] | 3722 | rm -f a.out |
---|
| 3723 | |
---|
| 3724 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
| 3725 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
| 3726 | ac_save_ext=$ac_ext |
---|
| 3727 | ac_ext=F |
---|
[788] | 3728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
| 3729 | $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } |
---|
| 3730 | if ${ac_cv_f77_compiler_gnu+:} false; then : |
---|
| 3731 | $as_echo_n "(cached) " >&6 |
---|
[351] | 3732 | else |
---|
[788] | 3733 | cat > conftest.$ac_ext <<_ACEOF |
---|
[351] | 3734 | program main |
---|
| 3735 | #ifndef __GNUC__ |
---|
| 3736 | choke me |
---|
| 3737 | #endif |
---|
| 3738 | |
---|
| 3739 | end |
---|
| 3740 | _ACEOF |
---|
[788] | 3741 | if ac_fn_f77_try_compile "$LINENO"; then : |
---|
[351] | 3742 | ac_compiler_gnu=yes |
---|
| 3743 | else |
---|
[788] | 3744 | ac_compiler_gnu=no |
---|
[351] | 3745 | fi |
---|
[763] | 3746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[351] | 3747 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
| 3748 | |
---|
| 3749 | fi |
---|
[788] | 3750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
| 3751 | $as_echo "$ac_cv_f77_compiler_gnu" >&6; } |
---|
[351] | 3752 | ac_ext=$ac_save_ext |
---|
| 3753 | ac_test_FFLAGS=${FFLAGS+set} |
---|
| 3754 | ac_save_FFLAGS=$FFLAGS |
---|
| 3755 | FFLAGS= |
---|
[788] | 3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 |
---|
| 3757 | $as_echo_n "checking whether $F77 accepts -g... " >&6; } |
---|
| 3758 | if ${ac_cv_prog_f77_g+:} false; then : |
---|
| 3759 | $as_echo_n "(cached) " >&6 |
---|
[351] | 3760 | else |
---|
| 3761 | FFLAGS=-g |
---|
[788] | 3762 | cat > conftest.$ac_ext <<_ACEOF |
---|
[351] | 3763 | program main |
---|
| 3764 | |
---|
| 3765 | end |
---|
| 3766 | _ACEOF |
---|
[788] | 3767 | if ac_fn_f77_try_compile "$LINENO"; then : |
---|
[351] | 3768 | ac_cv_prog_f77_g=yes |
---|
| 3769 | else |
---|
[788] | 3770 | ac_cv_prog_f77_g=no |
---|
[351] | 3771 | fi |
---|
[763] | 3772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3773 | |
---|
[351] | 3774 | fi |
---|
[788] | 3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 |
---|
| 3776 | $as_echo "$ac_cv_prog_f77_g" >&6; } |
---|
[351] | 3777 | if test "$ac_test_FFLAGS" = set; then |
---|
| 3778 | FFLAGS=$ac_save_FFLAGS |
---|
| 3779 | elif test $ac_cv_prog_f77_g = yes; then |
---|
| 3780 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
| 3781 | FFLAGS="-g -O2" |
---|
| 3782 | else |
---|
| 3783 | FFLAGS="-g" |
---|
| 3784 | fi |
---|
| 3785 | else |
---|
| 3786 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
| 3787 | FFLAGS="-O2" |
---|
| 3788 | else |
---|
| 3789 | FFLAGS= |
---|
| 3790 | fi |
---|
| 3791 | fi |
---|
| 3792 | |
---|
[788] | 3793 | if test $ac_compiler_gnu = yes; then |
---|
| 3794 | G77=yes |
---|
| 3795 | else |
---|
| 3796 | G77= |
---|
| 3797 | fi |
---|
[351] | 3798 | ac_ext=c |
---|
| 3799 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3800 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3801 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3802 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3803 | |
---|
[788] | 3804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
---|
| 3805 | $as_echo_n "checking whether ln -s works... " >&6; } |
---|
[342] | 3806 | LN_S=$as_ln_s |
---|
| 3807 | if test "$LN_S" = "ln -s"; then |
---|
[788] | 3808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
| 3809 | $as_echo "yes" >&6; } |
---|
[342] | 3810 | else |
---|
[788] | 3811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
---|
| 3812 | $as_echo "no, using $LN_S" >&6; } |
---|
[342] | 3813 | fi |
---|
[107] | 3814 | |
---|
[342] | 3815 | for ac_prog in install |
---|
| 3816 | do |
---|
| 3817 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 3818 | set dummy $ac_prog; ac_word=$2 |
---|
[788] | 3819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3820 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 3821 | if ${ac_cv_prog_INSTALL+:} false; then : |
---|
| 3822 | $as_echo_n "(cached) " >&6 |
---|
[342] | 3823 | else |
---|
| 3824 | if test -n "$INSTALL"; then |
---|
| 3825 | ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test. |
---|
| 3826 | else |
---|
| 3827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3828 | for as_dir in $PATH |
---|
| 3829 | do |
---|
| 3830 | IFS=$as_save_IFS |
---|
| 3831 | test -z "$as_dir" && as_dir=. |
---|
[788] | 3832 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1224] | 3833 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[342] | 3834 | ac_cv_prog_INSTALL="$ac_prog" |
---|
[788] | 3835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[342] | 3836 | break 2 |
---|
| 3837 | fi |
---|
| 3838 | done |
---|
[788] | 3839 | done |
---|
[763] | 3840 | IFS=$as_save_IFS |
---|
[342] | 3841 | |
---|
| 3842 | fi |
---|
| 3843 | fi |
---|
| 3844 | INSTALL=$ac_cv_prog_INSTALL |
---|
| 3845 | if test -n "$INSTALL"; then |
---|
[788] | 3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
| 3847 | $as_echo "$INSTALL" >&6; } |
---|
[342] | 3848 | else |
---|
[788] | 3849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3850 | $as_echo "no" >&6; } |
---|
[342] | 3851 | fi |
---|
| 3852 | |
---|
[763] | 3853 | |
---|
[342] | 3854 | test -n "$INSTALL" && break |
---|
| 3855 | done |
---|
| 3856 | |
---|
| 3857 | |
---|
[347] | 3858 | # Check for maths library -- will add -lm to $LIBS |
---|
[107] | 3859 | |
---|
[788] | 3860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log in -lm" >&5 |
---|
| 3861 | $as_echo_n "checking for log in -lm... " >&6; } |
---|
| 3862 | if ${ac_cv_lib_m_log+:} false; then : |
---|
| 3863 | $as_echo_n "(cached) " >&6 |
---|
[107] | 3864 | else |
---|
| 3865 | ac_check_lib_save_LIBS=$LIBS |
---|
| 3866 | LIBS="-lm $LIBS" |
---|
[788] | 3867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 3868 | /* end confdefs.h. */ |
---|
| 3869 | |
---|
[763] | 3870 | /* Override any GCC internal prototype to avoid an error. |
---|
| 3871 | Use char because int might match the return type of a GCC |
---|
| 3872 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 3873 | #ifdef __cplusplus |
---|
| 3874 | extern "C" |
---|
| 3875 | #endif |
---|
| 3876 | char log (); |
---|
| 3877 | int |
---|
| 3878 | main () |
---|
| 3879 | { |
---|
[763] | 3880 | return log (); |
---|
[107] | 3881 | ; |
---|
| 3882 | return 0; |
---|
| 3883 | } |
---|
| 3884 | _ACEOF |
---|
[788] | 3885 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 3886 | ac_cv_lib_m_log=yes |
---|
| 3887 | else |
---|
[788] | 3888 | ac_cv_lib_m_log=no |
---|
[107] | 3889 | fi |
---|
[788] | 3890 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 3891 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 3892 | LIBS=$ac_check_lib_save_LIBS |
---|
| 3893 | fi |
---|
[788] | 3894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log" >&5 |
---|
| 3895 | $as_echo "$ac_cv_lib_m_log" >&6; } |
---|
| 3896 | if test "x$ac_cv_lib_m_log" = xyes; then : |
---|
[107] | 3897 | cat >>confdefs.h <<_ACEOF |
---|
| 3898 | #define HAVE_LIBM 1 |
---|
| 3899 | _ACEOF |
---|
| 3900 | |
---|
| 3901 | LIBS="-lm $LIBS" |
---|
| 3902 | |
---|
| 3903 | fi |
---|
| 3904 | |
---|
| 3905 | |
---|
| 3906 | # Checks for header files. |
---|
| 3907 | |
---|
[788] | 3908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
| 3909 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
| 3910 | if ${ac_cv_path_GREP+:} false; then : |
---|
| 3911 | $as_echo_n "(cached) " >&6 |
---|
[107] | 3912 | else |
---|
[788] | 3913 | if test -z "$GREP"; then |
---|
[763] | 3914 | ac_path_GREP_found=false |
---|
[788] | 3915 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
| 3916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
[763] | 3917 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
| 3918 | do |
---|
| 3919 | IFS=$as_save_IFS |
---|
| 3920 | test -z "$as_dir" && as_dir=. |
---|
[788] | 3921 | for ac_prog in grep ggrep; do |
---|
| 3922 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3923 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
[1224] | 3924 | as_fn_executable_p "$ac_path_GREP" || continue |
---|
[788] | 3925 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
[763] | 3926 | # Check for GNU $ac_path_GREP |
---|
| 3927 | case `"$ac_path_GREP" --version 2>&1` in |
---|
| 3928 | *GNU*) |
---|
| 3929 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
| 3930 | *) |
---|
| 3931 | ac_count=0 |
---|
[788] | 3932 | $as_echo_n 0123456789 >"conftest.in" |
---|
[763] | 3933 | while : |
---|
| 3934 | do |
---|
| 3935 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
| 3936 | mv "conftest.tmp" "conftest.in" |
---|
| 3937 | cp "conftest.in" "conftest.nl" |
---|
[788] | 3938 | $as_echo 'GREP' >> "conftest.nl" |
---|
[763] | 3939 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
| 3940 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
[788] | 3941 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
[763] | 3942 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
| 3943 | # Best one so far, save it but keep looking for a better one |
---|
| 3944 | ac_cv_path_GREP="$ac_path_GREP" |
---|
| 3945 | ac_path_GREP_max=$ac_count |
---|
[107] | 3946 | fi |
---|
[763] | 3947 | # 10*(2^10) chars as input seems more than enough |
---|
| 3948 | test $ac_count -gt 10 && break |
---|
| 3949 | done |
---|
| 3950 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
| 3951 | esac |
---|
| 3952 | |
---|
[788] | 3953 | $ac_path_GREP_found && break 3 |
---|
| 3954 | done |
---|
[763] | 3955 | done |
---|
[788] | 3956 | done |
---|
[763] | 3957 | IFS=$as_save_IFS |
---|
[788] | 3958 | if test -z "$ac_cv_path_GREP"; then |
---|
| 3959 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
| 3960 | fi |
---|
[763] | 3961 | else |
---|
| 3962 | ac_cv_path_GREP=$GREP |
---|
| 3963 | fi |
---|
| 3964 | |
---|
| 3965 | fi |
---|
[788] | 3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
| 3967 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
[763] | 3968 | GREP="$ac_cv_path_GREP" |
---|
| 3969 | |
---|
| 3970 | |
---|
[788] | 3971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
| 3972 | $as_echo_n "checking for egrep... " >&6; } |
---|
| 3973 | if ${ac_cv_path_EGREP+:} false; then : |
---|
| 3974 | $as_echo_n "(cached) " >&6 |
---|
[763] | 3975 | else |
---|
| 3976 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
| 3977 | then ac_cv_path_EGREP="$GREP -E" |
---|
| 3978 | else |
---|
[788] | 3979 | if test -z "$EGREP"; then |
---|
[763] | 3980 | ac_path_EGREP_found=false |
---|
[788] | 3981 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
| 3982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
[763] | 3983 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
| 3984 | do |
---|
| 3985 | IFS=$as_save_IFS |
---|
| 3986 | test -z "$as_dir" && as_dir=. |
---|
[788] | 3987 | for ac_prog in egrep; do |
---|
| 3988 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3989 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
[1224] | 3990 | as_fn_executable_p "$ac_path_EGREP" || continue |
---|
[788] | 3991 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
[763] | 3992 | # Check for GNU $ac_path_EGREP |
---|
| 3993 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
| 3994 | *GNU*) |
---|
| 3995 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
| 3996 | *) |
---|
| 3997 | ac_count=0 |
---|
[788] | 3998 | $as_echo_n 0123456789 >"conftest.in" |
---|
[763] | 3999 | while : |
---|
| 4000 | do |
---|
| 4001 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
| 4002 | mv "conftest.tmp" "conftest.in" |
---|
| 4003 | cp "conftest.in" "conftest.nl" |
---|
[788] | 4004 | $as_echo 'EGREP' >> "conftest.nl" |
---|
[763] | 4005 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
| 4006 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
[788] | 4007 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
[763] | 4008 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
| 4009 | # Best one so far, save it but keep looking for a better one |
---|
| 4010 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
| 4011 | ac_path_EGREP_max=$ac_count |
---|
| 4012 | fi |
---|
| 4013 | # 10*(2^10) chars as input seems more than enough |
---|
| 4014 | test $ac_count -gt 10 && break |
---|
| 4015 | done |
---|
| 4016 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
| 4017 | esac |
---|
| 4018 | |
---|
[788] | 4019 | $ac_path_EGREP_found && break 3 |
---|
| 4020 | done |
---|
[763] | 4021 | done |
---|
[788] | 4022 | done |
---|
[763] | 4023 | IFS=$as_save_IFS |
---|
[788] | 4024 | if test -z "$ac_cv_path_EGREP"; then |
---|
| 4025 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
| 4026 | fi |
---|
[763] | 4027 | else |
---|
| 4028 | ac_cv_path_EGREP=$EGREP |
---|
| 4029 | fi |
---|
| 4030 | |
---|
| 4031 | fi |
---|
| 4032 | fi |
---|
[788] | 4033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
| 4034 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
[763] | 4035 | EGREP="$ac_cv_path_EGREP" |
---|
| 4036 | |
---|
| 4037 | |
---|
[788] | 4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
| 4039 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
| 4040 | if ${ac_cv_header_stdc+:} false; then : |
---|
| 4041 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4042 | else |
---|
[788] | 4043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4044 | /* end confdefs.h. */ |
---|
| 4045 | #include <stdlib.h> |
---|
| 4046 | #include <stdarg.h> |
---|
| 4047 | #include <string.h> |
---|
| 4048 | #include <float.h> |
---|
| 4049 | |
---|
| 4050 | int |
---|
| 4051 | main () |
---|
| 4052 | { |
---|
| 4053 | |
---|
| 4054 | ; |
---|
| 4055 | return 0; |
---|
| 4056 | } |
---|
| 4057 | _ACEOF |
---|
[788] | 4058 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
[107] | 4059 | ac_cv_header_stdc=yes |
---|
| 4060 | else |
---|
[788] | 4061 | ac_cv_header_stdc=no |
---|
[107] | 4062 | fi |
---|
[763] | 4063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4064 | |
---|
[107] | 4065 | if test $ac_cv_header_stdc = yes; then |
---|
| 4066 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
[788] | 4067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4068 | /* end confdefs.h. */ |
---|
| 4069 | #include <string.h> |
---|
| 4070 | |
---|
| 4071 | _ACEOF |
---|
| 4072 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
[788] | 4073 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
| 4074 | |
---|
[107] | 4075 | else |
---|
| 4076 | ac_cv_header_stdc=no |
---|
| 4077 | fi |
---|
[788] | 4078 | rm -f conftest* |
---|
[107] | 4079 | |
---|
| 4080 | fi |
---|
| 4081 | |
---|
| 4082 | if test $ac_cv_header_stdc = yes; then |
---|
| 4083 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
[788] | 4084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4085 | /* end confdefs.h. */ |
---|
| 4086 | #include <stdlib.h> |
---|
| 4087 | |
---|
| 4088 | _ACEOF |
---|
| 4089 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
[788] | 4090 | $EGREP "free" >/dev/null 2>&1; then : |
---|
| 4091 | |
---|
[107] | 4092 | else |
---|
| 4093 | ac_cv_header_stdc=no |
---|
| 4094 | fi |
---|
[788] | 4095 | rm -f conftest* |
---|
[107] | 4096 | |
---|
| 4097 | fi |
---|
| 4098 | |
---|
| 4099 | if test $ac_cv_header_stdc = yes; then |
---|
| 4100 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
[788] | 4101 | if test "$cross_compiling" = yes; then : |
---|
[107] | 4102 | : |
---|
| 4103 | else |
---|
[788] | 4104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4105 | /* end confdefs.h. */ |
---|
| 4106 | #include <ctype.h> |
---|
[763] | 4107 | #include <stdlib.h> |
---|
[107] | 4108 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 4109 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 4110 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 4111 | #else |
---|
| 4112 | # define ISLOWER(c) \ |
---|
[349] | 4113 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 4114 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 4115 | || ('s' <= (c) && (c) <= 'z')) |
---|
[107] | 4116 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 4117 | #endif |
---|
| 4118 | |
---|
| 4119 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 4120 | int |
---|
| 4121 | main () |
---|
| 4122 | { |
---|
| 4123 | int i; |
---|
| 4124 | for (i = 0; i < 256; i++) |
---|
| 4125 | if (XOR (islower (i), ISLOWER (i)) |
---|
[349] | 4126 | || toupper (i) != TOUPPER (i)) |
---|
[763] | 4127 | return 2; |
---|
| 4128 | return 0; |
---|
[107] | 4129 | } |
---|
| 4130 | _ACEOF |
---|
[788] | 4131 | if ac_fn_c_try_run "$LINENO"; then : |
---|
| 4132 | |
---|
[107] | 4133 | else |
---|
[788] | 4134 | ac_cv_header_stdc=no |
---|
[107] | 4135 | fi |
---|
[788] | 4136 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
| 4137 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
[107] | 4138 | fi |
---|
[763] | 4139 | |
---|
[107] | 4140 | fi |
---|
| 4141 | fi |
---|
[788] | 4142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
| 4143 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
[107] | 4144 | if test $ac_cv_header_stdc = yes; then |
---|
| 4145 | |
---|
[788] | 4146 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
[107] | 4147 | |
---|
| 4148 | fi |
---|
| 4149 | |
---|
| 4150 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
| 4151 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
[349] | 4152 | inttypes.h stdint.h unistd.h |
---|
[788] | 4153 | do : |
---|
| 4154 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4155 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
| 4156 | " |
---|
| 4157 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
[107] | 4158 | cat >>confdefs.h <<_ACEOF |
---|
[788] | 4159 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
[107] | 4160 | _ACEOF |
---|
| 4161 | |
---|
| 4162 | fi |
---|
| 4163 | |
---|
| 4164 | done |
---|
| 4165 | |
---|
| 4166 | |
---|
[635] | 4167 | for ac_header in unistd.h time.h math.h values.h iostream fstream sstream iomanip vector string algorithm functional |
---|
[788] | 4168 | do : |
---|
| 4169 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4170 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
| 4171 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
[107] | 4172 | cat >>confdefs.h <<_ACEOF |
---|
[788] | 4173 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
[107] | 4174 | _ACEOF |
---|
| 4175 | |
---|
| 4176 | fi |
---|
| 4177 | |
---|
| 4178 | done |
---|
| 4179 | |
---|
[168] | 4180 | if test "x$ac_cv_header_stdc" = xno; then |
---|
[788] | 4181 | as_fn_error 1 " |
---|
[168] | 4182 | ------------------------------------------------------------------- |
---|
| 4183 | An ANSI standard C library is required to build Duchamp. |
---|
| 4184 | One of the ANSI C header files it requires is missing or unusable. |
---|
[107] | 4185 | |
---|
[168] | 4186 | ERROR: Duchamp configuration failure. |
---|
[788] | 4187 | -------------------------------------------------------------------" "$LINENO" 5 |
---|
[168] | 4188 | fi |
---|
| 4189 | |
---|
[107] | 4190 | # Checks for typedefs, structures, and compiler characteristics. |
---|
[788] | 4191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
---|
| 4192 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
---|
| 4193 | if ${ac_cv_header_stdbool_h+:} false; then : |
---|
| 4194 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4195 | else |
---|
[788] | 4196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4197 | /* end confdefs.h. */ |
---|
| 4198 | |
---|
[1224] | 4199 | #include <stdbool.h> |
---|
| 4200 | #ifndef bool |
---|
| 4201 | "error: bool is not defined" |
---|
| 4202 | #endif |
---|
| 4203 | #ifndef false |
---|
| 4204 | "error: false is not defined" |
---|
| 4205 | #endif |
---|
| 4206 | #if false |
---|
| 4207 | "error: false is not 0" |
---|
| 4208 | #endif |
---|
| 4209 | #ifndef true |
---|
| 4210 | "error: true is not defined" |
---|
| 4211 | #endif |
---|
| 4212 | #if true != 1 |
---|
| 4213 | "error: true is not 1" |
---|
| 4214 | #endif |
---|
| 4215 | #ifndef __bool_true_false_are_defined |
---|
| 4216 | "error: __bool_true_false_are_defined is not defined" |
---|
| 4217 | #endif |
---|
[107] | 4218 | |
---|
[1224] | 4219 | struct s { _Bool s: 1; _Bool t; } s; |
---|
[107] | 4220 | |
---|
[1224] | 4221 | char a[true == 1 ? 1 : -1]; |
---|
| 4222 | char b[false == 0 ? 1 : -1]; |
---|
| 4223 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
| 4224 | char d[(bool) 0.5 == true ? 1 : -1]; |
---|
| 4225 | /* See body of main program for 'e'. */ |
---|
| 4226 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
---|
| 4227 | char g[true]; |
---|
| 4228 | char h[sizeof (_Bool)]; |
---|
| 4229 | char i[sizeof s.t]; |
---|
| 4230 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
---|
| 4231 | /* The following fails for |
---|
| 4232 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
---|
| 4233 | _Bool n[m]; |
---|
| 4234 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
---|
| 4235 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
---|
| 4236 | /* Catch a bug in an HP-UX C compiler. See |
---|
| 4237 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
---|
| 4238 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
---|
| 4239 | */ |
---|
| 4240 | _Bool q = true; |
---|
| 4241 | _Bool *pq = &q; |
---|
[107] | 4242 | |
---|
| 4243 | int |
---|
| 4244 | main () |
---|
| 4245 | { |
---|
[763] | 4246 | |
---|
[1224] | 4247 | bool e = &s; |
---|
| 4248 | *pq |= q; |
---|
| 4249 | *pq |= ! q; |
---|
| 4250 | /* Refer to every declared value, to avoid compiler optimizations. */ |
---|
| 4251 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
---|
| 4252 | + !m + !n + !o + !p + !q + !pq); |
---|
[763] | 4253 | |
---|
[107] | 4254 | ; |
---|
| 4255 | return 0; |
---|
| 4256 | } |
---|
| 4257 | _ACEOF |
---|
[788] | 4258 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
[107] | 4259 | ac_cv_header_stdbool_h=yes |
---|
| 4260 | else |
---|
[788] | 4261 | ac_cv_header_stdbool_h=no |
---|
[107] | 4262 | fi |
---|
[763] | 4263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 4264 | fi |
---|
[788] | 4265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
---|
| 4266 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
---|
[1224] | 4267 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
---|
[788] | 4268 | if test "x$ac_cv_type__Bool" = xyes; then : |
---|
[107] | 4269 | |
---|
| 4270 | cat >>confdefs.h <<_ACEOF |
---|
| 4271 | #define HAVE__BOOL 1 |
---|
| 4272 | _ACEOF |
---|
| 4273 | |
---|
| 4274 | |
---|
| 4275 | fi |
---|
| 4276 | |
---|
[1224] | 4277 | |
---|
[107] | 4278 | if test $ac_cv_header_stdbool_h = yes; then |
---|
| 4279 | |
---|
[788] | 4280 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
---|
[107] | 4281 | |
---|
| 4282 | fi |
---|
| 4283 | |
---|
[788] | 4284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
---|
| 4285 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
---|
| 4286 | if ${ac_cv_c_const+:} false; then : |
---|
| 4287 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4288 | else |
---|
[788] | 4289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4290 | /* end confdefs.h. */ |
---|
| 4291 | |
---|
| 4292 | int |
---|
| 4293 | main () |
---|
| 4294 | { |
---|
[1224] | 4295 | |
---|
[107] | 4296 | #ifndef __cplusplus |
---|
[1224] | 4297 | /* Ultrix mips cc rejects this sort of thing. */ |
---|
[107] | 4298 | typedef int charset[2]; |
---|
[1224] | 4299 | const charset cs = { 0, 0 }; |
---|
[107] | 4300 | /* SunOS 4.1.1 cc rejects this. */ |
---|
[763] | 4301 | char const *const *pcpcc; |
---|
| 4302 | char **ppc; |
---|
[107] | 4303 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
| 4304 | struct point {int x, y;}; |
---|
| 4305 | static struct point const zero = {0,0}; |
---|
| 4306 | /* AIX XL C 1.02.0.0 rejects this. |
---|
| 4307 | It does not let you subtract one const X* pointer from another in |
---|
| 4308 | an arm of an if-expression whose if-part is not a constant |
---|
| 4309 | expression */ |
---|
| 4310 | const char *g = "string"; |
---|
[763] | 4311 | pcpcc = &g + (g ? g-g : 0); |
---|
[107] | 4312 | /* HPUX 7.0 cc rejects these. */ |
---|
[763] | 4313 | ++pcpcc; |
---|
| 4314 | ppc = (char**) pcpcc; |
---|
| 4315 | pcpcc = (char const *const *) ppc; |
---|
[1224] | 4316 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
---|
| 4317 | char tx; |
---|
| 4318 | char *t = &tx; |
---|
[107] | 4319 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
| 4320 | |
---|
| 4321 | *t++ = 0; |
---|
[763] | 4322 | if (s) return 0; |
---|
[107] | 4323 | } |
---|
| 4324 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
| 4325 | int x[] = {25, 17}; |
---|
| 4326 | const int *foo = &x[0]; |
---|
| 4327 | ++foo; |
---|
| 4328 | } |
---|
| 4329 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
| 4330 | typedef const int *iptr; |
---|
| 4331 | iptr p = 0; |
---|
| 4332 | ++p; |
---|
| 4333 | } |
---|
[1224] | 4334 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
---|
[107] | 4335 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
[1224] | 4336 | struct s { int j; const int *ap[3]; } bx; |
---|
| 4337 | struct s *b = &bx; b->j = 5; |
---|
[107] | 4338 | } |
---|
| 4339 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
| 4340 | const int foo = 10; |
---|
[763] | 4341 | if (!foo) return 0; |
---|
[107] | 4342 | } |
---|
[763] | 4343 | return !cs[0] && !zero.x; |
---|
[107] | 4344 | #endif |
---|
| 4345 | |
---|
| 4346 | ; |
---|
| 4347 | return 0; |
---|
| 4348 | } |
---|
| 4349 | _ACEOF |
---|
[788] | 4350 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
[107] | 4351 | ac_cv_c_const=yes |
---|
| 4352 | else |
---|
[788] | 4353 | ac_cv_c_const=no |
---|
[107] | 4354 | fi |
---|
[763] | 4355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 4356 | fi |
---|
[788] | 4357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
---|
| 4358 | $as_echo "$ac_cv_c_const" >&6; } |
---|
[107] | 4359 | if test $ac_cv_c_const = no; then |
---|
| 4360 | |
---|
[788] | 4361 | $as_echo "#define const /**/" >>confdefs.h |
---|
[107] | 4362 | |
---|
| 4363 | fi |
---|
| 4364 | |
---|
[788] | 4365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
---|
| 4366 | $as_echo_n "checking for inline... " >&6; } |
---|
| 4367 | if ${ac_cv_c_inline+:} false; then : |
---|
| 4368 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4369 | else |
---|
| 4370 | ac_cv_c_inline=no |
---|
| 4371 | for ac_kw in inline __inline__ __inline; do |
---|
[788] | 4372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4373 | /* end confdefs.h. */ |
---|
| 4374 | #ifndef __cplusplus |
---|
| 4375 | typedef int foo_t; |
---|
| 4376 | static $ac_kw foo_t static_foo () {return 0; } |
---|
| 4377 | $ac_kw foo_t foo () {return 0; } |
---|
| 4378 | #endif |
---|
| 4379 | |
---|
| 4380 | _ACEOF |
---|
[788] | 4381 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
[763] | 4382 | ac_cv_c_inline=$ac_kw |
---|
[107] | 4383 | fi |
---|
[763] | 4384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4385 | test "$ac_cv_c_inline" != no && break |
---|
[107] | 4386 | done |
---|
| 4387 | |
---|
| 4388 | fi |
---|
[788] | 4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
---|
| 4390 | $as_echo "$ac_cv_c_inline" >&6; } |
---|
[349] | 4391 | |
---|
[107] | 4392 | case $ac_cv_c_inline in |
---|
| 4393 | inline | yes) ;; |
---|
[349] | 4394 | *) |
---|
| 4395 | case $ac_cv_c_inline in |
---|
| 4396 | no) ac_val=;; |
---|
| 4397 | *) ac_val=$ac_cv_c_inline;; |
---|
| 4398 | esac |
---|
| 4399 | cat >>confdefs.h <<_ACEOF |
---|
| 4400 | #ifndef __cplusplus |
---|
| 4401 | #define inline $ac_val |
---|
| 4402 | #endif |
---|
[107] | 4403 | _ACEOF |
---|
[349] | 4404 | ;; |
---|
[107] | 4405 | esac |
---|
| 4406 | |
---|
| 4407 | |
---|
[1222] | 4408 | # Library and installation utilities. |
---|
| 4409 | #------------------------------------ |
---|
| 4410 | # (Taken from Mark Calabretta's wcslib package) |
---|
| 4411 | # Static library generation. |
---|
[168] | 4412 | if test -n "$ac_tool_prefix"; then |
---|
| 4413 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
| 4414 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
[788] | 4415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 4416 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 4417 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
| 4418 | $as_echo_n "(cached) " >&6 |
---|
[168] | 4419 | else |
---|
| 4420 | if test -n "$RANLIB"; then |
---|
| 4421 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 4422 | else |
---|
| 4423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4424 | for as_dir in $PATH |
---|
| 4425 | do |
---|
| 4426 | IFS=$as_save_IFS |
---|
| 4427 | test -z "$as_dir" && as_dir=. |
---|
[788] | 4428 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1224] | 4429 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[168] | 4430 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
[788] | 4431 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[168] | 4432 | break 2 |
---|
| 4433 | fi |
---|
| 4434 | done |
---|
[788] | 4435 | done |
---|
[763] | 4436 | IFS=$as_save_IFS |
---|
[168] | 4437 | |
---|
| 4438 | fi |
---|
| 4439 | fi |
---|
| 4440 | RANLIB=$ac_cv_prog_RANLIB |
---|
| 4441 | if test -n "$RANLIB"; then |
---|
[788] | 4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
| 4443 | $as_echo "$RANLIB" >&6; } |
---|
[168] | 4444 | else |
---|
[788] | 4445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 4446 | $as_echo "no" >&6; } |
---|
[168] | 4447 | fi |
---|
| 4448 | |
---|
[763] | 4449 | |
---|
[168] | 4450 | fi |
---|
| 4451 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
| 4452 | ac_ct_RANLIB=$RANLIB |
---|
| 4453 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 4454 | set dummy ranlib; ac_word=$2 |
---|
[788] | 4455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 4456 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 4457 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
| 4458 | $as_echo_n "(cached) " >&6 |
---|
[168] | 4459 | else |
---|
| 4460 | if test -n "$ac_ct_RANLIB"; then |
---|
| 4461 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
| 4462 | else |
---|
| 4463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4464 | for as_dir in $PATH |
---|
| 4465 | do |
---|
| 4466 | IFS=$as_save_IFS |
---|
| 4467 | test -z "$as_dir" && as_dir=. |
---|
[788] | 4468 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[1224] | 4469 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
[168] | 4470 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
[788] | 4471 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[168] | 4472 | break 2 |
---|
| 4473 | fi |
---|
| 4474 | done |
---|
[788] | 4475 | done |
---|
[763] | 4476 | IFS=$as_save_IFS |
---|
[168] | 4477 | |
---|
| 4478 | fi |
---|
| 4479 | fi |
---|
| 4480 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
| 4481 | if test -n "$ac_ct_RANLIB"; then |
---|
[788] | 4482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
| 4483 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
[168] | 4484 | else |
---|
[788] | 4485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 4486 | $as_echo "no" >&6; } |
---|
[168] | 4487 | fi |
---|
| 4488 | |
---|
[763] | 4489 | if test "x$ac_ct_RANLIB" = x; then |
---|
| 4490 | RANLIB=":" |
---|
| 4491 | else |
---|
| 4492 | case $cross_compiling:$ac_tool_warned in |
---|
| 4493 | yes:) |
---|
[788] | 4494 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 4495 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
[763] | 4496 | ac_tool_warned=yes ;; |
---|
| 4497 | esac |
---|
| 4498 | RANLIB=$ac_ct_RANLIB |
---|
| 4499 | fi |
---|
[168] | 4500 | else |
---|
| 4501 | RANLIB="$ac_cv_prog_RANLIB" |
---|
| 4502 | fi |
---|
| 4503 | |
---|
[1222] | 4504 | # Installation utilities. |
---|
| 4505 | #AC_PROG_LN_S |
---|
| 4506 | #AC_PROG_INSTALL |
---|
[168] | 4507 | |
---|
[1222] | 4508 | |
---|
| 4509 | # Shared library generation. |
---|
| 4510 | if test "x$ac_cv_c_compiler_gnu" = xyes ; then |
---|
| 4511 | # Note that -fPIC is on by default for Macs, this just makes it obvious. |
---|
| 4512 | SHRFLAGS="-fPIC" |
---|
[1224] | 4513 | SHRLD="\$(LINK) $SHRFLAGS" |
---|
[1222] | 4514 | |
---|
| 4515 | case "$build_os" in |
---|
| 4516 | darwin*) |
---|
| 4517 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using darwin build option" >&5 |
---|
| 4518 | $as_echo "$as_me: Using darwin build option" >&6;} |
---|
[1227] | 4519 | SHRLIB="libduchamp.$PACKAGE_VERSION.dylib" |
---|
[1222] | 4520 | SHRLD="$SHRLD -dynamiclib -single_module" |
---|
| 4521 | SHRLD="$SHRLD -compatibility_version $PACKAGE_VERSION -current_version $PACKAGE_VERSION" |
---|
| 4522 | SHRLN= |
---|
| 4523 | |
---|
| 4524 | case "$build_cpu" in |
---|
| 4525 | powerpc*) |
---|
| 4526 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using darwin build option with powerpc subcase" >&5 |
---|
| 4527 | $as_echo "$as_me: Using darwin build option with powerpc subcase" >&6;} |
---|
| 4528 | # Switch off -fPIC (not applicable for Intel Macs). |
---|
| 4529 | CFLAGS="$CFLAGS -mdynamic-no-pic" |
---|
| 4530 | ;; |
---|
| 4531 | esac |
---|
| 4532 | ;; |
---|
| 4533 | *) |
---|
| 4534 | # Covers Linux and Solaris at least. |
---|
| 4535 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using alternative (linux) build option" >&5 |
---|
| 4536 | $as_echo "$as_me: Using alternative (linux) build option" >&6;} |
---|
| 4537 | SHRLIB="libduchamp.so.$PACKAGE_VERSION" |
---|
[1224] | 4538 | SHRLD="$SHRLD -shared -Wl,-soname,$SHRLIB" |
---|
[1222] | 4539 | SHRLN="libduchamp.so" |
---|
| 4540 | ;; |
---|
| 4541 | esac |
---|
| 4542 | |
---|
| 4543 | else |
---|
| 4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: Not setting shared library options" >&5 |
---|
| 4545 | $as_echo "$as_me: Not setting shared library options" >&6;} |
---|
| 4546 | SHRLIB= |
---|
| 4547 | SHRFLAGS= |
---|
| 4548 | SHRLD= |
---|
| 4549 | SHRSFX= |
---|
| 4550 | SHRLN= |
---|
| 4551 | fi |
---|
| 4552 | |
---|
| 4553 | |
---|
| 4554 | |
---|
| 4555 | |
---|
| 4556 | |
---|
| 4557 | |
---|
| 4558 | |
---|
[107] | 4559 | # Checks for library functions. |
---|
[788] | 4560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
---|
| 4561 | $as_echo_n "checking for working strtod... " >&6; } |
---|
| 4562 | if ${ac_cv_func_strtod+:} false; then : |
---|
| 4563 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4564 | else |
---|
[788] | 4565 | if test "$cross_compiling" = yes; then : |
---|
[107] | 4566 | ac_cv_func_strtod=no |
---|
| 4567 | else |
---|
[788] | 4568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4569 | /* end confdefs.h. */ |
---|
| 4570 | |
---|
[763] | 4571 | $ac_includes_default |
---|
| 4572 | #ifndef strtod |
---|
[107] | 4573 | double strtod (); |
---|
[763] | 4574 | #endif |
---|
[107] | 4575 | int |
---|
| 4576 | main() |
---|
| 4577 | { |
---|
| 4578 | { |
---|
| 4579 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
---|
| 4580 | char *string = " +69"; |
---|
| 4581 | char *term; |
---|
| 4582 | double value; |
---|
| 4583 | value = strtod (string, &term); |
---|
| 4584 | if (value != 69 || term != (string + 4)) |
---|
[763] | 4585 | return 1; |
---|
[107] | 4586 | } |
---|
| 4587 | |
---|
| 4588 | { |
---|
| 4589 | /* Under Solaris 2.4, strtod returns the wrong value for the |
---|
| 4590 | terminating character under some conditions. */ |
---|
| 4591 | char *string = "NaN"; |
---|
| 4592 | char *term; |
---|
| 4593 | strtod (string, &term); |
---|
| 4594 | if (term != string && *(term - 1) == 0) |
---|
[763] | 4595 | return 1; |
---|
[107] | 4596 | } |
---|
[763] | 4597 | return 0; |
---|
[107] | 4598 | } |
---|
| 4599 | |
---|
| 4600 | _ACEOF |
---|
[788] | 4601 | if ac_fn_c_try_run "$LINENO"; then : |
---|
[107] | 4602 | ac_cv_func_strtod=yes |
---|
| 4603 | else |
---|
[788] | 4604 | ac_cv_func_strtod=no |
---|
[107] | 4605 | fi |
---|
[788] | 4606 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
| 4607 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
[107] | 4608 | fi |
---|
[763] | 4609 | |
---|
[107] | 4610 | fi |
---|
[788] | 4611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 |
---|
| 4612 | $as_echo "$ac_cv_func_strtod" >&6; } |
---|
[107] | 4613 | if test $ac_cv_func_strtod = no; then |
---|
[763] | 4614 | case " $LIBOBJS " in |
---|
[349] | 4615 | *" strtod.$ac_objext "* ) ;; |
---|
[763] | 4616 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
---|
| 4617 | ;; |
---|
[349] | 4618 | esac |
---|
| 4619 | |
---|
[788] | 4620 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
---|
| 4621 | if test "x$ac_cv_func_pow" = xyes; then : |
---|
[349] | 4622 | |
---|
[107] | 4623 | fi |
---|
[763] | 4624 | |
---|
[107] | 4625 | if test $ac_cv_func_pow = no; then |
---|
[788] | 4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 |
---|
| 4627 | $as_echo_n "checking for pow in -lm... " >&6; } |
---|
| 4628 | if ${ac_cv_lib_m_pow+:} false; then : |
---|
| 4629 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4630 | else |
---|
| 4631 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4632 | LIBS="-lm $LIBS" |
---|
[788] | 4633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4634 | /* end confdefs.h. */ |
---|
| 4635 | |
---|
[763] | 4636 | /* Override any GCC internal prototype to avoid an error. |
---|
| 4637 | Use char because int might match the return type of a GCC |
---|
| 4638 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 4639 | #ifdef __cplusplus |
---|
| 4640 | extern "C" |
---|
| 4641 | #endif |
---|
| 4642 | char pow (); |
---|
| 4643 | int |
---|
| 4644 | main () |
---|
| 4645 | { |
---|
[763] | 4646 | return pow (); |
---|
[107] | 4647 | ; |
---|
| 4648 | return 0; |
---|
| 4649 | } |
---|
| 4650 | _ACEOF |
---|
[788] | 4651 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 4652 | ac_cv_lib_m_pow=yes |
---|
| 4653 | else |
---|
[788] | 4654 | ac_cv_lib_m_pow=no |
---|
[107] | 4655 | fi |
---|
[788] | 4656 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 4657 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 4658 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4659 | fi |
---|
[788] | 4660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
---|
| 4661 | $as_echo "$ac_cv_lib_m_pow" >&6; } |
---|
| 4662 | if test "x$ac_cv_lib_m_pow" = xyes; then : |
---|
[107] | 4663 | POW_LIB=-lm |
---|
| 4664 | else |
---|
[788] | 4665 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 |
---|
| 4666 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
---|
[107] | 4667 | fi |
---|
| 4668 | |
---|
| 4669 | fi |
---|
| 4670 | |
---|
| 4671 | fi |
---|
| 4672 | |
---|
| 4673 | for ac_func in floor pow sqrt strtol log atan fabs |
---|
[788] | 4674 | do : |
---|
| 4675 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 4676 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
---|
| 4677 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
---|
[107] | 4678 | cat >>confdefs.h <<_ACEOF |
---|
[788] | 4679 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
[107] | 4680 | _ACEOF |
---|
| 4681 | |
---|
| 4682 | fi |
---|
| 4683 | done |
---|
| 4684 | |
---|
| 4685 | |
---|
| 4686 | # Extra places to look for third-party include files and libraries. |
---|
| 4687 | INCDIRS="$INCDIRS \ |
---|
| 4688 | /usr/include \ |
---|
| 4689 | /usr/local/include \ |
---|
| 4690 | /usr/local/pgplot \ |
---|
| 4691 | /usr/local/cfitsio \ |
---|
| 4692 | /usr/local/wcslib \ |
---|
| 4693 | /local/pgplot \ |
---|
[110] | 4694 | /local/cfitsio \ |
---|
| 4695 | /opt/local/include" |
---|
[107] | 4696 | |
---|
| 4697 | LIBDIRS="$LIBDIRS \ |
---|
| 4698 | /usr/lib \ |
---|
| 4699 | /usr/local/lib \ |
---|
| 4700 | /usr/local/pgplot \ |
---|
| 4701 | /usr/local/cfitsio \ |
---|
| 4702 | /usr/local/wcslib \ |
---|
| 4703 | /local/lib \ |
---|
| 4704 | /local/pgplot \ |
---|
| 4705 | /local/cfitsio \ |
---|
[110] | 4706 | /opt/SUNWspro/lib \ |
---|
| 4707 | /opt/local/lib" |
---|
[107] | 4708 | |
---|
[788] | 4709 | { $as_echo "$as_me:${as_lineno-$LINENO}: LIBDIRS" >&5 |
---|
| 4710 | $as_echo "$as_me: LIBDIRS" >&6;} |
---|
[107] | 4711 | |
---|
| 4712 | for LIBDIR in $LIBDIRS ; do |
---|
[788] | 4713 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR" | $as_tr_sh` |
---|
| 4714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR" >&5 |
---|
| 4715 | $as_echo_n "checking for $LIBDIR... " >&6; } |
---|
| 4716 | if eval \${$as_ac_File+:} false; then : |
---|
| 4717 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4718 | else |
---|
| 4719 | test "$cross_compiling" = yes && |
---|
[788] | 4720 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[107] | 4721 | if test -r "$LIBDIR"; then |
---|
| 4722 | eval "$as_ac_File=yes" |
---|
| 4723 | else |
---|
| 4724 | eval "$as_ac_File=no" |
---|
| 4725 | fi |
---|
| 4726 | fi |
---|
[788] | 4727 | eval ac_res=\$$as_ac_File |
---|
| 4728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 4729 | $as_echo "$ac_res" >&6; } |
---|
| 4730 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[107] | 4731 | LDFLAGS="$LDFLAGS -L$LIBDIR" |
---|
| 4732 | else |
---|
| 4733 | continue |
---|
| 4734 | fi |
---|
| 4735 | |
---|
| 4736 | done |
---|
| 4737 | |
---|
| 4738 | ########################################################################## |
---|
| 4739 | # Search for PGPLOT |
---|
[763] | 4740 | # use --with-pgplot=directory to specify a particular PGPLOT directory. |
---|
[342] | 4741 | # or --without-pgplot or --with-pgplot=no to do without it |
---|
| 4742 | # else do the normal searching for libraries. |
---|
[107] | 4743 | |
---|
[788] | 4744 | { $as_echo "$as_me:${as_lineno-$LINENO}: -- PGPLOT -- " >&5 |
---|
| 4745 | $as_echo "$as_me: -- PGPLOT -- " >&6;} |
---|
[342] | 4746 | |
---|
[763] | 4747 | # Check whether --with-pgplot was given. |
---|
[788] | 4748 | if test "${with_pgplot+set}" = set; then : |
---|
[763] | 4749 | withval=$with_pgplot; |
---|
[342] | 4750 | if test "x$withval" != xno; then |
---|
[788] | 4751 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using directory \"$withval\"" >&5 |
---|
| 4752 | $as_echo "$as_me: Using directory \"$withval\"" >&6;} |
---|
[342] | 4753 | PGPLOTINCDIRS=$withval |
---|
| 4754 | PGPLOTLIBDIRS=$withval |
---|
| 4755 | LDFLAGS="$LDFLAGS -L$withval" |
---|
| 4756 | fi |
---|
| 4757 | |
---|
| 4758 | else |
---|
| 4759 | |
---|
| 4760 | PGPLOTINCDIRS=$INCDIRS |
---|
| 4761 | PGPLOTLIBDIRS=$LIBDIRS |
---|
| 4762 | |
---|
[763] | 4763 | fi |
---|
[342] | 4764 | |
---|
[763] | 4765 | |
---|
[342] | 4766 | if test "x$PGPLOTLIBDIRS" = x; then |
---|
| 4767 | #the argument to --with-pgplot was no, so we don't look for it. |
---|
[788] | 4768 | { $as_echo "$as_me:${as_lineno-$LINENO}: Not enabling PGPLOT use." >&5 |
---|
| 4769 | $as_echo "$as_me: Not enabling PGPLOT use." >&6;} |
---|
[402] | 4770 | #This is the command to do the linking stage of the compilation |
---|
| 4771 | #If no pgplot, we can just link with g++ (or equivalent) |
---|
[384] | 4772 | LINKER=$CXX |
---|
| 4773 | # AC_CHECK_LIB([stdc++], [main], [PGPLOTLIB="-lstdc++"]) |
---|
| 4774 | # if test "x$F77" = xgfortran; then |
---|
| 4775 | # PGPLOTLIB="$PGPLOTLIB -bind_at_load" |
---|
| 4776 | # fi |
---|
[342] | 4777 | else |
---|
| 4778 | |
---|
[347] | 4779 | #Set up the PGPLOT-related libraries and includes. |
---|
| 4780 | |
---|
[342] | 4781 | for INCDIR in $PGPLOTINCDIRS ; do |
---|
[788] | 4782 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR/cpgplot.h" | $as_tr_sh` |
---|
| 4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/cpgplot.h" >&5 |
---|
| 4784 | $as_echo_n "checking for $INCDIR/cpgplot.h... " >&6; } |
---|
| 4785 | if eval \${$as_ac_File+:} false; then : |
---|
| 4786 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4787 | else |
---|
| 4788 | test "$cross_compiling" = yes && |
---|
[788] | 4789 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[107] | 4790 | if test -r "$INCDIR/cpgplot.h"; then |
---|
| 4791 | eval "$as_ac_File=yes" |
---|
| 4792 | else |
---|
| 4793 | eval "$as_ac_File=no" |
---|
| 4794 | fi |
---|
| 4795 | fi |
---|
[788] | 4796 | eval ac_res=\$$as_ac_File |
---|
| 4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 4798 | $as_echo "$ac_res" >&6; } |
---|
| 4799 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[107] | 4800 | PGPLOTINC=-I$INCDIR; break |
---|
| 4801 | fi |
---|
| 4802 | |
---|
[806] | 4803 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR/pgplot/cpgplot.h" | $as_tr_sh` |
---|
| 4804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/pgplot/cpgplot.h" >&5 |
---|
| 4805 | $as_echo_n "checking for $INCDIR/pgplot/cpgplot.h... " >&6; } |
---|
[788] | 4806 | if eval \${$as_ac_File+:} false; then : |
---|
| 4807 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4808 | else |
---|
| 4809 | test "$cross_compiling" = yes && |
---|
[788] | 4810 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[806] | 4811 | if test -r "$INCDIR/pgplot/cpgplot.h"; then |
---|
[107] | 4812 | eval "$as_ac_File=yes" |
---|
| 4813 | else |
---|
| 4814 | eval "$as_ac_File=no" |
---|
| 4815 | fi |
---|
| 4816 | fi |
---|
[788] | 4817 | eval ac_res=\$$as_ac_File |
---|
| 4818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 4819 | $as_echo "$ac_res" >&6; } |
---|
| 4820 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[937] | 4821 | PGPLOTINC=-I$INCDIR/pgplot; break |
---|
[107] | 4822 | fi |
---|
| 4823 | |
---|
[806] | 4824 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR/include/cpgplot.h" | $as_tr_sh` |
---|
| 4825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/include/cpgplot.h" >&5 |
---|
| 4826 | $as_echo_n "checking for $INCDIR/include/cpgplot.h... " >&6; } |
---|
| 4827 | if eval \${$as_ac_File+:} false; then : |
---|
| 4828 | $as_echo_n "(cached) " >&6 |
---|
| 4829 | else |
---|
| 4830 | test "$cross_compiling" = yes && |
---|
| 4831 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
| 4832 | if test -r "$INCDIR/include/cpgplot.h"; then |
---|
| 4833 | eval "$as_ac_File=yes" |
---|
| 4834 | else |
---|
| 4835 | eval "$as_ac_File=no" |
---|
| 4836 | fi |
---|
| 4837 | fi |
---|
| 4838 | eval ac_res=\$$as_ac_File |
---|
| 4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 4840 | $as_echo "$ac_res" >&6; } |
---|
| 4841 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
| 4842 | PGPLOTINC=-I$INCDIR/include; break |
---|
| 4843 | fi |
---|
| 4844 | |
---|
[342] | 4845 | done |
---|
[107] | 4846 | |
---|
[342] | 4847 | # PGPLOT compiled with a SUN compiler but linked with something else. |
---|
[788] | 4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosd in -lsunmath" >&5 |
---|
| 4849 | $as_echo_n "checking for cosd in -lsunmath... " >&6; } |
---|
| 4850 | if ${ac_cv_lib_sunmath_cosd+:} false; then : |
---|
| 4851 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4852 | else |
---|
| 4853 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 4854 | LIBS="-lsunmath $EXTRAPGLIB $LIBS $LIBS" |
---|
[788] | 4855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4856 | /* end confdefs.h. */ |
---|
| 4857 | |
---|
[763] | 4858 | /* Override any GCC internal prototype to avoid an error. |
---|
| 4859 | Use char because int might match the return type of a GCC |
---|
| 4860 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 4861 | #ifdef __cplusplus |
---|
| 4862 | extern "C" |
---|
| 4863 | #endif |
---|
| 4864 | char cosd (); |
---|
| 4865 | int |
---|
| 4866 | main () |
---|
| 4867 | { |
---|
[763] | 4868 | return cosd (); |
---|
[107] | 4869 | ; |
---|
| 4870 | return 0; |
---|
| 4871 | } |
---|
| 4872 | _ACEOF |
---|
[788] | 4873 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 4874 | ac_cv_lib_sunmath_cosd=yes |
---|
| 4875 | else |
---|
[788] | 4876 | ac_cv_lib_sunmath_cosd=no |
---|
[107] | 4877 | fi |
---|
[788] | 4878 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 4879 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 4880 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4881 | fi |
---|
[788] | 4882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_cosd" >&5 |
---|
| 4883 | $as_echo "$ac_cv_lib_sunmath_cosd" >&6; } |
---|
| 4884 | if test "x$ac_cv_lib_sunmath_cosd" = xyes; then : |
---|
[351] | 4885 | EXTRAPGLIB="-lsunmath $EXTRAPGLIB" |
---|
[107] | 4886 | fi |
---|
| 4887 | |
---|
[788] | 4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iand_ in -lM77" >&5 |
---|
| 4889 | $as_echo_n "checking for iand_ in -lM77... " >&6; } |
---|
| 4890 | if ${ac_cv_lib_M77_iand_+:} false; then : |
---|
| 4891 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4892 | else |
---|
| 4893 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 4894 | LIBS="-lM77 $EXTRAPGLIB $LIBS $LIBS" |
---|
[788] | 4895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4896 | /* end confdefs.h. */ |
---|
| 4897 | |
---|
[763] | 4898 | /* Override any GCC internal prototype to avoid an error. |
---|
| 4899 | Use char because int might match the return type of a GCC |
---|
| 4900 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 4901 | #ifdef __cplusplus |
---|
| 4902 | extern "C" |
---|
| 4903 | #endif |
---|
| 4904 | char iand_ (); |
---|
| 4905 | int |
---|
| 4906 | main () |
---|
| 4907 | { |
---|
[763] | 4908 | return iand_ (); |
---|
[107] | 4909 | ; |
---|
| 4910 | return 0; |
---|
| 4911 | } |
---|
| 4912 | _ACEOF |
---|
[788] | 4913 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 4914 | ac_cv_lib_M77_iand_=yes |
---|
| 4915 | else |
---|
[788] | 4916 | ac_cv_lib_M77_iand_=no |
---|
[107] | 4917 | fi |
---|
[788] | 4918 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 4919 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 4920 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4921 | fi |
---|
[788] | 4922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_M77_iand_" >&5 |
---|
| 4923 | $as_echo "$ac_cv_lib_M77_iand_" >&6; } |
---|
| 4924 | if test "x$ac_cv_lib_M77_iand_" = xyes; then : |
---|
[351] | 4925 | EXTRAPGLIB="-lM77 $EXTRAPGLIB" |
---|
[107] | 4926 | fi |
---|
| 4927 | |
---|
[788] | 4928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for f77_init in -lF77" >&5 |
---|
| 4929 | $as_echo_n "checking for f77_init in -lF77... " >&6; } |
---|
| 4930 | if ${ac_cv_lib_F77_f77_init+:} false; then : |
---|
| 4931 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4932 | else |
---|
| 4933 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 4934 | LIBS="-lF77 $EXTRAPGLIB $LIBS $LIBS" |
---|
[788] | 4935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 4936 | /* end confdefs.h. */ |
---|
| 4937 | |
---|
[763] | 4938 | /* Override any GCC internal prototype to avoid an error. |
---|
| 4939 | Use char because int might match the return type of a GCC |
---|
| 4940 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 4941 | #ifdef __cplusplus |
---|
| 4942 | extern "C" |
---|
| 4943 | #endif |
---|
| 4944 | char f77_init (); |
---|
| 4945 | int |
---|
| 4946 | main () |
---|
| 4947 | { |
---|
[763] | 4948 | return f77_init (); |
---|
[107] | 4949 | ; |
---|
| 4950 | return 0; |
---|
| 4951 | } |
---|
| 4952 | _ACEOF |
---|
[788] | 4953 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 4954 | ac_cv_lib_F77_f77_init=yes |
---|
| 4955 | else |
---|
[788] | 4956 | ac_cv_lib_F77_f77_init=no |
---|
[107] | 4957 | fi |
---|
[788] | 4958 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 4959 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 4960 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4961 | fi |
---|
[788] | 4962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_F77_f77_init" >&5 |
---|
| 4963 | $as_echo "$ac_cv_lib_F77_f77_init" >&6; } |
---|
| 4964 | if test "x$ac_cv_lib_F77_f77_init" = xyes; then : |
---|
[351] | 4965 | EXTRAPGLIB="-lF77 $EXTRAPGLIB" |
---|
[107] | 4966 | fi |
---|
| 4967 | |
---|
| 4968 | |
---|
[342] | 4969 | # Search for X11 includes and libraries. |
---|
[788] | 4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
---|
| 4971 | $as_echo_n "checking for X... " >&6; } |
---|
[107] | 4972 | |
---|
| 4973 | |
---|
[763] | 4974 | # Check whether --with-x was given. |
---|
[788] | 4975 | if test "${with_x+set}" = set; then : |
---|
[763] | 4976 | withval=$with_x; |
---|
| 4977 | fi |
---|
[107] | 4978 | |
---|
| 4979 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
---|
| 4980 | if test "x$with_x" = xno; then |
---|
| 4981 | # The user explicitly disabled X. |
---|
| 4982 | have_x=disabled |
---|
| 4983 | else |
---|
[763] | 4984 | case $x_includes,$x_libraries in #( |
---|
[788] | 4985 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
---|
| 4986 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : |
---|
| 4987 | $as_echo_n "(cached) " >&6 |
---|
[107] | 4988 | else |
---|
| 4989 | # One or both of the vars are not set, and there is no cached value. |
---|
| 4990 | ac_x_includes=no ac_x_libraries=no |
---|
[763] | 4991 | rm -f -r conftest.dir |
---|
[107] | 4992 | if mkdir conftest.dir; then |
---|
| 4993 | cd conftest.dir |
---|
| 4994 | cat >Imakefile <<'_ACEOF' |
---|
[763] | 4995 | incroot: |
---|
| 4996 | @echo incroot='${INCROOT}' |
---|
| 4997 | usrlibdir: |
---|
| 4998 | @echo usrlibdir='${USRLIBDIR}' |
---|
| 4999 | libdir: |
---|
| 5000 | @echo libdir='${LIBDIR}' |
---|
[107] | 5001 | _ACEOF |
---|
[763] | 5002 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
---|
[788] | 5003 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
[763] | 5004 | for ac_var in incroot usrlibdir libdir; do |
---|
| 5005 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
---|
| 5006 | done |
---|
[107] | 5007 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
---|
[763] | 5008 | for ac_extension in a so sl dylib la dll; do |
---|
| 5009 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
---|
| 5010 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
---|
[349] | 5011 | ac_im_usrlibdir=$ac_im_libdir; break |
---|
[107] | 5012 | fi |
---|
| 5013 | done |
---|
| 5014 | # Screen out bogus values from the imake configuration. They are |
---|
| 5015 | # bogus both because they are the default anyway, and because |
---|
| 5016 | # using them would break gcc on systems where it needs fixed includes. |
---|
| 5017 | case $ac_im_incroot in |
---|
[763] | 5018 | /usr/include) ac_x_includes= ;; |
---|
[107] | 5019 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
---|
| 5020 | esac |
---|
| 5021 | case $ac_im_usrlibdir in |
---|
[788] | 5022 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
---|
[107] | 5023 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
---|
| 5024 | esac |
---|
| 5025 | fi |
---|
| 5026 | cd .. |
---|
[763] | 5027 | rm -f -r conftest.dir |
---|
[107] | 5028 | fi |
---|
| 5029 | |
---|
| 5030 | # Standard set of common directories for X headers. |
---|
| 5031 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
| 5032 | ac_x_header_dirs=' |
---|
| 5033 | /usr/X11/include |
---|
[788] | 5034 | /usr/X11R7/include |
---|
[107] | 5035 | /usr/X11R6/include |
---|
| 5036 | /usr/X11R5/include |
---|
| 5037 | /usr/X11R4/include |
---|
| 5038 | |
---|
| 5039 | /usr/include/X11 |
---|
[788] | 5040 | /usr/include/X11R7 |
---|
[107] | 5041 | /usr/include/X11R6 |
---|
| 5042 | /usr/include/X11R5 |
---|
| 5043 | /usr/include/X11R4 |
---|
| 5044 | |
---|
| 5045 | /usr/local/X11/include |
---|
[788] | 5046 | /usr/local/X11R7/include |
---|
[107] | 5047 | /usr/local/X11R6/include |
---|
| 5048 | /usr/local/X11R5/include |
---|
| 5049 | /usr/local/X11R4/include |
---|
| 5050 | |
---|
| 5051 | /usr/local/include/X11 |
---|
[788] | 5052 | /usr/local/include/X11R7 |
---|
[107] | 5053 | /usr/local/include/X11R6 |
---|
| 5054 | /usr/local/include/X11R5 |
---|
| 5055 | /usr/local/include/X11R4 |
---|
| 5056 | |
---|
| 5057 | /usr/X386/include |
---|
| 5058 | /usr/x386/include |
---|
| 5059 | /usr/XFree86/include/X11 |
---|
| 5060 | |
---|
| 5061 | /usr/include |
---|
| 5062 | /usr/local/include |
---|
| 5063 | /usr/unsupported/include |
---|
| 5064 | /usr/athena/include |
---|
| 5065 | /usr/local/x11r5/include |
---|
| 5066 | /usr/lpp/Xamples/include |
---|
| 5067 | |
---|
| 5068 | /usr/openwin/include |
---|
| 5069 | /usr/openwin/share/include' |
---|
| 5070 | |
---|
| 5071 | if test "$ac_x_includes" = no; then |
---|
[763] | 5072 | # Guess where to find include files, by looking for Xlib.h. |
---|
[107] | 5073 | # First, try using that file with no special directory specified. |
---|
[788] | 5074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 5075 | /* end confdefs.h. */ |
---|
[763] | 5076 | #include <X11/Xlib.h> |
---|
[107] | 5077 | _ACEOF |
---|
[788] | 5078 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
[107] | 5079 | # We can compile using X headers with no special include directory. |
---|
| 5080 | ac_x_includes= |
---|
| 5081 | else |
---|
| 5082 | for ac_dir in $ac_x_header_dirs; do |
---|
[763] | 5083 | if test -r "$ac_dir/X11/Xlib.h"; then |
---|
[107] | 5084 | ac_x_includes=$ac_dir |
---|
| 5085 | break |
---|
| 5086 | fi |
---|
| 5087 | done |
---|
| 5088 | fi |
---|
[788] | 5089 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
[107] | 5090 | fi # $ac_x_includes = no |
---|
| 5091 | |
---|
| 5092 | if test "$ac_x_libraries" = no; then |
---|
| 5093 | # Check for the libraries. |
---|
| 5094 | # See if we find them without any special options. |
---|
| 5095 | # Don't add to $LIBS permanently. |
---|
| 5096 | ac_save_LIBS=$LIBS |
---|
[763] | 5097 | LIBS="-lX11 $LIBS" |
---|
[788] | 5098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 5099 | /* end confdefs.h. */ |
---|
[763] | 5100 | #include <X11/Xlib.h> |
---|
[107] | 5101 | int |
---|
| 5102 | main () |
---|
| 5103 | { |
---|
[763] | 5104 | XrmInitialize () |
---|
[107] | 5105 | ; |
---|
| 5106 | return 0; |
---|
| 5107 | } |
---|
| 5108 | _ACEOF |
---|
[788] | 5109 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 5110 | LIBS=$ac_save_LIBS |
---|
| 5111 | # We can link X programs with no special library path. |
---|
| 5112 | ac_x_libraries= |
---|
| 5113 | else |
---|
[788] | 5114 | LIBS=$ac_save_LIBS |
---|
| 5115 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
---|
[107] | 5116 | do |
---|
| 5117 | # Don't even attempt the hair of trying to link an X program! |
---|
[763] | 5118 | for ac_extension in a so sl dylib la dll; do |
---|
| 5119 | if test -r "$ac_dir/libX11.$ac_extension"; then |
---|
[107] | 5120 | ac_x_libraries=$ac_dir |
---|
| 5121 | break 2 |
---|
| 5122 | fi |
---|
| 5123 | done |
---|
| 5124 | done |
---|
| 5125 | fi |
---|
[788] | 5126 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5127 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 5128 | fi # $ac_x_libraries = no |
---|
| 5129 | |
---|
[763] | 5130 | case $ac_x_includes,$ac_x_libraries in #( |
---|
| 5131 | no,* | *,no | *\'*) |
---|
| 5132 | # Didn't find X, or a directory has "'" in its name. |
---|
| 5133 | ac_cv_have_x="have_x=no";; #( |
---|
| 5134 | *) |
---|
| 5135 | # Record where we found X for the cache. |
---|
| 5136 | ac_cv_have_x="have_x=yes\ |
---|
| 5137 | ac_x_includes='$ac_x_includes'\ |
---|
| 5138 | ac_x_libraries='$ac_x_libraries'" |
---|
| 5139 | esac |
---|
[107] | 5140 | fi |
---|
[763] | 5141 | ;; #( |
---|
| 5142 | *) have_x=yes;; |
---|
| 5143 | esac |
---|
[107] | 5144 | eval "$ac_cv_have_x" |
---|
| 5145 | fi # $with_x != no |
---|
| 5146 | |
---|
| 5147 | if test "$have_x" != yes; then |
---|
[788] | 5148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
---|
| 5149 | $as_echo "$have_x" >&6; } |
---|
[107] | 5150 | no_x=yes |
---|
| 5151 | else |
---|
| 5152 | # If each of the values was on the command line, it overrides each guess. |
---|
| 5153 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
---|
| 5154 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
---|
| 5155 | # Update the cache value to reflect the command line values. |
---|
[763] | 5156 | ac_cv_have_x="have_x=yes\ |
---|
| 5157 | ac_x_includes='$x_includes'\ |
---|
| 5158 | ac_x_libraries='$x_libraries'" |
---|
[788] | 5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
---|
| 5160 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
---|
[107] | 5161 | fi |
---|
| 5162 | |
---|
[1058] | 5163 | if test "$no_x" = yes; then |
---|
| 5164 | # Not all programs may use this symbol, but it does not hurt to define it. |
---|
| 5165 | |
---|
| 5166 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h |
---|
| 5167 | |
---|
| 5168 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
---|
| 5169 | else |
---|
| 5170 | if test -n "$x_includes"; then |
---|
| 5171 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
---|
| 5172 | fi |
---|
| 5173 | |
---|
| 5174 | # It would also be nice to do this for all -L options, not just this one. |
---|
| 5175 | if test -n "$x_libraries"; then |
---|
| 5176 | X_LIBS="$X_LIBS -L$x_libraries" |
---|
| 5177 | # For Solaris; some versions of Sun CC require a space after -R and |
---|
| 5178 | # others require no space. Words are not sufficient . . . . |
---|
| 5179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 |
---|
| 5180 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
---|
| 5181 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
---|
| 5182 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
---|
| 5183 | ac_c_werror_flag=yes |
---|
| 5184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5185 | /* end confdefs.h. */ |
---|
| 5186 | |
---|
| 5187 | int |
---|
| 5188 | main () |
---|
| 5189 | { |
---|
| 5190 | |
---|
| 5191 | ; |
---|
| 5192 | return 0; |
---|
| 5193 | } |
---|
| 5194 | _ACEOF |
---|
| 5195 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 5197 | $as_echo "no" >&6; } |
---|
| 5198 | X_LIBS="$X_LIBS -R$x_libraries" |
---|
| 5199 | else |
---|
| 5200 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
---|
| 5201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5202 | /* end confdefs.h. */ |
---|
| 5203 | |
---|
| 5204 | int |
---|
| 5205 | main () |
---|
| 5206 | { |
---|
| 5207 | |
---|
| 5208 | ; |
---|
| 5209 | return 0; |
---|
| 5210 | } |
---|
| 5211 | _ACEOF |
---|
| 5212 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
| 5214 | $as_echo "yes" >&6; } |
---|
| 5215 | X_LIBS="$X_LIBS -R $x_libraries" |
---|
| 5216 | else |
---|
| 5217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
---|
| 5218 | $as_echo "neither works" >&6; } |
---|
| 5219 | fi |
---|
| 5220 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5221 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5222 | fi |
---|
| 5223 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5224 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5225 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
---|
| 5226 | LIBS=$ac_xsave_LIBS |
---|
| 5227 | fi |
---|
| 5228 | |
---|
| 5229 | # Check for system-dependent libraries X programs must link with. |
---|
| 5230 | # Do this before checking for the system-independent R6 libraries |
---|
| 5231 | # (-lICE), since we may need -lsocket or whatever for X linking. |
---|
| 5232 | |
---|
| 5233 | if test "$ISC" = yes; then |
---|
| 5234 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
---|
| 5235 | else |
---|
| 5236 | # Martyn Johnson says this is needed for Ultrix, if the X |
---|
| 5237 | # libraries were built with DECnet support. And Karl Berry says |
---|
| 5238 | # the Alpha needs dnet_stub (dnet does not exist). |
---|
| 5239 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
---|
| 5240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5241 | /* end confdefs.h. */ |
---|
| 5242 | |
---|
| 5243 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5244 | Use char because int might match the return type of a GCC |
---|
| 5245 | builtin and then its argument prototype would still apply. */ |
---|
| 5246 | #ifdef __cplusplus |
---|
| 5247 | extern "C" |
---|
| 5248 | #endif |
---|
| 5249 | char XOpenDisplay (); |
---|
| 5250 | int |
---|
| 5251 | main () |
---|
| 5252 | { |
---|
| 5253 | return XOpenDisplay (); |
---|
| 5254 | ; |
---|
| 5255 | return 0; |
---|
| 5256 | } |
---|
| 5257 | _ACEOF |
---|
| 5258 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5259 | |
---|
| 5260 | else |
---|
| 5261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
---|
| 5262 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
---|
| 5263 | if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : |
---|
| 5264 | $as_echo_n "(cached) " >&6 |
---|
| 5265 | else |
---|
| 5266 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5267 | LIBS="-ldnet $LIBS" |
---|
| 5268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5269 | /* end confdefs.h. */ |
---|
| 5270 | |
---|
| 5271 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5272 | Use char because int might match the return type of a GCC |
---|
| 5273 | builtin and then its argument prototype would still apply. */ |
---|
| 5274 | #ifdef __cplusplus |
---|
| 5275 | extern "C" |
---|
| 5276 | #endif |
---|
| 5277 | char dnet_ntoa (); |
---|
| 5278 | int |
---|
| 5279 | main () |
---|
| 5280 | { |
---|
| 5281 | return dnet_ntoa (); |
---|
| 5282 | ; |
---|
| 5283 | return 0; |
---|
| 5284 | } |
---|
| 5285 | _ACEOF |
---|
| 5286 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5287 | ac_cv_lib_dnet_dnet_ntoa=yes |
---|
| 5288 | else |
---|
| 5289 | ac_cv_lib_dnet_dnet_ntoa=no |
---|
| 5290 | fi |
---|
| 5291 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5292 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5293 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5294 | fi |
---|
| 5295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
---|
| 5296 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
---|
| 5297 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : |
---|
| 5298 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
---|
| 5299 | fi |
---|
| 5300 | |
---|
| 5301 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
---|
| 5302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 |
---|
| 5303 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
---|
| 5304 | if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : |
---|
| 5305 | $as_echo_n "(cached) " >&6 |
---|
| 5306 | else |
---|
| 5307 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5308 | LIBS="-ldnet_stub $LIBS" |
---|
| 5309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5310 | /* end confdefs.h. */ |
---|
| 5311 | |
---|
| 5312 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5313 | Use char because int might match the return type of a GCC |
---|
| 5314 | builtin and then its argument prototype would still apply. */ |
---|
| 5315 | #ifdef __cplusplus |
---|
| 5316 | extern "C" |
---|
| 5317 | #endif |
---|
| 5318 | char dnet_ntoa (); |
---|
| 5319 | int |
---|
| 5320 | main () |
---|
| 5321 | { |
---|
| 5322 | return dnet_ntoa (); |
---|
| 5323 | ; |
---|
| 5324 | return 0; |
---|
| 5325 | } |
---|
| 5326 | _ACEOF |
---|
| 5327 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5328 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
---|
| 5329 | else |
---|
| 5330 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
---|
| 5331 | fi |
---|
| 5332 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5333 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5334 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5335 | fi |
---|
| 5336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
---|
| 5337 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
---|
| 5338 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : |
---|
| 5339 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
---|
| 5340 | fi |
---|
| 5341 | |
---|
| 5342 | fi |
---|
| 5343 | fi |
---|
| 5344 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5345 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5346 | LIBS="$ac_xsave_LIBS" |
---|
| 5347 | |
---|
| 5348 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
---|
| 5349 | # to get the SysV transport functions. |
---|
| 5350 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
---|
| 5351 | # needs -lnsl. |
---|
| 5352 | # The nsl library prevents programs from opening the X display |
---|
| 5353 | # on Irix 5.2, according to T.E. Dickey. |
---|
| 5354 | # The functions gethostbyname, getservbyname, and inet_addr are |
---|
| 5355 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
---|
| 5356 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
---|
| 5357 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
---|
| 5358 | |
---|
| 5359 | fi |
---|
| 5360 | |
---|
| 5361 | if test $ac_cv_func_gethostbyname = no; then |
---|
| 5362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
---|
| 5363 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
---|
| 5364 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : |
---|
| 5365 | $as_echo_n "(cached) " >&6 |
---|
| 5366 | else |
---|
| 5367 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5368 | LIBS="-lnsl $LIBS" |
---|
| 5369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5370 | /* end confdefs.h. */ |
---|
| 5371 | |
---|
| 5372 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5373 | Use char because int might match the return type of a GCC |
---|
| 5374 | builtin and then its argument prototype would still apply. */ |
---|
| 5375 | #ifdef __cplusplus |
---|
| 5376 | extern "C" |
---|
| 5377 | #endif |
---|
| 5378 | char gethostbyname (); |
---|
| 5379 | int |
---|
| 5380 | main () |
---|
| 5381 | { |
---|
| 5382 | return gethostbyname (); |
---|
| 5383 | ; |
---|
| 5384 | return 0; |
---|
| 5385 | } |
---|
| 5386 | _ACEOF |
---|
| 5387 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5388 | ac_cv_lib_nsl_gethostbyname=yes |
---|
| 5389 | else |
---|
| 5390 | ac_cv_lib_nsl_gethostbyname=no |
---|
| 5391 | fi |
---|
| 5392 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5393 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5394 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5395 | fi |
---|
| 5396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
---|
| 5397 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
---|
| 5398 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : |
---|
| 5399 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
---|
| 5400 | fi |
---|
| 5401 | |
---|
| 5402 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
---|
| 5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
---|
| 5404 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
---|
| 5405 | if ${ac_cv_lib_bsd_gethostbyname+:} false; then : |
---|
| 5406 | $as_echo_n "(cached) " >&6 |
---|
| 5407 | else |
---|
| 5408 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5409 | LIBS="-lbsd $LIBS" |
---|
| 5410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5411 | /* end confdefs.h. */ |
---|
| 5412 | |
---|
| 5413 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5414 | Use char because int might match the return type of a GCC |
---|
| 5415 | builtin and then its argument prototype would still apply. */ |
---|
| 5416 | #ifdef __cplusplus |
---|
| 5417 | extern "C" |
---|
| 5418 | #endif |
---|
| 5419 | char gethostbyname (); |
---|
| 5420 | int |
---|
| 5421 | main () |
---|
| 5422 | { |
---|
| 5423 | return gethostbyname (); |
---|
| 5424 | ; |
---|
| 5425 | return 0; |
---|
| 5426 | } |
---|
| 5427 | _ACEOF |
---|
| 5428 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5429 | ac_cv_lib_bsd_gethostbyname=yes |
---|
| 5430 | else |
---|
| 5431 | ac_cv_lib_bsd_gethostbyname=no |
---|
| 5432 | fi |
---|
| 5433 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5434 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5435 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5436 | fi |
---|
| 5437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
---|
| 5438 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
---|
| 5439 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : |
---|
| 5440 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
---|
| 5441 | fi |
---|
| 5442 | |
---|
| 5443 | fi |
---|
| 5444 | fi |
---|
| 5445 | |
---|
| 5446 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
---|
| 5447 | # socket/setsockopt and other routines are undefined under SCO ODT |
---|
| 5448 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
---|
| 5449 | # on later versions), says Simon Leinen: it contains gethostby* |
---|
| 5450 | # variants that don't use the name server (or something). -lsocket |
---|
| 5451 | # must be given before -lnsl if both are needed. We assume that |
---|
| 5452 | # if connect needs -lnsl, so does gethostbyname. |
---|
| 5453 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
---|
| 5454 | if test "x$ac_cv_func_connect" = xyes; then : |
---|
| 5455 | |
---|
| 5456 | fi |
---|
| 5457 | |
---|
| 5458 | if test $ac_cv_func_connect = no; then |
---|
| 5459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
---|
| 5460 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
---|
| 5461 | if ${ac_cv_lib_socket_connect+:} false; then : |
---|
| 5462 | $as_echo_n "(cached) " >&6 |
---|
| 5463 | else |
---|
| 5464 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5465 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
---|
| 5466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5467 | /* end confdefs.h. */ |
---|
| 5468 | |
---|
| 5469 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5470 | Use char because int might match the return type of a GCC |
---|
| 5471 | builtin and then its argument prototype would still apply. */ |
---|
| 5472 | #ifdef __cplusplus |
---|
| 5473 | extern "C" |
---|
| 5474 | #endif |
---|
| 5475 | char connect (); |
---|
| 5476 | int |
---|
| 5477 | main () |
---|
| 5478 | { |
---|
| 5479 | return connect (); |
---|
| 5480 | ; |
---|
| 5481 | return 0; |
---|
| 5482 | } |
---|
| 5483 | _ACEOF |
---|
| 5484 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5485 | ac_cv_lib_socket_connect=yes |
---|
| 5486 | else |
---|
| 5487 | ac_cv_lib_socket_connect=no |
---|
| 5488 | fi |
---|
| 5489 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5490 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5491 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5492 | fi |
---|
| 5493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
---|
| 5494 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
---|
| 5495 | if test "x$ac_cv_lib_socket_connect" = xyes; then : |
---|
| 5496 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
---|
| 5497 | fi |
---|
| 5498 | |
---|
| 5499 | fi |
---|
| 5500 | |
---|
| 5501 | # Guillermo Gomez says -lposix is necessary on A/UX. |
---|
| 5502 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
---|
| 5503 | if test "x$ac_cv_func_remove" = xyes; then : |
---|
| 5504 | |
---|
| 5505 | fi |
---|
| 5506 | |
---|
| 5507 | if test $ac_cv_func_remove = no; then |
---|
| 5508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
---|
| 5509 | $as_echo_n "checking for remove in -lposix... " >&6; } |
---|
| 5510 | if ${ac_cv_lib_posix_remove+:} false; then : |
---|
| 5511 | $as_echo_n "(cached) " >&6 |
---|
| 5512 | else |
---|
| 5513 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5514 | LIBS="-lposix $LIBS" |
---|
| 5515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5516 | /* end confdefs.h. */ |
---|
| 5517 | |
---|
| 5518 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5519 | Use char because int might match the return type of a GCC |
---|
| 5520 | builtin and then its argument prototype would still apply. */ |
---|
| 5521 | #ifdef __cplusplus |
---|
| 5522 | extern "C" |
---|
| 5523 | #endif |
---|
| 5524 | char remove (); |
---|
| 5525 | int |
---|
| 5526 | main () |
---|
| 5527 | { |
---|
| 5528 | return remove (); |
---|
| 5529 | ; |
---|
| 5530 | return 0; |
---|
| 5531 | } |
---|
| 5532 | _ACEOF |
---|
| 5533 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5534 | ac_cv_lib_posix_remove=yes |
---|
| 5535 | else |
---|
| 5536 | ac_cv_lib_posix_remove=no |
---|
| 5537 | fi |
---|
| 5538 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5539 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5540 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5541 | fi |
---|
| 5542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 |
---|
| 5543 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
---|
| 5544 | if test "x$ac_cv_lib_posix_remove" = xyes; then : |
---|
| 5545 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
---|
| 5546 | fi |
---|
| 5547 | |
---|
| 5548 | fi |
---|
| 5549 | |
---|
| 5550 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
---|
| 5551 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
---|
| 5552 | if test "x$ac_cv_func_shmat" = xyes; then : |
---|
| 5553 | |
---|
| 5554 | fi |
---|
| 5555 | |
---|
| 5556 | if test $ac_cv_func_shmat = no; then |
---|
| 5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
---|
| 5558 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
---|
| 5559 | if ${ac_cv_lib_ipc_shmat+:} false; then : |
---|
| 5560 | $as_echo_n "(cached) " >&6 |
---|
| 5561 | else |
---|
| 5562 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5563 | LIBS="-lipc $LIBS" |
---|
| 5564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5565 | /* end confdefs.h. */ |
---|
| 5566 | |
---|
| 5567 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5568 | Use char because int might match the return type of a GCC |
---|
| 5569 | builtin and then its argument prototype would still apply. */ |
---|
| 5570 | #ifdef __cplusplus |
---|
| 5571 | extern "C" |
---|
| 5572 | #endif |
---|
| 5573 | char shmat (); |
---|
| 5574 | int |
---|
| 5575 | main () |
---|
| 5576 | { |
---|
| 5577 | return shmat (); |
---|
| 5578 | ; |
---|
| 5579 | return 0; |
---|
| 5580 | } |
---|
| 5581 | _ACEOF |
---|
| 5582 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5583 | ac_cv_lib_ipc_shmat=yes |
---|
| 5584 | else |
---|
| 5585 | ac_cv_lib_ipc_shmat=no |
---|
| 5586 | fi |
---|
| 5587 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5588 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5589 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5590 | fi |
---|
| 5591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 |
---|
| 5592 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
---|
| 5593 | if test "x$ac_cv_lib_ipc_shmat" = xyes; then : |
---|
| 5594 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
---|
| 5595 | fi |
---|
| 5596 | |
---|
| 5597 | fi |
---|
| 5598 | fi |
---|
| 5599 | |
---|
| 5600 | # Check for libraries that X11R6 Xt/Xaw programs need. |
---|
| 5601 | ac_save_LDFLAGS=$LDFLAGS |
---|
| 5602 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
---|
| 5603 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
---|
| 5604 | # check for ICE first), but we must link in the order -lSM -lICE or |
---|
| 5605 | # we get undefined symbols. So assume we have SM if we have ICE. |
---|
| 5606 | # These have to be linked with before -lX11, unlike the other |
---|
| 5607 | # libraries we check for below, so use a different variable. |
---|
| 5608 | # John Interrante, Karl Berry |
---|
| 5609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
---|
| 5610 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
---|
| 5611 | if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : |
---|
| 5612 | $as_echo_n "(cached) " >&6 |
---|
| 5613 | else |
---|
| 5614 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5615 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
---|
| 5616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5617 | /* end confdefs.h. */ |
---|
| 5618 | |
---|
| 5619 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5620 | Use char because int might match the return type of a GCC |
---|
| 5621 | builtin and then its argument prototype would still apply. */ |
---|
| 5622 | #ifdef __cplusplus |
---|
| 5623 | extern "C" |
---|
| 5624 | #endif |
---|
| 5625 | char IceConnectionNumber (); |
---|
| 5626 | int |
---|
| 5627 | main () |
---|
| 5628 | { |
---|
| 5629 | return IceConnectionNumber (); |
---|
| 5630 | ; |
---|
| 5631 | return 0; |
---|
| 5632 | } |
---|
| 5633 | _ACEOF |
---|
| 5634 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5635 | ac_cv_lib_ICE_IceConnectionNumber=yes |
---|
| 5636 | else |
---|
| 5637 | ac_cv_lib_ICE_IceConnectionNumber=no |
---|
| 5638 | fi |
---|
| 5639 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5640 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5641 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5642 | fi |
---|
| 5643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
---|
| 5644 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
---|
| 5645 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : |
---|
| 5646 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
---|
| 5647 | fi |
---|
| 5648 | |
---|
| 5649 | LDFLAGS=$ac_save_LDFLAGS |
---|
| 5650 | |
---|
| 5651 | fi |
---|
| 5652 | |
---|
[1060] | 5653 | ## AC_PATH_X |
---|
[788] | 5654 | { $as_echo "$as_me:${as_lineno-$LINENO}: X-library search yielded X_CFLAGS=$X_CFLAGS, X_LIBS=$X_LIBS, X_EXTRA_LIBS=$X_EXTRA_LIBS, X_PRE_LIBS=$X_PRE_LIBS" >&5 |
---|
| 5655 | $as_echo "$as_me: X-library search yielded X_CFLAGS=$X_CFLAGS, X_LIBS=$X_LIBS, X_EXTRA_LIBS=$X_EXTRA_LIBS, X_PRE_LIBS=$X_PRE_LIBS" >&6;} |
---|
[529] | 5656 | # returns C compiler flags needed for X to X_CFLAGS and the X linker flags to X_LIBS |
---|
[501] | 5657 | if test "x$X_LIBS" != x; then |
---|
| 5658 | LDFLAGS="$LDFLAGS $X_LIBS" |
---|
[765] | 5659 | EXTRAPGLIB="$X_LIBS $X_PRE_LIBS -lX11 $EXTRAPGLIB" |
---|
[501] | 5660 | fi |
---|
| 5661 | |
---|
[351] | 5662 | # # Add pgplot libraries, if they exist to the lib path |
---|
| 5663 | # for LIBDIR in $PGPLOTLIBDIRS ; do |
---|
| 5664 | # AC_CHECK_FILE([$LIBDIR/libcpgplot.a], [PGPLOTLIB="-L$LIBDIR $PGPLOTLIB"; break]) |
---|
| 5665 | # done |
---|
| 5666 | |
---|
[342] | 5667 | # It is possible that other libraries may be required depending on what |
---|
| 5668 | # graphics drivers were installed with PGPLOT. |
---|
[788] | 5669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
---|
| 5670 | $as_echo_n "checking for deflate in -lz... " >&6; } |
---|
| 5671 | if ${ac_cv_lib_z_deflate+:} false; then : |
---|
| 5672 | $as_echo_n "(cached) " >&6 |
---|
[107] | 5673 | else |
---|
| 5674 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 5675 | LIBS="-lz $EXTRAPGLIB $LIBS $LIBS" |
---|
[788] | 5676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 5677 | /* end confdefs.h. */ |
---|
| 5678 | |
---|
[763] | 5679 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5680 | Use char because int might match the return type of a GCC |
---|
| 5681 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 5682 | #ifdef __cplusplus |
---|
| 5683 | extern "C" |
---|
| 5684 | #endif |
---|
| 5685 | char deflate (); |
---|
| 5686 | int |
---|
| 5687 | main () |
---|
| 5688 | { |
---|
[763] | 5689 | return deflate (); |
---|
[107] | 5690 | ; |
---|
| 5691 | return 0; |
---|
| 5692 | } |
---|
| 5693 | _ACEOF |
---|
[788] | 5694 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 5695 | ac_cv_lib_z_deflate=yes |
---|
| 5696 | else |
---|
[788] | 5697 | ac_cv_lib_z_deflate=no |
---|
[107] | 5698 | fi |
---|
[788] | 5699 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5700 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 5701 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5702 | fi |
---|
[788] | 5703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 |
---|
| 5704 | $as_echo "$ac_cv_lib_z_deflate" >&6; } |
---|
| 5705 | if test "x$ac_cv_lib_z_deflate" = xyes; then : |
---|
[351] | 5706 | EXTRAPGLIB="$EXTRAPGLIB -lz" |
---|
[107] | 5707 | fi |
---|
| 5708 | |
---|
[788] | 5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_error in -lpng" >&5 |
---|
| 5710 | $as_echo_n "checking for png_error in -lpng... " >&6; } |
---|
| 5711 | if ${ac_cv_lib_png_png_error+:} false; then : |
---|
| 5712 | $as_echo_n "(cached) " >&6 |
---|
[107] | 5713 | else |
---|
| 5714 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 5715 | LIBS="-lpng $EXTRAPGLIB $LIBS $LIBS" |
---|
[788] | 5716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 5717 | /* end confdefs.h. */ |
---|
| 5718 | |
---|
[763] | 5719 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5720 | Use char because int might match the return type of a GCC |
---|
| 5721 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 5722 | #ifdef __cplusplus |
---|
| 5723 | extern "C" |
---|
| 5724 | #endif |
---|
| 5725 | char png_error (); |
---|
| 5726 | int |
---|
| 5727 | main () |
---|
| 5728 | { |
---|
[763] | 5729 | return png_error (); |
---|
[107] | 5730 | ; |
---|
| 5731 | return 0; |
---|
| 5732 | } |
---|
| 5733 | _ACEOF |
---|
[788] | 5734 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 5735 | ac_cv_lib_png_png_error=yes |
---|
| 5736 | else |
---|
[788] | 5737 | ac_cv_lib_png_png_error=no |
---|
[107] | 5738 | fi |
---|
[788] | 5739 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5740 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 5741 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5742 | fi |
---|
[788] | 5743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_error" >&5 |
---|
| 5744 | $as_echo "$ac_cv_lib_png_png_error" >&6; } |
---|
| 5745 | if test "x$ac_cv_lib_png_png_error" = xyes; then : |
---|
[351] | 5746 | EXTRAPGLIB="$EXTRAPGLIB -lpng" |
---|
[107] | 5747 | fi |
---|
| 5748 | |
---|
[351] | 5749 | |
---|
| 5750 | ac_ext=f |
---|
| 5751 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
| 5752 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 5753 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
| 5754 | |
---|
| 5755 | |
---|
[788] | 5756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pgopen in -lpgplot" >&5 |
---|
| 5757 | $as_echo_n "checking for pgopen in -lpgplot... " >&6; } |
---|
| 5758 | if ${ac_cv_lib_pgplot_pgopen+:} false; then : |
---|
| 5759 | $as_echo_n "(cached) " >&6 |
---|
[107] | 5760 | else |
---|
| 5761 | ac_check_lib_save_LIBS=$LIBS |
---|
[352] | 5762 | LIBS="-lpgplot $PGPLOTLIB $EXTRAPGLIB $LIBS" |
---|
[788] | 5763 | cat > conftest.$ac_ext <<_ACEOF |
---|
[351] | 5764 | program main |
---|
| 5765 | call pgopen |
---|
| 5766 | end |
---|
[107] | 5767 | _ACEOF |
---|
[788] | 5768 | if ac_fn_f77_try_link "$LINENO"; then : |
---|
[351] | 5769 | ac_cv_lib_pgplot_pgopen=yes |
---|
[107] | 5770 | else |
---|
[788] | 5771 | ac_cv_lib_pgplot_pgopen=no |
---|
[107] | 5772 | fi |
---|
[788] | 5773 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5774 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 5775 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5776 | fi |
---|
[788] | 5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pgplot_pgopen" >&5 |
---|
| 5778 | $as_echo "$ac_cv_lib_pgplot_pgopen" >&6; } |
---|
| 5779 | if test "x$ac_cv_lib_pgplot_pgopen" = xyes; then : |
---|
[351] | 5780 | PGPLOTLIB="-lpgplot" |
---|
[107] | 5781 | fi |
---|
| 5782 | |
---|
[351] | 5783 | ac_ext=c |
---|
| 5784 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 5785 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 5786 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 5787 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 5788 | |
---|
[352] | 5789 | # Checks for extra libraries needed by PGPLOT -- will add -lg2c -lstdc++ to $LIBS |
---|
[788] | 5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gerror_ in -lg2c" >&5 |
---|
| 5791 | $as_echo_n "checking for gerror_ in -lg2c... " >&6; } |
---|
| 5792 | if ${ac_cv_lib_g2c_gerror_+:} false; then : |
---|
| 5793 | $as_echo_n "(cached) " >&6 |
---|
[352] | 5794 | else |
---|
| 5795 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5796 | LIBS="-lg2c $LIBS" |
---|
[788] | 5797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[352] | 5798 | /* end confdefs.h. */ |
---|
| 5799 | |
---|
[763] | 5800 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5801 | Use char because int might match the return type of a GCC |
---|
| 5802 | builtin and then its argument prototype would still apply. */ |
---|
[352] | 5803 | #ifdef __cplusplus |
---|
| 5804 | extern "C" |
---|
| 5805 | #endif |
---|
| 5806 | char gerror_ (); |
---|
| 5807 | int |
---|
| 5808 | main () |
---|
| 5809 | { |
---|
[763] | 5810 | return gerror_ (); |
---|
[352] | 5811 | ; |
---|
| 5812 | return 0; |
---|
| 5813 | } |
---|
| 5814 | _ACEOF |
---|
[788] | 5815 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[352] | 5816 | ac_cv_lib_g2c_gerror_=yes |
---|
| 5817 | else |
---|
[788] | 5818 | ac_cv_lib_g2c_gerror_=no |
---|
[352] | 5819 | fi |
---|
[788] | 5820 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5821 | conftest$ac_exeext conftest.$ac_ext |
---|
[352] | 5822 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5823 | fi |
---|
[788] | 5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g2c_gerror_" >&5 |
---|
| 5825 | $as_echo "$ac_cv_lib_g2c_gerror_" >&6; } |
---|
| 5826 | if test "x$ac_cv_lib_g2c_gerror_" = xyes; then : |
---|
[352] | 5827 | cat >>confdefs.h <<_ACEOF |
---|
| 5828 | #define HAVE_LIBG2C 1 |
---|
| 5829 | _ACEOF |
---|
| 5830 | |
---|
| 5831 | LIBS="-lg2c $LIBS" |
---|
| 5832 | |
---|
| 5833 | fi |
---|
| 5834 | |
---|
[788] | 5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5 |
---|
| 5836 | $as_echo_n "checking for main in -lstdc++... " >&6; } |
---|
| 5837 | if ${ac_cv_lib_stdcpp_main+:} false; then : |
---|
| 5838 | $as_echo_n "(cached) " >&6 |
---|
[352] | 5839 | else |
---|
| 5840 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5841 | LIBS="-lstdc++ $LIBS" |
---|
[788] | 5842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[352] | 5843 | /* end confdefs.h. */ |
---|
| 5844 | |
---|
| 5845 | |
---|
| 5846 | int |
---|
| 5847 | main () |
---|
| 5848 | { |
---|
[763] | 5849 | return main (); |
---|
[352] | 5850 | ; |
---|
| 5851 | return 0; |
---|
| 5852 | } |
---|
| 5853 | _ACEOF |
---|
[788] | 5854 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[352] | 5855 | ac_cv_lib_stdcpp_main=yes |
---|
| 5856 | else |
---|
[788] | 5857 | ac_cv_lib_stdcpp_main=no |
---|
[352] | 5858 | fi |
---|
[788] | 5859 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5860 | conftest$ac_exeext conftest.$ac_ext |
---|
[352] | 5861 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5862 | fi |
---|
[788] | 5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5 |
---|
| 5864 | $as_echo "$ac_cv_lib_stdcpp_main" >&6; } |
---|
| 5865 | if test "x$ac_cv_lib_stdcpp_main" = xyes; then : |
---|
[352] | 5866 | cat >>confdefs.h <<_ACEOF |
---|
| 5867 | #define HAVE_LIBSTDC__ 1 |
---|
| 5868 | _ACEOF |
---|
| 5869 | |
---|
| 5870 | LIBS="-lstdc++ $LIBS" |
---|
| 5871 | |
---|
| 5872 | fi |
---|
| 5873 | |
---|
[351] | 5874 | if test "x$F77" = xgfortran; then |
---|
| 5875 | PGPLOTLIB="-lcpgplot $PGPLOTLIB" |
---|
[788] | 5876 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using gfortran, so manually adding -lcpgplot to PGPLOTLIB string." >&5 |
---|
| 5877 | $as_echo "$as_me: Using gfortran, so manually adding -lcpgplot to PGPLOTLIB string." >&6;} |
---|
[351] | 5878 | else |
---|
[788] | 5879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpgopen in -lcpgplot" >&5 |
---|
| 5880 | $as_echo_n "checking for cpgopen in -lcpgplot... " >&6; } |
---|
| 5881 | if ${ac_cv_lib_cpgplot_cpgopen+:} false; then : |
---|
| 5882 | $as_echo_n "(cached) " >&6 |
---|
[107] | 5883 | else |
---|
| 5884 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 5885 | LIBS="-lcpgplot $PGPLOTLIB $LIBS $EXTRAPGLIB $LIBS" |
---|
[788] | 5886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 5887 | /* end confdefs.h. */ |
---|
| 5888 | |
---|
[763] | 5889 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5890 | Use char because int might match the return type of a GCC |
---|
| 5891 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 5892 | #ifdef __cplusplus |
---|
| 5893 | extern "C" |
---|
| 5894 | #endif |
---|
| 5895 | char cpgopen (); |
---|
| 5896 | int |
---|
| 5897 | main () |
---|
| 5898 | { |
---|
[763] | 5899 | return cpgopen (); |
---|
[107] | 5900 | ; |
---|
| 5901 | return 0; |
---|
| 5902 | } |
---|
| 5903 | _ACEOF |
---|
[788] | 5904 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 5905 | ac_cv_lib_cpgplot_cpgopen=yes |
---|
| 5906 | else |
---|
[788] | 5907 | ac_cv_lib_cpgplot_cpgopen=no |
---|
[107] | 5908 | fi |
---|
[788] | 5909 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5910 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 5911 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5912 | fi |
---|
[788] | 5913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpgplot_cpgopen" >&5 |
---|
| 5914 | $as_echo "$ac_cv_lib_cpgplot_cpgopen" >&6; } |
---|
| 5915 | if test "x$ac_cv_lib_cpgplot_cpgopen" = xyes; then : |
---|
[107] | 5916 | PGPLOTLIB="-lcpgplot $PGPLOTLIB" |
---|
| 5917 | fi |
---|
| 5918 | |
---|
[351] | 5919 | fi |
---|
[107] | 5920 | |
---|
[342] | 5921 | # If PGPLOT is not present, we give a warning message but still continue. |
---|
| 5922 | # The compilation is able to work without the PGPLOT-dependent files. |
---|
| 5923 | if test "x$PGPLOTLIB" = x; then |
---|
[788] | 5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: |
---|
[342] | 5925 | ------------------------------------------------------- |
---|
| 5926 | WARNING! PGPLOT could not be found. |
---|
| 5927 | Compiling Duchamp without graphics capabilities. |
---|
| 5928 | -------------------------------------------------------" >&5 |
---|
[788] | 5929 | $as_echo "$as_me: |
---|
[342] | 5930 | ------------------------------------------------------- |
---|
| 5931 | WARNING! PGPLOT could not be found. |
---|
| 5932 | Compiling Duchamp without graphics capabilities. |
---|
| 5933 | -------------------------------------------------------" >&6;} |
---|
[402] | 5934 | #We have no pgplot, so we just link with g++ (or equivalent) |
---|
| 5935 | LINKER=$CXX |
---|
[342] | 5936 | else |
---|
[402] | 5937 | #We are using pgplot, so link with the fortran compiler. |
---|
| 5938 | LINKER=$F77 |
---|
[351] | 5939 | PGPLOTLIB="$PGPLOTLIB $EXTRAPGLIB $LIBS" |
---|
[788] | 5940 | { $as_echo "$as_me:${as_lineno-$LINENO}: PGPLOT appears to be available." >&5 |
---|
| 5941 | $as_echo "$as_me: PGPLOT appears to be available." >&6;} |
---|
[107] | 5942 | |
---|
[788] | 5943 | $as_echo "#define HAVE_PGPLOT 1" >>confdefs.h |
---|
[107] | 5944 | |
---|
[342] | 5945 | for LIBDIR in $PGPLOTLIBDIRS ; do |
---|
[788] | 5946 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/libcpgplot.a" | $as_tr_sh` |
---|
| 5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/libcpgplot.a" >&5 |
---|
| 5948 | $as_echo_n "checking for $LIBDIR/libcpgplot.a... " >&6; } |
---|
| 5949 | if eval \${$as_ac_File+:} false; then : |
---|
| 5950 | $as_echo_n "(cached) " >&6 |
---|
[342] | 5951 | else |
---|
| 5952 | test "$cross_compiling" = yes && |
---|
[788] | 5953 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[342] | 5954 | if test -r "$LIBDIR/libcpgplot.a"; then |
---|
| 5955 | eval "$as_ac_File=yes" |
---|
| 5956 | else |
---|
| 5957 | eval "$as_ac_File=no" |
---|
[107] | 5958 | fi |
---|
[342] | 5959 | fi |
---|
[788] | 5960 | eval ac_res=\$$as_ac_File |
---|
| 5961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 5962 | $as_echo "$ac_res" >&6; } |
---|
| 5963 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[342] | 5964 | PGPLOTLIB="-L$LIBDIR $PGPLOTLIB"; break |
---|
| 5965 | fi |
---|
[107] | 5966 | |
---|
[806] | 5967 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/lib/libcpgplot.a" | $as_tr_sh` |
---|
| 5968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/lib/libcpgplot.a" >&5 |
---|
| 5969 | $as_echo_n "checking for $LIBDIR/lib/libcpgplot.a... " >&6; } |
---|
| 5970 | if eval \${$as_ac_File+:} false; then : |
---|
| 5971 | $as_echo_n "(cached) " >&6 |
---|
| 5972 | else |
---|
| 5973 | test "$cross_compiling" = yes && |
---|
| 5974 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
| 5975 | if test -r "$LIBDIR/lib/libcpgplot.a"; then |
---|
| 5976 | eval "$as_ac_File=yes" |
---|
| 5977 | else |
---|
| 5978 | eval "$as_ac_File=no" |
---|
| 5979 | fi |
---|
| 5980 | fi |
---|
| 5981 | eval ac_res=\$$as_ac_File |
---|
| 5982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 5983 | $as_echo "$ac_res" >&6; } |
---|
| 5984 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
| 5985 | PGPLOTLIB="-L$LIBDIR/lib $PGPLOTLIB"; break |
---|
| 5986 | fi |
---|
| 5987 | |
---|
| 5988 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/pgplot/libcpgplot.a" | $as_tr_sh` |
---|
| 5989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/pgplot/libcpgplot.a" >&5 |
---|
| 5990 | $as_echo_n "checking for $LIBDIR/pgplot/libcpgplot.a... " >&6; } |
---|
| 5991 | if eval \${$as_ac_File+:} false; then : |
---|
| 5992 | $as_echo_n "(cached) " >&6 |
---|
| 5993 | else |
---|
| 5994 | test "$cross_compiling" = yes && |
---|
| 5995 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
| 5996 | if test -r "$LIBDIR/pgplot/libcpgplot.a"; then |
---|
| 5997 | eval "$as_ac_File=yes" |
---|
| 5998 | else |
---|
| 5999 | eval "$as_ac_File=no" |
---|
| 6000 | fi |
---|
| 6001 | fi |
---|
| 6002 | eval ac_res=\$$as_ac_File |
---|
| 6003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6004 | $as_echo "$ac_res" >&6; } |
---|
| 6005 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
| 6006 | PGPLOTLIB="-L$LIBDIR/pgplot $PGPLOTLIB"; break |
---|
| 6007 | fi |
---|
| 6008 | |
---|
[342] | 6009 | done |
---|
[805] | 6010 | # if test "x$F77" = xgfortran; then |
---|
| 6011 | # PGPLOTLIB="$PGPLOTLIB -bind_at_load" |
---|
| 6012 | # fi |
---|
[342] | 6013 | fi |
---|
[107] | 6014 | |
---|
[342] | 6015 | fi |
---|
[107] | 6016 | |
---|
[342] | 6017 | |
---|
| 6018 | |
---|
[384] | 6019 | |
---|
[107] | 6020 | ########################################################################## |
---|
| 6021 | |
---|
| 6022 | ########################################################################## |
---|
| 6023 | # Search for CFITSIO. |
---|
[342] | 6024 | # use --with-cfitsio=directory to specify a particular CFITSIO directory. |
---|
| 6025 | # else do the normal searching for libraries. |
---|
| 6026 | |
---|
[788] | 6027 | { $as_echo "$as_me:${as_lineno-$LINENO}: -- CFITSIO -- " >&5 |
---|
| 6028 | $as_echo "$as_me: -- CFITSIO -- " >&6;} |
---|
[342] | 6029 | |
---|
[763] | 6030 | # Check whether --with-cfitsio was given. |
---|
[788] | 6031 | if test "${with_cfitsio+set}" = set; then : |
---|
[763] | 6032 | withval=$with_cfitsio; #if we specify a directory... |
---|
[342] | 6033 | if test "x$withval" = xno; then |
---|
[788] | 6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: |
---|
[342] | 6035 | The CFITSIO library is required. |
---|
| 6036 | Ignoring the \"--with-cfitsio=no\" and searching for the library." >&5 |
---|
[788] | 6037 | $as_echo "$as_me: |
---|
[342] | 6038 | The CFITSIO library is required. |
---|
| 6039 | Ignoring the \"--with-cfitsio=no\" and searching for the library." >&1;} |
---|
| 6040 | CFITSIOINCDIRS=$INCDIRS |
---|
| 6041 | CFITSIOLIBDIRS=$LIBDIRS |
---|
| 6042 | else |
---|
[788] | 6043 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using directory \"$withval\"" >&5 |
---|
| 6044 | $as_echo "$as_me: Using directory \"$withval\"" >&6;} |
---|
[342] | 6045 | CFITSIOINCDIRS="$withval \ |
---|
| 6046 | $withval/include" |
---|
| 6047 | CFITSIOLIBDIRS="$withval \ |
---|
| 6048 | $withval/lib" |
---|
[351] | 6049 | for LIBDIR in $CFITSIOLIBDIRS ; do |
---|
[788] | 6050 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR" | $as_tr_sh` |
---|
| 6051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR" >&5 |
---|
| 6052 | $as_echo_n "checking for $LIBDIR... " >&6; } |
---|
| 6053 | if eval \${$as_ac_File+:} false; then : |
---|
| 6054 | $as_echo_n "(cached) " >&6 |
---|
[107] | 6055 | else |
---|
| 6056 | test "$cross_compiling" = yes && |
---|
[788] | 6057 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[351] | 6058 | if test -r "$LIBDIR"; then |
---|
[107] | 6059 | eval "$as_ac_File=yes" |
---|
| 6060 | else |
---|
| 6061 | eval "$as_ac_File=no" |
---|
| 6062 | fi |
---|
| 6063 | fi |
---|
[788] | 6064 | eval ac_res=\$$as_ac_File |
---|
| 6065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6066 | $as_echo "$ac_res" >&6; } |
---|
| 6067 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[351] | 6068 | LDFLAGS="$LDFLAGS -L$LIBDIR" |
---|
| 6069 | else |
---|
| 6070 | continue |
---|
[107] | 6071 | fi |
---|
| 6072 | |
---|
[351] | 6073 | done |
---|
| 6074 | for INCDIR in $CFITSIOINCDIRS ; do |
---|
[788] | 6075 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR" | $as_tr_sh` |
---|
| 6076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR" >&5 |
---|
| 6077 | $as_echo_n "checking for $INCDIR... " >&6; } |
---|
| 6078 | if eval \${$as_ac_File+:} false; then : |
---|
| 6079 | $as_echo_n "(cached) " >&6 |
---|
[107] | 6080 | else |
---|
| 6081 | test "$cross_compiling" = yes && |
---|
[788] | 6082 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[351] | 6083 | if test -r "$INCDIR"; then |
---|
[107] | 6084 | eval "$as_ac_File=yes" |
---|
| 6085 | else |
---|
| 6086 | eval "$as_ac_File=no" |
---|
| 6087 | fi |
---|
| 6088 | fi |
---|
[788] | 6089 | eval ac_res=\$$as_ac_File |
---|
| 6090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6091 | $as_echo "$ac_res" >&6; } |
---|
| 6092 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[351] | 6093 | CPPFLAGS="$CPPFLAGS -I$INCDIR" |
---|
| 6094 | else |
---|
| 6095 | continue |
---|
[107] | 6096 | fi |
---|
| 6097 | |
---|
[351] | 6098 | done |
---|
| 6099 | fi |
---|
[107] | 6100 | |
---|
[351] | 6101 | else |
---|
| 6102 | # if directory not specified, go searching. |
---|
| 6103 | CFITSIOINCDIRS=$INCDIRS |
---|
| 6104 | CFITSIOLIBDIRS=$LIBDIRS |
---|
| 6105 | |
---|
[763] | 6106 | fi |
---|
[351] | 6107 | |
---|
[763] | 6108 | |
---|
[351] | 6109 | for INCDIR in $CFITSIOINCDIRS ; do |
---|
[788] | 6110 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR/fitsio.h" | $as_tr_sh` |
---|
| 6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/fitsio.h" >&5 |
---|
| 6112 | $as_echo_n "checking for $INCDIR/fitsio.h... " >&6; } |
---|
| 6113 | if eval \${$as_ac_File+:} false; then : |
---|
| 6114 | $as_echo_n "(cached) " >&6 |
---|
[349] | 6115 | else |
---|
| 6116 | test "$cross_compiling" = yes && |
---|
[788] | 6117 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[351] | 6118 | if test -r "$INCDIR/fitsio.h"; then |
---|
[349] | 6119 | eval "$as_ac_File=yes" |
---|
| 6120 | else |
---|
| 6121 | eval "$as_ac_File=no" |
---|
| 6122 | fi |
---|
| 6123 | fi |
---|
[788] | 6124 | eval ac_res=\$$as_ac_File |
---|
| 6125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6126 | $as_echo "$ac_res" >&6; } |
---|
| 6127 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[351] | 6128 | CFITSIOINC=-I$INCDIR; break |
---|
[349] | 6129 | fi |
---|
| 6130 | |
---|
[351] | 6131 | INCDIR=$INCDIR/cfitsio |
---|
[788] | 6132 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR/fitsio.h" | $as_tr_sh` |
---|
| 6133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/fitsio.h" >&5 |
---|
| 6134 | $as_echo_n "checking for $INCDIR/fitsio.h... " >&6; } |
---|
| 6135 | if eval \${$as_ac_File+:} false; then : |
---|
| 6136 | $as_echo_n "(cached) " >&6 |
---|
[349] | 6137 | else |
---|
| 6138 | test "$cross_compiling" = yes && |
---|
[788] | 6139 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[351] | 6140 | if test -r "$INCDIR/fitsio.h"; then |
---|
[349] | 6141 | eval "$as_ac_File=yes" |
---|
| 6142 | else |
---|
| 6143 | eval "$as_ac_File=no" |
---|
| 6144 | fi |
---|
| 6145 | fi |
---|
[788] | 6146 | eval ac_res=\$$as_ac_File |
---|
| 6147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6148 | $as_echo "$ac_res" >&6; } |
---|
| 6149 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[351] | 6150 | CFITSIOINC=-I$INCDIR; break |
---|
[349] | 6151 | fi |
---|
| 6152 | |
---|
| 6153 | done |
---|
| 6154 | |
---|
[788] | 6155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv in -lsocket" >&5 |
---|
| 6156 | $as_echo_n "checking for recv in -lsocket... " >&6; } |
---|
| 6157 | if ${ac_cv_lib_socket_recv+:} false; then : |
---|
| 6158 | $as_echo_n "(cached) " >&6 |
---|
[107] | 6159 | else |
---|
| 6160 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6161 | LIBS="-lsocket $LIBS $LIBS" |
---|
[788] | 6162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 6163 | /* end confdefs.h. */ |
---|
| 6164 | |
---|
[763] | 6165 | /* Override any GCC internal prototype to avoid an error. |
---|
| 6166 | Use char because int might match the return type of a GCC |
---|
| 6167 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 6168 | #ifdef __cplusplus |
---|
| 6169 | extern "C" |
---|
| 6170 | #endif |
---|
| 6171 | char recv (); |
---|
| 6172 | int |
---|
| 6173 | main () |
---|
| 6174 | { |
---|
[763] | 6175 | return recv (); |
---|
[107] | 6176 | ; |
---|
| 6177 | return 0; |
---|
| 6178 | } |
---|
| 6179 | _ACEOF |
---|
[788] | 6180 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 6181 | ac_cv_lib_socket_recv=yes |
---|
| 6182 | else |
---|
[788] | 6183 | ac_cv_lib_socket_recv=no |
---|
[107] | 6184 | fi |
---|
[788] | 6185 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 6186 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 6187 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6188 | fi |
---|
[788] | 6189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_recv" >&5 |
---|
| 6190 | $as_echo "$ac_cv_lib_socket_recv" >&6; } |
---|
| 6191 | if test "x$ac_cv_lib_socket_recv" = xyes; then : |
---|
[351] | 6192 | CFITSIOLIB="$CFITSIOLIB -lsocket" |
---|
[107] | 6193 | fi |
---|
| 6194 | |
---|
[788] | 6195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffopen in -lcfitsio" >&5 |
---|
| 6196 | $as_echo_n "checking for ffopen in -lcfitsio... " >&6; } |
---|
| 6197 | if ${ac_cv_lib_cfitsio_ffopen+:} false; then : |
---|
| 6198 | $as_echo_n "(cached) " >&6 |
---|
[107] | 6199 | else |
---|
| 6200 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6201 | LIBS="-lcfitsio $CFITSIOLIB $LIBS $LIBS" |
---|
[788] | 6202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 6203 | /* end confdefs.h. */ |
---|
| 6204 | |
---|
[763] | 6205 | /* Override any GCC internal prototype to avoid an error. |
---|
| 6206 | Use char because int might match the return type of a GCC |
---|
| 6207 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 6208 | #ifdef __cplusplus |
---|
| 6209 | extern "C" |
---|
| 6210 | #endif |
---|
| 6211 | char ffopen (); |
---|
| 6212 | int |
---|
| 6213 | main () |
---|
| 6214 | { |
---|
[763] | 6215 | return ffopen (); |
---|
[107] | 6216 | ; |
---|
| 6217 | return 0; |
---|
| 6218 | } |
---|
| 6219 | _ACEOF |
---|
[788] | 6220 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[107] | 6221 | ac_cv_lib_cfitsio_ffopen=yes |
---|
| 6222 | else |
---|
[788] | 6223 | ac_cv_lib_cfitsio_ffopen=no |
---|
[107] | 6224 | fi |
---|
[788] | 6225 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 6226 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 6227 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6228 | fi |
---|
[788] | 6229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfitsio_ffopen" >&5 |
---|
| 6230 | $as_echo "$ac_cv_lib_cfitsio_ffopen" >&6; } |
---|
| 6231 | if test "x$ac_cv_lib_cfitsio_ffopen" = xyes; then : |
---|
[351] | 6232 | CFITSIOLIB="$CFITSIOLIB -lcfitsio" |
---|
[107] | 6233 | fi |
---|
| 6234 | |
---|
| 6235 | |
---|
[328] | 6236 | # CFITSIO is essential for Duchamp, so exit with error message if it |
---|
| 6237 | # is not present. |
---|
[107] | 6238 | if test "x$CFITSIOINC" = x -o "x$CFITSIOLIB" = x; then |
---|
[788] | 6239 | as_fn_error 1 " |
---|
[107] | 6240 | ------------------------------------------------------- |
---|
| 6241 | Could not find the CFITSIO library. |
---|
| 6242 | |
---|
| 6243 | ERROR: Duchamp configuration failure. |
---|
[788] | 6244 | -------------------------------------------------------" "$LINENO" 5 |
---|
[107] | 6245 | else |
---|
[788] | 6246 | { $as_echo "$as_me:${as_lineno-$LINENO}: CFITSIO appears to be available." >&5 |
---|
| 6247 | $as_echo "$as_me: CFITSIO appears to be available." >&6;} |
---|
[107] | 6248 | |
---|
[788] | 6249 | $as_echo "#define HAVE_CFITSIO 1" >>confdefs.h |
---|
[107] | 6250 | |
---|
[351] | 6251 | for LIBDIR in $CFITSIOLIBDIRS ; do |
---|
[788] | 6252 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/libcfitsio.a" | $as_tr_sh` |
---|
| 6253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/libcfitsio.a" >&5 |
---|
| 6254 | $as_echo_n "checking for $LIBDIR/libcfitsio.a... " >&6; } |
---|
| 6255 | if eval \${$as_ac_File+:} false; then : |
---|
| 6256 | $as_echo_n "(cached) " >&6 |
---|
[351] | 6257 | else |
---|
| 6258 | test "$cross_compiling" = yes && |
---|
[788] | 6259 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[351] | 6260 | if test -r "$LIBDIR/libcfitsio.a"; then |
---|
| 6261 | eval "$as_ac_File=yes" |
---|
| 6262 | else |
---|
| 6263 | eval "$as_ac_File=no" |
---|
[107] | 6264 | fi |
---|
[351] | 6265 | fi |
---|
[788] | 6266 | eval ac_res=\$$as_ac_File |
---|
| 6267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6268 | $as_echo "$ac_res" >&6; } |
---|
| 6269 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[351] | 6270 | CFITSIOLIB="-L$LIBDIR $CFITSIOLIB"; break |
---|
| 6271 | fi |
---|
[107] | 6272 | |
---|
[351] | 6273 | LIBDIR=$LIBDIR/cfitsio |
---|
[788] | 6274 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/libcfitsio.a" | $as_tr_sh` |
---|
| 6275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/libcfitsio.a" >&5 |
---|
| 6276 | $as_echo_n "checking for $LIBDIR/libcfitsio.a... " >&6; } |
---|
| 6277 | if eval \${$as_ac_File+:} false; then : |
---|
| 6278 | $as_echo_n "(cached) " >&6 |
---|
[351] | 6279 | else |
---|
| 6280 | test "$cross_compiling" = yes && |
---|
[788] | 6281 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[351] | 6282 | if test -r "$LIBDIR/libcfitsio.a"; then |
---|
| 6283 | eval "$as_ac_File=yes" |
---|
| 6284 | else |
---|
| 6285 | eval "$as_ac_File=no" |
---|
| 6286 | fi |
---|
| 6287 | fi |
---|
[788] | 6288 | eval ac_res=\$$as_ac_File |
---|
| 6289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6290 | $as_echo "$ac_res" >&6; } |
---|
| 6291 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[351] | 6292 | CFITSIOLIB="-L$LIBDIR $CFITSIOLIB"; break |
---|
| 6293 | fi |
---|
[107] | 6294 | |
---|
[351] | 6295 | done |
---|
[107] | 6296 | |
---|
[351] | 6297 | fi |
---|
| 6298 | |
---|
| 6299 | |
---|
| 6300 | |
---|
[107] | 6301 | ########################################################################## |
---|
| 6302 | |
---|
| 6303 | ########################################################################## |
---|
| 6304 | # Search for WCSLIB. |
---|
[351] | 6305 | # use --with-wcslib=directory to specify a particular WCSLIB directory. |
---|
[342] | 6306 | # else do the normal searching for libraries. |
---|
| 6307 | |
---|
[788] | 6308 | { $as_echo "$as_me:${as_lineno-$LINENO}: -- WCSLIB -- " >&5 |
---|
| 6309 | $as_echo "$as_me: -- WCSLIB -- " >&6;} |
---|
[402] | 6310 | WCSINCDIR="" |
---|
[342] | 6311 | |
---|
[763] | 6312 | # Check whether --with-wcslib was given. |
---|
[788] | 6313 | if test "${with_wcslib+set}" = set; then : |
---|
[763] | 6314 | withval=$with_wcslib; #if we specify a directory... |
---|
[342] | 6315 | if test "x$withval" = xno; then |
---|
[788] | 6316 | { $as_echo "$as_me:${as_lineno-$LINENO}: |
---|
[342] | 6317 | The WCSLIB library is required. |
---|
| 6318 | Ignoring the \"--with-wcslib=no\" and searching for the library." >&5 |
---|
[788] | 6319 | $as_echo "$as_me: |
---|
[342] | 6320 | The WCSLIB library is required. |
---|
| 6321 | Ignoring the \"--with-wcslib=no\" and searching for the library." >&1;} |
---|
[351] | 6322 | WCSINCDIRS=$INCDIRS |
---|
| 6323 | WCSLIBDIRS=$LIBDIRS |
---|
[342] | 6324 | else |
---|
[788] | 6325 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using directory \"$withval\"" >&5 |
---|
| 6326 | $as_echo "$as_me: Using directory \"$withval\"" >&6;} |
---|
[342] | 6327 | WCSINCDIRS="$withval \ |
---|
| 6328 | $withval/include" |
---|
| 6329 | WCSLIBDIRS="$withval \ |
---|
| 6330 | $withval/lib" |
---|
[351] | 6331 | for LIBDIR in $WCSLIBDIRS ; do |
---|
[788] | 6332 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR" | $as_tr_sh` |
---|
| 6333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR" >&5 |
---|
| 6334 | $as_echo_n "checking for $LIBDIR... " >&6; } |
---|
| 6335 | if eval \${$as_ac_File+:} false; then : |
---|
| 6336 | $as_echo_n "(cached) " >&6 |
---|
[107] | 6337 | else |
---|
| 6338 | test "$cross_compiling" = yes && |
---|
[788] | 6339 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[351] | 6340 | if test -r "$LIBDIR"; then |
---|
[107] | 6341 | eval "$as_ac_File=yes" |
---|
| 6342 | else |
---|
| 6343 | eval "$as_ac_File=no" |
---|
| 6344 | fi |
---|
| 6345 | fi |
---|
[788] | 6346 | eval ac_res=\$$as_ac_File |
---|
| 6347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6348 | $as_echo "$ac_res" >&6; } |
---|
| 6349 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[351] | 6350 | LDFLAGS="$LDFLAGS -L$LIBDIR" |
---|
| 6351 | else |
---|
| 6352 | continue |
---|
[107] | 6353 | fi |
---|
| 6354 | |
---|
[351] | 6355 | done |
---|
| 6356 | for INCDIR in $WCSINCDIRS ; do |
---|
[788] | 6357 | as_ac_File=`$as_echo "ac_cv_file_$INCDIR/wcslib" | $as_tr_sh` |
---|
| 6358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/wcslib" >&5 |
---|
| 6359 | $as_echo_n "checking for $INCDIR/wcslib... " >&6; } |
---|
| 6360 | if eval \${$as_ac_File+:} false; then : |
---|
| 6361 | $as_echo_n "(cached) " >&6 |
---|
[107] | 6362 | else |
---|
| 6363 | test "$cross_compiling" = yes && |
---|
[788] | 6364 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[402] | 6365 | if test -r "$INCDIR/wcslib"; then |
---|
[107] | 6366 | eval "$as_ac_File=yes" |
---|
| 6367 | else |
---|
| 6368 | eval "$as_ac_File=no" |
---|
| 6369 | fi |
---|
| 6370 | fi |
---|
[788] | 6371 | eval ac_res=\$$as_ac_File |
---|
| 6372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6373 | $as_echo "$ac_res" >&6; } |
---|
| 6374 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[402] | 6375 | CPPFLAGS="$CPPFLAGS -I$INCDIR"; WCSINCDIR=$INCDIR; break |
---|
[351] | 6376 | else |
---|
| 6377 | continue |
---|
[107] | 6378 | fi |
---|
| 6379 | |
---|
[351] | 6380 | done |
---|
[107] | 6381 | fi |
---|
| 6382 | |
---|
[351] | 6383 | else |
---|
| 6384 | # if directory not specified, go searching. |
---|
| 6385 | WCSINCDIRS=$INCDIRS |
---|
| 6386 | WCSLIBDIRS=$LIBDIRS |
---|
| 6387 | |
---|
[763] | 6388 | fi |
---|
[351] | 6389 | |
---|
| 6390 | |
---|
[763] | 6391 | |
---|
[402] | 6392 | if test "x$WCSINCDIR" = x; then |
---|
| 6393 | for INCBASE in $WCSINCDIRS ; do |
---|
[788] | 6394 | as_ac_File=`$as_echo "ac_cv_file_$INCBASE/wcslib/wcs.h" | $as_tr_sh` |
---|
| 6395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCBASE/wcslib/wcs.h" >&5 |
---|
| 6396 | $as_echo_n "checking for $INCBASE/wcslib/wcs.h... " >&6; } |
---|
| 6397 | if eval \${$as_ac_File+:} false; then : |
---|
| 6398 | $as_echo_n "(cached) " >&6 |
---|
[107] | 6399 | else |
---|
| 6400 | test "$cross_compiling" = yes && |
---|
[788] | 6401 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[402] | 6402 | if test -r "$INCBASE/wcslib/wcs.h"; then |
---|
[107] | 6403 | eval "$as_ac_File=yes" |
---|
| 6404 | else |
---|
| 6405 | eval "$as_ac_File=no" |
---|
| 6406 | fi |
---|
| 6407 | fi |
---|
[788] | 6408 | eval ac_res=\$$as_ac_File |
---|
| 6409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6410 | $as_echo "$ac_res" >&6; } |
---|
| 6411 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[492] | 6412 | WCSINC="-I$INCBASE -I$INCBASE/wcslib $WCSINC"; break |
---|
[349] | 6413 | fi |
---|
[402] | 6414 | |
---|
| 6415 | done |
---|
[351] | 6416 | else |
---|
[788] | 6417 | as_ac_File=`$as_echo "ac_cv_file_$WCSINCDIR/wcslib/wcs.h" | $as_tr_sh` |
---|
| 6418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $WCSINCDIR/wcslib/wcs.h" >&5 |
---|
| 6419 | $as_echo_n "checking for $WCSINCDIR/wcslib/wcs.h... " >&6; } |
---|
| 6420 | if eval \${$as_ac_File+:} false; then : |
---|
| 6421 | $as_echo_n "(cached) " >&6 |
---|
[349] | 6422 | else |
---|
| 6423 | test "$cross_compiling" = yes && |
---|
[788] | 6424 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[402] | 6425 | if test -r "$WCSINCDIR/wcslib/wcs.h"; then |
---|
[349] | 6426 | eval "$as_ac_File=yes" |
---|
| 6427 | else |
---|
| 6428 | eval "$as_ac_File=no" |
---|
| 6429 | fi |
---|
| 6430 | fi |
---|
[788] | 6431 | eval ac_res=\$$as_ac_File |
---|
| 6432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6433 | $as_echo "$ac_res" >&6; } |
---|
| 6434 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[492] | 6435 | WCSINC="-I$WCSINCDIR -I$WCSINCDIR/wcslib $WCSINC" |
---|
[349] | 6436 | fi |
---|
| 6437 | |
---|
| 6438 | fi |
---|
| 6439 | |
---|
| 6440 | |
---|
[351] | 6441 | # Look for libwcs.a, and libpgsbox.a |
---|
[788] | 6442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcss2p in -lwcs" >&5 |
---|
| 6443 | $as_echo_n "checking for wcss2p in -lwcs... " >&6; } |
---|
| 6444 | if ${ac_cv_lib_wcs_wcss2p+:} false; then : |
---|
| 6445 | $as_echo_n "(cached) " >&6 |
---|
[107] | 6446 | else |
---|
| 6447 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 6448 | LIBS="-lwcs $WCSLIB $LIBS $CFITSIOLIB $PGPLOTLIB $LIBS" |
---|
[788] | 6449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 6450 | /* end confdefs.h. */ |
---|
| 6451 | |
---|
[763] | 6452 | /* Override any GCC internal prototype to avoid an error. |
---|
| 6453 | Use char because int might match the return type of a GCC |
---|
| 6454 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 6455 | #ifdef __cplusplus |
---|
| 6456 | extern "C" |
---|
| 6457 | #endif |
---|
[351] | 6458 | char wcss2p (); |
---|
[107] | 6459 | int |
---|
| 6460 | main () |
---|
| 6461 | { |
---|
[763] | 6462 | return wcss2p (); |
---|
[107] | 6463 | ; |
---|
| 6464 | return 0; |
---|
| 6465 | } |
---|
| 6466 | _ACEOF |
---|
[788] | 6467 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[351] | 6468 | ac_cv_lib_wcs_wcss2p=yes |
---|
[107] | 6469 | else |
---|
[788] | 6470 | ac_cv_lib_wcs_wcss2p=no |
---|
[107] | 6471 | fi |
---|
[788] | 6472 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 6473 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 6474 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6475 | fi |
---|
[788] | 6476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wcs_wcss2p" >&5 |
---|
| 6477 | $as_echo "$ac_cv_lib_wcs_wcss2p" >&6; } |
---|
| 6478 | if test "x$ac_cv_lib_wcs_wcss2p" = xyes; then : |
---|
[351] | 6479 | WCSLIB="$WCSLIB -lwcs" |
---|
[107] | 6480 | fi |
---|
| 6481 | |
---|
[826] | 6482 | |
---|
| 6483 | # Only use libpgsbox if we have pgplot enabled - determine this by testing the PGPLOTINCDIRS variable |
---|
| 6484 | if test "x$PGPLOTINCDIRS" != x; then |
---|
| 6485 | if test "x$F77" = xgfortran; then |
---|
| 6486 | WCSLIB="$WCSLIB -lpgsbox" |
---|
| 6487 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using gfortran, so manually adding -lpgsbox to WCSLIB string." >&5 |
---|
[788] | 6488 | $as_echo "$as_me: Using gfortran, so manually adding -lpgsbox to WCSLIB string." >&6;} |
---|
[826] | 6489 | else |
---|
| 6490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpgsbox in -lpgsbox" >&5 |
---|
[788] | 6491 | $as_echo_n "checking for cpgsbox in -lpgsbox... " >&6; } |
---|
| 6492 | if ${ac_cv_lib_pgsbox_cpgsbox+:} false; then : |
---|
| 6493 | $as_echo_n "(cached) " >&6 |
---|
[107] | 6494 | else |
---|
| 6495 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 6496 | LIBS="-lpgsbox $WCSLIB $LIBS $CFITSIOLIB $PGPLOTLIB $LIBS" |
---|
[788] | 6497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
[107] | 6498 | /* end confdefs.h. */ |
---|
| 6499 | |
---|
[763] | 6500 | /* Override any GCC internal prototype to avoid an error. |
---|
| 6501 | Use char because int might match the return type of a GCC |
---|
| 6502 | builtin and then its argument prototype would still apply. */ |
---|
[107] | 6503 | #ifdef __cplusplus |
---|
| 6504 | extern "C" |
---|
| 6505 | #endif |
---|
[351] | 6506 | char cpgsbox (); |
---|
[107] | 6507 | int |
---|
| 6508 | main () |
---|
| 6509 | { |
---|
[763] | 6510 | return cpgsbox (); |
---|
[107] | 6511 | ; |
---|
| 6512 | return 0; |
---|
| 6513 | } |
---|
| 6514 | _ACEOF |
---|
[788] | 6515 | if ac_fn_c_try_link "$LINENO"; then : |
---|
[351] | 6516 | ac_cv_lib_pgsbox_cpgsbox=yes |
---|
[107] | 6517 | else |
---|
[788] | 6518 | ac_cv_lib_pgsbox_cpgsbox=no |
---|
[107] | 6519 | fi |
---|
[788] | 6520 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 6521 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 6522 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6523 | fi |
---|
[788] | 6524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pgsbox_cpgsbox" >&5 |
---|
| 6525 | $as_echo "$ac_cv_lib_pgsbox_cpgsbox" >&6; } |
---|
| 6526 | if test "x$ac_cv_lib_pgsbox_cpgsbox" = xyes; then : |
---|
[351] | 6527 | WCSLIB="$WCSLIB -lpgsbox" |
---|
[107] | 6528 | fi |
---|
| 6529 | |
---|
[826] | 6530 | fi |
---|
[351] | 6531 | fi |
---|
[107] | 6532 | |
---|
[328] | 6533 | # WCSLIB is essential for Duchamp, so exit with error message if it |
---|
| 6534 | # is not present. Need at least libwcs to be available -- libpgsbox will |
---|
| 6535 | # depend on PGPLOT being available, but is not critical. |
---|
[107] | 6536 | if test "x$WCSINC" = x -o "x$WCSLIB" = x; then |
---|
[788] | 6537 | as_fn_error 1 " |
---|
[107] | 6538 | ------------------------------------------------------- |
---|
| 6539 | Could not find the WCSLIB library. |
---|
| 6540 | |
---|
| 6541 | ERROR: Duchamp configuration failure. |
---|
[788] | 6542 | -------------------------------------------------------" "$LINENO" 5 |
---|
[107] | 6543 | else |
---|
[788] | 6544 | { $as_echo "$as_me:${as_lineno-$LINENO}: WCSLIB appears to be available." >&5 |
---|
| 6545 | $as_echo "$as_me: WCSLIB appears to be available." >&6;} |
---|
[107] | 6546 | |
---|
[788] | 6547 | $as_echo "#define HAVE_WCSLIB 1" >>confdefs.h |
---|
[107] | 6548 | |
---|
[351] | 6549 | # Now add the -L statements to start of WCSLIB. |
---|
| 6550 | # Search for libwcs.a, and, if we find it, search for libpgsbox in same directory and |
---|
| 6551 | # then in other directories, keeping the appropriate order of -L calls. |
---|
| 6552 | |
---|
[402] | 6553 | DIRLIST=". \ |
---|
| 6554 | wcs \ |
---|
| 6555 | wcslib" |
---|
| 6556 | |
---|
[351] | 6557 | for LIBBASE in $WCSLIBDIRS ; do |
---|
| 6558 | for DIR in $DIRLIST; do |
---|
| 6559 | if test "x$DIR" = x.; then |
---|
| 6560 | LIBDIR=$LIBBASE |
---|
| 6561 | else |
---|
| 6562 | LIBDIR="$LIBBASE/$DIR" |
---|
| 6563 | fi |
---|
[788] | 6564 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/libwcs.a" | $as_tr_sh` |
---|
| 6565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/libwcs.a" >&5 |
---|
| 6566 | $as_echo_n "checking for $LIBDIR/libwcs.a... " >&6; } |
---|
| 6567 | if eval \${$as_ac_File+:} false; then : |
---|
| 6568 | $as_echo_n "(cached) " >&6 |
---|
[351] | 6569 | else |
---|
| 6570 | test "$cross_compiling" = yes && |
---|
[788] | 6571 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[351] | 6572 | if test -r "$LIBDIR/libwcs.a"; then |
---|
| 6573 | eval "$as_ac_File=yes" |
---|
| 6574 | else |
---|
| 6575 | eval "$as_ac_File=no" |
---|
[107] | 6576 | fi |
---|
[351] | 6577 | fi |
---|
[788] | 6578 | eval ac_res=\$$as_ac_File |
---|
| 6579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6580 | $as_echo "$ac_res" >&6; } |
---|
| 6581 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[351] | 6582 | WCSLIBFRONT="-L$LIBDIR"; |
---|
[788] | 6583 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/libpgsbox.a" | $as_tr_sh` |
---|
| 6584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/libpgsbox.a" >&5 |
---|
| 6585 | $as_echo_n "checking for $LIBDIR/libpgsbox.a... " >&6; } |
---|
| 6586 | if eval \${$as_ac_File+:} false; then : |
---|
| 6587 | $as_echo_n "(cached) " >&6 |
---|
[351] | 6588 | else |
---|
| 6589 | test "$cross_compiling" = yes && |
---|
[788] | 6590 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[351] | 6591 | if test -r "$LIBDIR/libpgsbox.a"; then |
---|
| 6592 | eval "$as_ac_File=yes" |
---|
| 6593 | else |
---|
| 6594 | eval "$as_ac_File=no" |
---|
| 6595 | fi |
---|
| 6596 | fi |
---|
[788] | 6597 | eval ac_res=\$$as_ac_File |
---|
| 6598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6599 | $as_echo "$ac_res" >&6; } |
---|
| 6600 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
| 6601 | |
---|
[351] | 6602 | else |
---|
[107] | 6603 | |
---|
[351] | 6604 | for LIBBASE2 in $WCSLIBDIRS ; do |
---|
| 6605 | for DIR2 in $DIRLIST; do |
---|
| 6606 | if test "x$DIR" = x.; then |
---|
| 6607 | LIBDIR=$LIBBASE |
---|
| 6608 | else |
---|
| 6609 | LIBDIR="$LIBBASE/$DIR" |
---|
| 6610 | fi |
---|
[788] | 6611 | as_ac_File=`$as_echo "ac_cv_file_$LIBDIR2/libpgsbox.a" | $as_tr_sh` |
---|
| 6612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR2/libpgsbox.a" >&5 |
---|
| 6613 | $as_echo_n "checking for $LIBDIR2/libpgsbox.a... " >&6; } |
---|
| 6614 | if eval \${$as_ac_File+:} false; then : |
---|
| 6615 | $as_echo_n "(cached) " >&6 |
---|
[351] | 6616 | else |
---|
| 6617 | test "$cross_compiling" = yes && |
---|
[788] | 6618 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
---|
[351] | 6619 | if test -r "$LIBDIR2/libpgsbox.a"; then |
---|
| 6620 | eval "$as_ac_File=yes" |
---|
| 6621 | else |
---|
| 6622 | eval "$as_ac_File=no" |
---|
| 6623 | fi |
---|
| 6624 | fi |
---|
[788] | 6625 | eval ac_res=\$$as_ac_File |
---|
| 6626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 6627 | $as_echo "$ac_res" >&6; } |
---|
| 6628 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
---|
[351] | 6629 | WCSLIBFRONT="$WCSLIB -L$LIBDIR2"; break |
---|
| 6630 | fi |
---|
[107] | 6631 | |
---|
[351] | 6632 | done |
---|
| 6633 | done |
---|
| 6634 | fi |
---|
[107] | 6635 | |
---|
[351] | 6636 | break |
---|
| 6637 | fi |
---|
| 6638 | |
---|
| 6639 | done |
---|
| 6640 | done |
---|
| 6641 | WCSLIB="$WCSLIBFRONT $WCSLIB" |
---|
| 6642 | fi |
---|
| 6643 | |
---|
| 6644 | |
---|
| 6645 | |
---|
[107] | 6646 | ########################################################################## |
---|
| 6647 | |
---|
| 6648 | |
---|
| 6649 | |
---|
[763] | 6650 | ac_config_files="$ac_config_files Makefile" |
---|
[107] | 6651 | |
---|
| 6652 | cat >confcache <<\_ACEOF |
---|
| 6653 | # This file is a shell script that caches the results of configure |
---|
| 6654 | # tests run on this system so they can be shared between configure |
---|
| 6655 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 6656 | # It is not useful on other systems. If it contains results you don't |
---|
| 6657 | # want to keep, you may remove or edit it. |
---|
| 6658 | # |
---|
| 6659 | # config.status only pays attention to the cache file if you give it |
---|
| 6660 | # the --recheck option to rerun configure. |
---|
| 6661 | # |
---|
| 6662 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 6663 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 6664 | # following values. |
---|
| 6665 | |
---|
| 6666 | _ACEOF |
---|
| 6667 | |
---|
| 6668 | # The following way of writing the cache mishandles newlines in values, |
---|
| 6669 | # but we know of no workaround that is simple, portable, and efficient. |
---|
[763] | 6670 | # So, we kill variables containing newlines. |
---|
[107] | 6671 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 6672 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
[763] | 6673 | ( |
---|
| 6674 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
| 6675 | eval ac_val=\$$ac_var |
---|
| 6676 | case $ac_val in #( |
---|
| 6677 | *${as_nl}*) |
---|
| 6678 | case $ac_var in #( |
---|
[788] | 6679 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
| 6680 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
[763] | 6681 | esac |
---|
| 6682 | case $ac_var in #( |
---|
| 6683 | _ | IFS | as_nl) ;; #( |
---|
[788] | 6684 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
| 6685 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
[763] | 6686 | esac ;; |
---|
| 6687 | esac |
---|
| 6688 | done |
---|
| 6689 | |
---|
[107] | 6690 | (set) 2>&1 | |
---|
[763] | 6691 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
| 6692 | *${as_nl}ac_space=\ *) |
---|
[788] | 6693 | # `set' does not quote correctly, so add quotes: double-quote |
---|
| 6694 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
[107] | 6695 | sed -n \ |
---|
[349] | 6696 | "s/'/'\\\\''/g; |
---|
| 6697 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
[763] | 6698 | ;; #( |
---|
[107] | 6699 | *) |
---|
| 6700 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
[763] | 6701 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
[107] | 6702 | ;; |
---|
[763] | 6703 | esac | |
---|
| 6704 | sort |
---|
| 6705 | ) | |
---|
[107] | 6706 | sed ' |
---|
[763] | 6707 | /^ac_cv_env_/b end |
---|
[107] | 6708 | t clear |
---|
[763] | 6709 | :clear |
---|
[107] | 6710 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 6711 | t end |
---|
[763] | 6712 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 6713 | :end' >>confcache |
---|
| 6714 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
| 6715 | if test -w "$cache_file"; then |
---|
[788] | 6716 | if test "x$cache_file" != "x/dev/null"; then |
---|
| 6717 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
| 6718 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
| 6719 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
| 6720 | cat confcache >"$cache_file" |
---|
| 6721 | else |
---|
| 6722 | case $cache_file in #( |
---|
| 6723 | */* | ?:*) |
---|
| 6724 | mv -f confcache "$cache_file"$$ && |
---|
| 6725 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
| 6726 | *) |
---|
| 6727 | mv -f confcache "$cache_file" ;; |
---|
| 6728 | esac |
---|
| 6729 | fi |
---|
| 6730 | fi |
---|
[107] | 6731 | else |
---|
[788] | 6732 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
| 6733 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
[107] | 6734 | fi |
---|
| 6735 | fi |
---|
| 6736 | rm -f confcache |
---|
| 6737 | |
---|
| 6738 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 6739 | # Let make expand exec_prefix. |
---|
| 6740 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 6741 | |
---|
| 6742 | DEFS=-DHAVE_CONFIG_H |
---|
| 6743 | |
---|
| 6744 | ac_libobjs= |
---|
| 6745 | ac_ltlibobjs= |
---|
[788] | 6746 | U= |
---|
[107] | 6747 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 6748 | # 1. Remove the extension, and $U if already installed. |
---|
[763] | 6749 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
[788] | 6750 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
[763] | 6751 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
| 6752 | # will be set to the directory where LIBOBJS objects are built. |
---|
[788] | 6753 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
| 6754 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
[107] | 6755 | done |
---|
| 6756 | LIBOBJS=$ac_libobjs |
---|
| 6757 | |
---|
| 6758 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 6759 | |
---|
| 6760 | |
---|
| 6761 | |
---|
[788] | 6762 | : "${CONFIG_STATUS=./config.status}" |
---|
| 6763 | ac_write_fail=0 |
---|
[107] | 6764 | ac_clean_files_save=$ac_clean_files |
---|
| 6765 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
[788] | 6766 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
| 6767 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 6768 | as_write_fail=0 |
---|
| 6769 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
[107] | 6770 | #! $SHELL |
---|
| 6771 | # Generated by $as_me. |
---|
| 6772 | # Run this file to recreate the current configuration. |
---|
| 6773 | # Compiler output produced by configure, useful for debugging |
---|
| 6774 | # configure, is in config.log if it exists. |
---|
| 6775 | |
---|
| 6776 | debug=false |
---|
| 6777 | ac_cs_recheck=false |
---|
| 6778 | ac_cs_silent=false |
---|
[788] | 6779 | |
---|
[107] | 6780 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
[788] | 6781 | export SHELL |
---|
| 6782 | _ASEOF |
---|
| 6783 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
| 6784 | ## -------------------- ## |
---|
| 6785 | ## M4sh Initialization. ## |
---|
| 6786 | ## -------------------- ## |
---|
[107] | 6787 | |
---|
[763] | 6788 | # Be more Bourne compatible |
---|
| 6789 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
[788] | 6790 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
[107] | 6791 | emulate sh |
---|
| 6792 | NULLCMD=: |
---|
[788] | 6793 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
[107] | 6794 | # is contrary to our usage. Disable this feature. |
---|
| 6795 | alias -g '${1+"$@"}'='"$@"' |
---|
[763] | 6796 | setopt NO_GLOB_SUBST |
---|
| 6797 | else |
---|
[788] | 6798 | case `(set -o) 2>/dev/null` in #( |
---|
| 6799 | *posix*) : |
---|
| 6800 | set -o posix ;; #( |
---|
| 6801 | *) : |
---|
| 6802 | ;; |
---|
[763] | 6803 | esac |
---|
[107] | 6804 | fi |
---|
| 6805 | |
---|
[763] | 6806 | |
---|
[788] | 6807 | as_nl=' |
---|
| 6808 | ' |
---|
| 6809 | export as_nl |
---|
| 6810 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
| 6811 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
| 6812 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
| 6813 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
| 6814 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
| 6815 | # but without wasting forks for bash or zsh. |
---|
| 6816 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
| 6817 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
| 6818 | as_echo='print -r --' |
---|
| 6819 | as_echo_n='print -rn --' |
---|
| 6820 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
| 6821 | as_echo='printf %s\n' |
---|
| 6822 | as_echo_n='printf %s' |
---|
| 6823 | else |
---|
| 6824 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
| 6825 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
| 6826 | as_echo_n='/usr/ucb/echo -n' |
---|
[763] | 6827 | else |
---|
[788] | 6828 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
| 6829 | as_echo_n_body='eval |
---|
| 6830 | arg=$1; |
---|
| 6831 | case $arg in #( |
---|
| 6832 | *"$as_nl"*) |
---|
| 6833 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
| 6834 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
| 6835 | esac; |
---|
| 6836 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
| 6837 | ' |
---|
| 6838 | export as_echo_n_body |
---|
| 6839 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
[763] | 6840 | fi |
---|
[788] | 6841 | export as_echo_body |
---|
| 6842 | as_echo='sh -c $as_echo_body as_echo' |
---|
[763] | 6843 | fi |
---|
| 6844 | |
---|
[788] | 6845 | # The user is always right. |
---|
| 6846 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 6847 | PATH_SEPARATOR=: |
---|
| 6848 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
| 6849 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
| 6850 | PATH_SEPARATOR=';' |
---|
| 6851 | } |
---|
[107] | 6852 | fi |
---|
| 6853 | |
---|
| 6854 | |
---|
[763] | 6855 | # IFS |
---|
| 6856 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
| 6857 | # there to prevent editors from complaining about space-tab. |
---|
| 6858 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
| 6859 | # splitting by setting IFS to empty value.) |
---|
| 6860 | IFS=" "" $as_nl" |
---|
| 6861 | |
---|
| 6862 | # Find who we are. Look in the path if we contain no directory separator. |
---|
[788] | 6863 | as_myself= |
---|
| 6864 | case $0 in #(( |
---|
[763] | 6865 | *[\\/]* ) as_myself=$0 ;; |
---|
| 6866 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6867 | for as_dir in $PATH |
---|
| 6868 | do |
---|
| 6869 | IFS=$as_save_IFS |
---|
| 6870 | test -z "$as_dir" && as_dir=. |
---|
[788] | 6871 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 6872 | done |
---|
[763] | 6873 | IFS=$as_save_IFS |
---|
| 6874 | |
---|
| 6875 | ;; |
---|
| 6876 | esac |
---|
| 6877 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 6878 | # in which case we are not to be found in the path. |
---|
| 6879 | if test "x$as_myself" = x; then |
---|
| 6880 | as_myself=$0 |
---|
| 6881 | fi |
---|
| 6882 | if test ! -f "$as_myself"; then |
---|
[788] | 6883 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
| 6884 | exit 1 |
---|
[763] | 6885 | fi |
---|
| 6886 | |
---|
[788] | 6887 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
| 6888 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
| 6889 | # suppresses any "Segmentation fault" message there. '((' could |
---|
| 6890 | # trigger a bug in pdksh 5.2.14. |
---|
| 6891 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
| 6892 | do eval test x\${$as_var+set} = xset \ |
---|
| 6893 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
[763] | 6894 | done |
---|
[107] | 6895 | PS1='$ ' |
---|
| 6896 | PS2='> ' |
---|
| 6897 | PS4='+ ' |
---|
| 6898 | |
---|
| 6899 | # NLS nuisances. |
---|
[788] | 6900 | LC_ALL=C |
---|
| 6901 | export LC_ALL |
---|
| 6902 | LANGUAGE=C |
---|
| 6903 | export LANGUAGE |
---|
| 6904 | |
---|
| 6905 | # CDPATH. |
---|
| 6906 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
| 6907 | |
---|
| 6908 | |
---|
| 6909 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
| 6910 | # ---------------------------------------- |
---|
| 6911 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
| 6912 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
| 6913 | # script with STATUS, using 1 if that was 0. |
---|
| 6914 | as_fn_error () |
---|
| 6915 | { |
---|
| 6916 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
| 6917 | if test "$4"; then |
---|
| 6918 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 6919 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
[107] | 6920 | fi |
---|
[788] | 6921 | $as_echo "$as_me: error: $2" >&2 |
---|
| 6922 | as_fn_exit $as_status |
---|
| 6923 | } # as_fn_error |
---|
[107] | 6924 | |
---|
[788] | 6925 | |
---|
| 6926 | # as_fn_set_status STATUS |
---|
| 6927 | # ----------------------- |
---|
| 6928 | # Set $? to STATUS, without forking. |
---|
| 6929 | as_fn_set_status () |
---|
| 6930 | { |
---|
| 6931 | return $1 |
---|
| 6932 | } # as_fn_set_status |
---|
| 6933 | |
---|
| 6934 | # as_fn_exit STATUS |
---|
| 6935 | # ----------------- |
---|
| 6936 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
| 6937 | as_fn_exit () |
---|
| 6938 | { |
---|
| 6939 | set +e |
---|
| 6940 | as_fn_set_status $1 |
---|
| 6941 | exit $1 |
---|
| 6942 | } # as_fn_exit |
---|
| 6943 | |
---|
| 6944 | # as_fn_unset VAR |
---|
| 6945 | # --------------- |
---|
| 6946 | # Portably unset VAR. |
---|
| 6947 | as_fn_unset () |
---|
| 6948 | { |
---|
| 6949 | { eval $1=; unset $1;} |
---|
| 6950 | } |
---|
| 6951 | as_unset=as_fn_unset |
---|
| 6952 | # as_fn_append VAR VALUE |
---|
| 6953 | # ---------------------- |
---|
| 6954 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
| 6955 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
| 6956 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
| 6957 | # implementations. |
---|
| 6958 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
| 6959 | eval 'as_fn_append () |
---|
| 6960 | { |
---|
| 6961 | eval $1+=\$2 |
---|
| 6962 | }' |
---|
| 6963 | else |
---|
| 6964 | as_fn_append () |
---|
| 6965 | { |
---|
| 6966 | eval $1=\$$1\$2 |
---|
| 6967 | } |
---|
| 6968 | fi # as_fn_append |
---|
| 6969 | |
---|
| 6970 | # as_fn_arith ARG... |
---|
| 6971 | # ------------------ |
---|
| 6972 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
| 6973 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
| 6974 | # must be portable across $(()) and expr. |
---|
| 6975 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
| 6976 | eval 'as_fn_arith () |
---|
| 6977 | { |
---|
| 6978 | as_val=$(( $* )) |
---|
| 6979 | }' |
---|
| 6980 | else |
---|
| 6981 | as_fn_arith () |
---|
| 6982 | { |
---|
| 6983 | as_val=`expr "$@" || test $? -eq 1` |
---|
| 6984 | } |
---|
| 6985 | fi # as_fn_arith |
---|
| 6986 | |
---|
| 6987 | |
---|
[763] | 6988 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 6989 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
[107] | 6990 | as_expr=expr |
---|
| 6991 | else |
---|
| 6992 | as_expr=false |
---|
| 6993 | fi |
---|
| 6994 | |
---|
[763] | 6995 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
[107] | 6996 | as_basename=basename |
---|
| 6997 | else |
---|
| 6998 | as_basename=false |
---|
| 6999 | fi |
---|
| 7000 | |
---|
[788] | 7001 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
| 7002 | as_dirname=dirname |
---|
| 7003 | else |
---|
| 7004 | as_dirname=false |
---|
| 7005 | fi |
---|
[107] | 7006 | |
---|
[763] | 7007 | as_me=`$as_basename -- "$0" || |
---|
[107] | 7008 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 7009 | X"$0" : 'X\(//\)$' \| \ |
---|
[763] | 7010 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
[788] | 7011 | $as_echo X/"$0" | |
---|
[763] | 7012 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
| 7013 | s//\1/ |
---|
| 7014 | q |
---|
| 7015 | } |
---|
| 7016 | /^X\/\(\/\/\)$/{ |
---|
| 7017 | s//\1/ |
---|
| 7018 | q |
---|
| 7019 | } |
---|
| 7020 | /^X\/\(\/\).*/{ |
---|
| 7021 | s//\1/ |
---|
| 7022 | q |
---|
| 7023 | } |
---|
| 7024 | s/.*/./; q'` |
---|
[107] | 7025 | |
---|
[788] | 7026 | # Avoid depending upon Character Ranges. |
---|
| 7027 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 7028 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 7029 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 7030 | as_cr_digits='0123456789' |
---|
| 7031 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
[107] | 7032 | |
---|
[763] | 7033 | ECHO_C= ECHO_N= ECHO_T= |
---|
[788] | 7034 | case `echo -n x` in #((((( |
---|
[763] | 7035 | -n*) |
---|
[788] | 7036 | case `echo 'xy\c'` in |
---|
[763] | 7037 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
[788] | 7038 | xy) ECHO_C='\c';; |
---|
| 7039 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
| 7040 | ECHO_T=' ';; |
---|
[763] | 7041 | esac;; |
---|
| 7042 | *) |
---|
| 7043 | ECHO_N='-n';; |
---|
[107] | 7044 | esac |
---|
| 7045 | |
---|
| 7046 | rm -f conf$$ conf$$.exe conf$$.file |
---|
[763] | 7047 | if test -d conf$$.dir; then |
---|
| 7048 | rm -f conf$$.dir/conf$$.file |
---|
| 7049 | else |
---|
| 7050 | rm -f conf$$.dir |
---|
[788] | 7051 | mkdir conf$$.dir 2>/dev/null |
---|
[763] | 7052 | fi |
---|
[788] | 7053 | if (echo >conf$$.file) 2>/dev/null; then |
---|
| 7054 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 7055 | as_ln_s='ln -s' |
---|
| 7056 | # ... but there are two gotchas: |
---|
| 7057 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
| 7058 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
[1224] | 7059 | # In both cases, we have to default to `cp -pR'. |
---|
[788] | 7060 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
[1224] | 7061 | as_ln_s='cp -pR' |
---|
[788] | 7062 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 7063 | as_ln_s=ln |
---|
| 7064 | else |
---|
[1224] | 7065 | as_ln_s='cp -pR' |
---|
[788] | 7066 | fi |
---|
[107] | 7067 | else |
---|
[1224] | 7068 | as_ln_s='cp -pR' |
---|
[107] | 7069 | fi |
---|
[763] | 7070 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
| 7071 | rmdir conf$$.dir 2>/dev/null |
---|
[107] | 7072 | |
---|
[788] | 7073 | |
---|
| 7074 | # as_fn_mkdir_p |
---|
| 7075 | # ------------- |
---|
| 7076 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
| 7077 | as_fn_mkdir_p () |
---|
| 7078 | { |
---|
| 7079 | |
---|
| 7080 | case $as_dir in #( |
---|
| 7081 | -*) as_dir=./$as_dir;; |
---|
| 7082 | esac |
---|
| 7083 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
| 7084 | as_dirs= |
---|
| 7085 | while :; do |
---|
| 7086 | case $as_dir in #( |
---|
| 7087 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
| 7088 | *) as_qdir=$as_dir;; |
---|
| 7089 | esac |
---|
| 7090 | as_dirs="'$as_qdir' $as_dirs" |
---|
| 7091 | as_dir=`$as_dirname -- "$as_dir" || |
---|
| 7092 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7093 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 7094 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 7095 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 7096 | $as_echo X"$as_dir" | |
---|
| 7097 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 7098 | s//\1/ |
---|
| 7099 | q |
---|
| 7100 | } |
---|
| 7101 | /^X\(\/\/\)[^/].*/{ |
---|
| 7102 | s//\1/ |
---|
| 7103 | q |
---|
| 7104 | } |
---|
| 7105 | /^X\(\/\/\)$/{ |
---|
| 7106 | s//\1/ |
---|
| 7107 | q |
---|
| 7108 | } |
---|
| 7109 | /^X\(\/\).*/{ |
---|
| 7110 | s//\1/ |
---|
| 7111 | q |
---|
| 7112 | } |
---|
| 7113 | s/.*/./; q'` |
---|
| 7114 | test -d "$as_dir" && break |
---|
| 7115 | done |
---|
| 7116 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
| 7117 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
| 7118 | |
---|
| 7119 | |
---|
| 7120 | } # as_fn_mkdir_p |
---|
[107] | 7121 | if mkdir -p . 2>/dev/null; then |
---|
[788] | 7122 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
[107] | 7123 | else |
---|
[349] | 7124 | test -d ./-p && rmdir ./-p |
---|
[107] | 7125 | as_mkdir_p=false |
---|
| 7126 | fi |
---|
| 7127 | |
---|
| 7128 | |
---|
[1224] | 7129 | # as_fn_executable_p FILE |
---|
| 7130 | # ----------------------- |
---|
| 7131 | # Test if FILE is an executable regular file. |
---|
| 7132 | as_fn_executable_p () |
---|
| 7133 | { |
---|
| 7134 | test -f "$1" && test -x "$1" |
---|
| 7135 | } # as_fn_executable_p |
---|
| 7136 | as_test_x='test -x' |
---|
| 7137 | as_executable_p=as_fn_executable_p |
---|
| 7138 | |
---|
[107] | 7139 | # Sed expression to map a string onto a valid CPP name. |
---|
[349] | 7140 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
[107] | 7141 | |
---|
| 7142 | # Sed expression to map a string onto a valid variable name. |
---|
[349] | 7143 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
[107] | 7144 | |
---|
| 7145 | |
---|
| 7146 | exec 6>&1 |
---|
[788] | 7147 | ## ----------------------------------- ## |
---|
| 7148 | ## Main body of $CONFIG_STATUS script. ## |
---|
| 7149 | ## ----------------------------------- ## |
---|
| 7150 | _ASEOF |
---|
| 7151 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
[107] | 7152 | |
---|
[788] | 7153 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 7154 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
[107] | 7155 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
[763] | 7156 | # values after options handling. |
---|
| 7157 | ac_log=" |
---|
[1229] | 7158 | This file was extended by Duchamp $as_me 1.4, which was |
---|
[1224] | 7159 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
[107] | 7160 | |
---|
| 7161 | CONFIG_FILES = $CONFIG_FILES |
---|
| 7162 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 7163 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 7164 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 7165 | $ $0 $@ |
---|
| 7166 | |
---|
[763] | 7167 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 7168 | " |
---|
| 7169 | |
---|
[107] | 7170 | _ACEOF |
---|
| 7171 | |
---|
[788] | 7172 | case $ac_config_files in *" |
---|
| 7173 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
| 7174 | esac |
---|
| 7175 | |
---|
| 7176 | case $ac_config_headers in *" |
---|
| 7177 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
| 7178 | esac |
---|
| 7179 | |
---|
| 7180 | |
---|
| 7181 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
[107] | 7182 | # Files that config.status was made for. |
---|
[763] | 7183 | config_files="$ac_config_files" |
---|
| 7184 | config_headers="$ac_config_headers" |
---|
[107] | 7185 | |
---|
[763] | 7186 | _ACEOF |
---|
[107] | 7187 | |
---|
[788] | 7188 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
[107] | 7189 | ac_cs_usage="\ |
---|
[788] | 7190 | \`$as_me' instantiates files and other configuration actions |
---|
| 7191 | from templates according to the current configuration. Unless the files |
---|
| 7192 | and actions are specified as TAGs, all are instantiated by default. |
---|
[107] | 7193 | |
---|
[788] | 7194 | Usage: $0 [OPTION]... [TAG]... |
---|
[107] | 7195 | |
---|
| 7196 | -h, --help print this help, then exit |
---|
[763] | 7197 | -V, --version print version number and configuration settings, then exit |
---|
[788] | 7198 | --config print configuration, then exit |
---|
| 7199 | -q, --quiet, --silent |
---|
| 7200 | do not print progress messages |
---|
[107] | 7201 | -d, --debug don't remove temporary files |
---|
| 7202 | --recheck update $as_me by reconfiguring in the same conditions |
---|
[788] | 7203 | --file=FILE[:TEMPLATE] |
---|
| 7204 | instantiate the configuration file FILE |
---|
| 7205 | --header=FILE[:TEMPLATE] |
---|
| 7206 | instantiate the configuration header FILE |
---|
[107] | 7207 | |
---|
| 7208 | Configuration files: |
---|
| 7209 | $config_files |
---|
| 7210 | |
---|
| 7211 | Configuration headers: |
---|
| 7212 | $config_headers |
---|
| 7213 | |
---|
[788] | 7214 | Report bugs to <Matthew.Whiting@csiro.au>." |
---|
[763] | 7215 | |
---|
[107] | 7216 | _ACEOF |
---|
[788] | 7217 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 7218 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
[107] | 7219 | ac_cs_version="\\ |
---|
[1229] | 7220 | Duchamp config.status 1.4 |
---|
[1224] | 7221 | configured by $0, generated by GNU Autoconf 2.69, |
---|
[788] | 7222 | with options \\"\$ac_cs_config\\" |
---|
[107] | 7223 | |
---|
[1224] | 7224 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
[107] | 7225 | This config.status script is free software; the Free Software Foundation |
---|
| 7226 | gives unlimited permission to copy, distribute and modify it." |
---|
[763] | 7227 | |
---|
| 7228 | ac_pwd='$ac_pwd' |
---|
| 7229 | srcdir='$srcdir' |
---|
[788] | 7230 | test -n "\$AWK" || AWK=awk |
---|
[107] | 7231 | _ACEOF |
---|
| 7232 | |
---|
[788] | 7233 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 7234 | # The default lists apply if the user does not specify any file. |
---|
[107] | 7235 | ac_need_defaults=: |
---|
| 7236 | while test $# != 0 |
---|
| 7237 | do |
---|
| 7238 | case $1 in |
---|
[788] | 7239 | --*=?*) |
---|
[763] | 7240 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
| 7241 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
[107] | 7242 | ac_shift=: |
---|
| 7243 | ;; |
---|
[788] | 7244 | --*=) |
---|
| 7245 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
| 7246 | ac_optarg= |
---|
| 7247 | ac_shift=: |
---|
| 7248 | ;; |
---|
[763] | 7249 | *) |
---|
[107] | 7250 | ac_option=$1 |
---|
| 7251 | ac_optarg=$2 |
---|
| 7252 | ac_shift=shift |
---|
| 7253 | ;; |
---|
| 7254 | esac |
---|
| 7255 | |
---|
| 7256 | case $ac_option in |
---|
| 7257 | # Handling of the options. |
---|
| 7258 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 7259 | ac_cs_recheck=: ;; |
---|
[763] | 7260 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
[788] | 7261 | $as_echo "$ac_cs_version"; exit ;; |
---|
| 7262 | --config | --confi | --conf | --con | --co | --c ) |
---|
| 7263 | $as_echo "$ac_cs_config"; exit ;; |
---|
[763] | 7264 | --debug | --debu | --deb | --de | --d | -d ) |
---|
[107] | 7265 | debug=: ;; |
---|
| 7266 | --file | --fil | --fi | --f ) |
---|
| 7267 | $ac_shift |
---|
[788] | 7268 | case $ac_optarg in |
---|
| 7269 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 7270 | '') as_fn_error $? "missing file argument" ;; |
---|
| 7271 | esac |
---|
| 7272 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
[107] | 7273 | ac_need_defaults=false;; |
---|
| 7274 | --header | --heade | --head | --hea ) |
---|
| 7275 | $ac_shift |
---|
[788] | 7276 | case $ac_optarg in |
---|
| 7277 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 7278 | esac |
---|
| 7279 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
[107] | 7280 | ac_need_defaults=false;; |
---|
[763] | 7281 | --he | --h) |
---|
| 7282 | # Conflict between --help and --header |
---|
[788] | 7283 | as_fn_error $? "ambiguous option: \`$1' |
---|
| 7284 | Try \`$0 --help' for more information.";; |
---|
[763] | 7285 | --help | --hel | -h ) |
---|
[788] | 7286 | $as_echo "$ac_cs_usage"; exit ;; |
---|
[107] | 7287 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 7288 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 7289 | ac_cs_silent=: ;; |
---|
| 7290 | |
---|
| 7291 | # This is an error. |
---|
[788] | 7292 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
| 7293 | Try \`$0 --help' for more information." ;; |
---|
[107] | 7294 | |
---|
[788] | 7295 | *) as_fn_append ac_config_targets " $1" |
---|
[763] | 7296 | ac_need_defaults=false ;; |
---|
[107] | 7297 | |
---|
| 7298 | esac |
---|
| 7299 | shift |
---|
| 7300 | done |
---|
| 7301 | |
---|
| 7302 | ac_configure_extra_args= |
---|
| 7303 | |
---|
| 7304 | if $ac_cs_silent; then |
---|
| 7305 | exec 6>/dev/null |
---|
| 7306 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 7307 | fi |
---|
| 7308 | |
---|
| 7309 | _ACEOF |
---|
[788] | 7310 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
[107] | 7311 | if \$ac_cs_recheck; then |
---|
[1224] | 7312 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
[788] | 7313 | shift |
---|
| 7314 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
| 7315 | CONFIG_SHELL='$SHELL' |
---|
[763] | 7316 | export CONFIG_SHELL |
---|
[788] | 7317 | exec "\$@" |
---|
[107] | 7318 | fi |
---|
| 7319 | |
---|
| 7320 | _ACEOF |
---|
[788] | 7321 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
[763] | 7322 | exec 5>>config.log |
---|
| 7323 | { |
---|
| 7324 | echo |
---|
| 7325 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 7326 | ## Running $as_me. ## |
---|
| 7327 | _ASBOX |
---|
[788] | 7328 | $as_echo "$ac_log" |
---|
[763] | 7329 | } >&5 |
---|
[107] | 7330 | |
---|
[763] | 7331 | _ACEOF |
---|
[788] | 7332 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
[763] | 7333 | _ACEOF |
---|
[107] | 7334 | |
---|
[788] | 7335 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
[107] | 7336 | |
---|
[763] | 7337 | # Handling of arguments. |
---|
[107] | 7338 | for ac_config_target in $ac_config_targets |
---|
| 7339 | do |
---|
[763] | 7340 | case $ac_config_target in |
---|
| 7341 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
---|
| 7342 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
| 7343 | |
---|
[788] | 7344 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
[107] | 7345 | esac |
---|
| 7346 | done |
---|
| 7347 | |
---|
[763] | 7348 | |
---|
[107] | 7349 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 7350 | # then the envvar interface is used. Set only those that are not. |
---|
| 7351 | # We use the long form for the default assignment because of an extremely |
---|
| 7352 | # bizarre bug on SunOS 4.1.3. |
---|
| 7353 | if $ac_need_defaults; then |
---|
| 7354 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 7355 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 7356 | fi |
---|
| 7357 | |
---|
| 7358 | # Have a temporary directory for convenience. Make it in the build tree |
---|
[763] | 7359 | # simply because there is no reason against having it here, and in addition, |
---|
[107] | 7360 | # creating and moving files from /tmp can sometimes cause problems. |
---|
[763] | 7361 | # Hook for its removal unless debugging. |
---|
| 7362 | # Note that there is a small window in which the directory will not be cleaned: |
---|
| 7363 | # after its creation but before its name has been assigned to `$tmp'. |
---|
[107] | 7364 | $debug || |
---|
| 7365 | { |
---|
[788] | 7366 | tmp= ac_tmp= |
---|
[763] | 7367 | trap 'exit_status=$? |
---|
[788] | 7368 | : "${ac_tmp:=$tmp}" |
---|
| 7369 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
[763] | 7370 | ' 0 |
---|
[788] | 7371 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
[107] | 7372 | } |
---|
| 7373 | # Create a (secure) tmp directory for tmp files. |
---|
| 7374 | |
---|
| 7375 | { |
---|
[763] | 7376 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
[788] | 7377 | test -d "$tmp" |
---|
[107] | 7378 | } || |
---|
| 7379 | { |
---|
[763] | 7380 | tmp=./conf$$-$RANDOM |
---|
| 7381 | (umask 077 && mkdir "$tmp") |
---|
[788] | 7382 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
| 7383 | ac_tmp=$tmp |
---|
[107] | 7384 | |
---|
[788] | 7385 | # Set up the scripts for CONFIG_FILES section. |
---|
| 7386 | # No need to generate them if there are no CONFIG_FILES. |
---|
| 7387 | # This happens for instance with `./config.status config.h'. |
---|
[763] | 7388 | if test -n "$CONFIG_FILES"; then |
---|
[107] | 7389 | |
---|
[788] | 7390 | |
---|
| 7391 | ac_cr=`echo X | tr X '\015'` |
---|
| 7392 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
| 7393 | # But we know of no other shell where ac_cr would be empty at this |
---|
| 7394 | # point, so we can use a bashism as a fallback. |
---|
| 7395 | if test "x$ac_cr" = x; then |
---|
| 7396 | eval ac_cr=\$\'\\r\' |
---|
| 7397 | fi |
---|
| 7398 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
| 7399 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
| 7400 | ac_cs_awk_cr='\\r' |
---|
| 7401 | else |
---|
| 7402 | ac_cs_awk_cr=$ac_cr |
---|
| 7403 | fi |
---|
| 7404 | |
---|
| 7405 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
[107] | 7406 | _ACEOF |
---|
| 7407 | |
---|
[763] | 7408 | |
---|
[788] | 7409 | { |
---|
| 7410 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
| 7411 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
| 7412 | echo "_ACEOF" |
---|
| 7413 | } >conf$$subs.sh || |
---|
| 7414 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
| 7415 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
[763] | 7416 | ac_delim='%!_!# ' |
---|
| 7417 | for ac_last_try in false false false false false :; do |
---|
[788] | 7418 | . ./conf$$subs.sh || |
---|
| 7419 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
[763] | 7420 | |
---|
[788] | 7421 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
| 7422 | if test $ac_delim_n = $ac_delim_num; then |
---|
[763] | 7423 | break |
---|
| 7424 | elif $ac_last_try; then |
---|
[788] | 7425 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
[763] | 7426 | else |
---|
| 7427 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
[107] | 7428 | fi |
---|
[763] | 7429 | done |
---|
[788] | 7430 | rm -f conf$$subs.sh |
---|
[107] | 7431 | |
---|
[788] | 7432 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 7433 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
| 7434 | _ACEOF |
---|
| 7435 | sed -n ' |
---|
| 7436 | h |
---|
| 7437 | s/^/S["/; s/!.*/"]=/ |
---|
| 7438 | p |
---|
| 7439 | g |
---|
| 7440 | s/^[^!]*!// |
---|
| 7441 | :repl |
---|
| 7442 | t repl |
---|
| 7443 | s/'"$ac_delim"'$// |
---|
| 7444 | t delim |
---|
| 7445 | :nl |
---|
| 7446 | h |
---|
| 7447 | s/\(.\{148\}\)..*/\1/ |
---|
| 7448 | t more1 |
---|
| 7449 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
| 7450 | p |
---|
| 7451 | n |
---|
| 7452 | b repl |
---|
| 7453 | :more1 |
---|
| 7454 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
| 7455 | p |
---|
| 7456 | g |
---|
| 7457 | s/.\{148\}// |
---|
| 7458 | t nl |
---|
| 7459 | :delim |
---|
| 7460 | h |
---|
| 7461 | s/\(.\{148\}\)..*/\1/ |
---|
| 7462 | t more2 |
---|
| 7463 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
| 7464 | p |
---|
| 7465 | b |
---|
| 7466 | :more2 |
---|
| 7467 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
| 7468 | p |
---|
| 7469 | g |
---|
| 7470 | s/.\{148\}// |
---|
| 7471 | t delim |
---|
| 7472 | ' <conf$$subs.awk | sed ' |
---|
| 7473 | /^[^""]/{ |
---|
| 7474 | N |
---|
| 7475 | s/\n// |
---|
| 7476 | } |
---|
| 7477 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
| 7478 | rm -f conf$$subs.awk |
---|
| 7479 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 7480 | _ACAWK |
---|
| 7481 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
| 7482 | for (key in S) S_is_set[key] = 1 |
---|
| 7483 | FS = "" |
---|
[763] | 7484 | |
---|
[788] | 7485 | } |
---|
| 7486 | { |
---|
| 7487 | line = $ 0 |
---|
| 7488 | nfields = split(line, field, "@") |
---|
| 7489 | substed = 0 |
---|
| 7490 | len = length(field[1]) |
---|
| 7491 | for (i = 2; i < nfields; i++) { |
---|
| 7492 | key = field[i] |
---|
| 7493 | keylen = length(key) |
---|
| 7494 | if (S_is_set[key]) { |
---|
| 7495 | value = S[key] |
---|
| 7496 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
| 7497 | len += length(value) + length(field[++i]) |
---|
| 7498 | substed = 1 |
---|
| 7499 | } else |
---|
| 7500 | len += 1 + keylen |
---|
| 7501 | } |
---|
| 7502 | |
---|
| 7503 | print line |
---|
| 7504 | } |
---|
| 7505 | |
---|
| 7506 | _ACAWK |
---|
[107] | 7507 | _ACEOF |
---|
[788] | 7508 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 7509 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
| 7510 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
| 7511 | else |
---|
| 7512 | cat |
---|
| 7513 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
| 7514 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
[763] | 7515 | _ACEOF |
---|
| 7516 | |
---|
[788] | 7517 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
| 7518 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
[763] | 7519 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 7520 | # (actually we leave an empty line to preserve line numbers). |
---|
| 7521 | if test "x$srcdir" = x.; then |
---|
[788] | 7522 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
| 7523 | h |
---|
| 7524 | s/// |
---|
| 7525 | s/^/:/ |
---|
| 7526 | s/[ ]*$/:/ |
---|
| 7527 | s/:\$(srcdir):/:/g |
---|
| 7528 | s/:\${srcdir}:/:/g |
---|
| 7529 | s/:@srcdir@:/:/g |
---|
| 7530 | s/^:*// |
---|
[763] | 7531 | s/:*$// |
---|
[788] | 7532 | x |
---|
| 7533 | s/\(=[ ]*\).*/\1/ |
---|
| 7534 | G |
---|
| 7535 | s/\n// |
---|
[763] | 7536 | s/^[^=]*=[ ]*$// |
---|
| 7537 | }' |
---|
| 7538 | fi |
---|
| 7539 | |
---|
[788] | 7540 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
[763] | 7541 | fi # test -n "$CONFIG_FILES" |
---|
| 7542 | |
---|
[788] | 7543 | # Set up the scripts for CONFIG_HEADERS section. |
---|
| 7544 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
| 7545 | # This happens for instance with `./config.status Makefile'. |
---|
| 7546 | if test -n "$CONFIG_HEADERS"; then |
---|
| 7547 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
---|
| 7548 | BEGIN { |
---|
| 7549 | _ACEOF |
---|
[763] | 7550 | |
---|
[788] | 7551 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
| 7552 | # here-document in config.status, that substitutes the proper values into |
---|
| 7553 | # config.h.in to produce config.h. |
---|
| 7554 | |
---|
| 7555 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
| 7556 | # handling of long lines. |
---|
| 7557 | ac_delim='%!_!# ' |
---|
| 7558 | for ac_last_try in false false :; do |
---|
| 7559 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
---|
| 7560 | if test -z "$ac_tt"; then |
---|
| 7561 | break |
---|
| 7562 | elif $ac_last_try; then |
---|
| 7563 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
| 7564 | else |
---|
| 7565 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
| 7566 | fi |
---|
| 7567 | done |
---|
| 7568 | |
---|
| 7569 | # For the awk script, D is an array of macro values keyed by name, |
---|
| 7570 | # likewise P contains macro parameters if any. Preserve backslash |
---|
| 7571 | # newline sequences. |
---|
| 7572 | |
---|
| 7573 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
| 7574 | sed -n ' |
---|
| 7575 | s/.\{148\}/&'"$ac_delim"'/g |
---|
| 7576 | t rset |
---|
| 7577 | :rset |
---|
| 7578 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
| 7579 | t def |
---|
| 7580 | d |
---|
| 7581 | :def |
---|
| 7582 | s/\\$// |
---|
| 7583 | t bsnl |
---|
| 7584 | s/["\\]/\\&/g |
---|
| 7585 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
| 7586 | D["\1"]=" \3"/p |
---|
| 7587 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
| 7588 | d |
---|
| 7589 | :bsnl |
---|
| 7590 | s/["\\]/\\&/g |
---|
| 7591 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
| 7592 | D["\1"]=" \3\\\\\\n"\\/p |
---|
| 7593 | t cont |
---|
| 7594 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
| 7595 | t cont |
---|
| 7596 | d |
---|
| 7597 | :cont |
---|
| 7598 | n |
---|
| 7599 | s/.\{148\}/&'"$ac_delim"'/g |
---|
| 7600 | t clear |
---|
| 7601 | :clear |
---|
| 7602 | s/\\$// |
---|
| 7603 | t bsnlc |
---|
| 7604 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
| 7605 | d |
---|
| 7606 | :bsnlc |
---|
| 7607 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
| 7608 | b cont |
---|
| 7609 | ' <confdefs.h | sed ' |
---|
| 7610 | s/'"$ac_delim"'/"\\\ |
---|
| 7611 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
| 7612 | |
---|
| 7613 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 7614 | for (key in D) D_is_set[key] = 1 |
---|
| 7615 | FS = "" |
---|
| 7616 | } |
---|
| 7617 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
| 7618 | line = \$ 0 |
---|
| 7619 | split(line, arg, " ") |
---|
| 7620 | if (arg[1] == "#") { |
---|
| 7621 | defundef = arg[2] |
---|
| 7622 | mac1 = arg[3] |
---|
| 7623 | } else { |
---|
| 7624 | defundef = substr(arg[1], 2) |
---|
| 7625 | mac1 = arg[2] |
---|
| 7626 | } |
---|
| 7627 | split(mac1, mac2, "(") #) |
---|
| 7628 | macro = mac2[1] |
---|
| 7629 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
| 7630 | if (D_is_set[macro]) { |
---|
| 7631 | # Preserve the white space surrounding the "#". |
---|
| 7632 | print prefix "define", macro P[macro] D[macro] |
---|
| 7633 | next |
---|
| 7634 | } else { |
---|
| 7635 | # Replace #undef with comments. This is necessary, for example, |
---|
| 7636 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 7637 | # on some systems where configure will not decide to define it. |
---|
| 7638 | if (defundef == "undef") { |
---|
| 7639 | print "/*", prefix defundef, macro, "*/" |
---|
| 7640 | next |
---|
| 7641 | } |
---|
| 7642 | } |
---|
| 7643 | } |
---|
| 7644 | { print } |
---|
| 7645 | _ACAWK |
---|
| 7646 | _ACEOF |
---|
| 7647 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 7648 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
---|
| 7649 | fi # test -n "$CONFIG_HEADERS" |
---|
| 7650 | |
---|
| 7651 | |
---|
| 7652 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
---|
| 7653 | shift |
---|
| 7654 | for ac_tag |
---|
[763] | 7655 | do |
---|
| 7656 | case $ac_tag in |
---|
| 7657 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
[107] | 7658 | esac |
---|
[763] | 7659 | case $ac_mode$ac_tag in |
---|
| 7660 | :[FHL]*:*);; |
---|
[788] | 7661 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
[763] | 7662 | :[FH]-) ac_tag=-:-;; |
---|
| 7663 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
| 7664 | esac |
---|
| 7665 | ac_save_IFS=$IFS |
---|
| 7666 | IFS=: |
---|
| 7667 | set x $ac_tag |
---|
| 7668 | IFS=$ac_save_IFS |
---|
| 7669 | shift |
---|
| 7670 | ac_file=$1 |
---|
| 7671 | shift |
---|
[107] | 7672 | |
---|
[763] | 7673 | case $ac_mode in |
---|
| 7674 | :L) ac_source=$1;; |
---|
| 7675 | :[FH]) |
---|
| 7676 | ac_file_inputs= |
---|
| 7677 | for ac_f |
---|
| 7678 | do |
---|
| 7679 | case $ac_f in |
---|
[788] | 7680 | -) ac_f="$ac_tmp/stdin";; |
---|
[763] | 7681 | *) # Look for the file first in the build tree, then in the source tree |
---|
| 7682 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
| 7683 | # because $ac_f cannot contain `:'. |
---|
| 7684 | test -f "$ac_f" || |
---|
| 7685 | case $ac_f in |
---|
| 7686 | [\\/$]*) false;; |
---|
| 7687 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
| 7688 | esac || |
---|
[788] | 7689 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
[763] | 7690 | esac |
---|
[788] | 7691 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
| 7692 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
[763] | 7693 | done |
---|
| 7694 | |
---|
| 7695 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 7696 | # use $as_me), people would be surprised to read: |
---|
| 7697 | # /* config.h. Generated by config.status. */ |
---|
[788] | 7698 | configure_input='Generated from '` |
---|
| 7699 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
| 7700 | `' by configure.' |
---|
[763] | 7701 | if test x"$ac_file" != x-; then |
---|
| 7702 | configure_input="$ac_file. $configure_input" |
---|
[788] | 7703 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
| 7704 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
[763] | 7705 | fi |
---|
[788] | 7706 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
| 7707 | case $configure_input in #( |
---|
| 7708 | *\&* | *\|* | *\\* ) |
---|
| 7709 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
| 7710 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
| 7711 | *) ac_sed_conf_input=$configure_input;; |
---|
| 7712 | esac |
---|
[763] | 7713 | |
---|
| 7714 | case $ac_tag in |
---|
[788] | 7715 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
| 7716 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
[763] | 7717 | esac |
---|
| 7718 | ;; |
---|
| 7719 | esac |
---|
| 7720 | |
---|
| 7721 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
[107] | 7722 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
[349] | 7723 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 7724 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
[763] | 7725 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
[788] | 7726 | $as_echo X"$ac_file" | |
---|
[763] | 7727 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 7728 | s//\1/ |
---|
| 7729 | q |
---|
| 7730 | } |
---|
| 7731 | /^X\(\/\/\)[^/].*/{ |
---|
| 7732 | s//\1/ |
---|
| 7733 | q |
---|
| 7734 | } |
---|
| 7735 | /^X\(\/\/\)$/{ |
---|
| 7736 | s//\1/ |
---|
| 7737 | q |
---|
| 7738 | } |
---|
| 7739 | /^X\(\/\).*/{ |
---|
| 7740 | s//\1/ |
---|
| 7741 | q |
---|
| 7742 | } |
---|
| 7743 | s/.*/./; q'` |
---|
[788] | 7744 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
[107] | 7745 | ac_builddir=. |
---|
| 7746 | |
---|
[763] | 7747 | case "$ac_dir" in |
---|
| 7748 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 7749 | *) |
---|
[788] | 7750 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
[763] | 7751 | # A ".." for each directory in $ac_dir_suffix. |
---|
[788] | 7752 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
[763] | 7753 | case $ac_top_builddir_sub in |
---|
| 7754 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 7755 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
| 7756 | esac ;; |
---|
| 7757 | esac |
---|
| 7758 | ac_abs_top_builddir=$ac_pwd |
---|
| 7759 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
| 7760 | # for backward compatibility: |
---|
| 7761 | ac_top_builddir=$ac_top_build_prefix |
---|
[107] | 7762 | |
---|
| 7763 | case $srcdir in |
---|
[763] | 7764 | .) # We are building in place. |
---|
[107] | 7765 | ac_srcdir=. |
---|
[763] | 7766 | ac_top_srcdir=$ac_top_builddir_sub |
---|
| 7767 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
| 7768 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
[107] | 7769 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
[763] | 7770 | ac_top_srcdir=$srcdir |
---|
| 7771 | ac_abs_top_srcdir=$srcdir ;; |
---|
| 7772 | *) # Relative name. |
---|
| 7773 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
| 7774 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
| 7775 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
[107] | 7776 | esac |
---|
[763] | 7777 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
[107] | 7778 | |
---|
| 7779 | |
---|
[763] | 7780 | case $ac_mode in |
---|
| 7781 | :F) |
---|
| 7782 | # |
---|
| 7783 | # CONFIG_FILE |
---|
| 7784 | # |
---|
[107] | 7785 | |
---|
[763] | 7786 | _ACEOF |
---|
[349] | 7787 | |
---|
[788] | 7788 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
[763] | 7789 | # If the template does not know about datarootdir, expand it. |
---|
| 7790 | # FIXME: This hack should be removed a few years after 2.60. |
---|
| 7791 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
[788] | 7792 | ac_sed_dataroot=' |
---|
| 7793 | /datarootdir/ { |
---|
[763] | 7794 | p |
---|
| 7795 | q |
---|
| 7796 | } |
---|
| 7797 | /@datadir@/p |
---|
| 7798 | /@docdir@/p |
---|
| 7799 | /@infodir@/p |
---|
| 7800 | /@localedir@/p |
---|
[788] | 7801 | /@mandir@/p' |
---|
| 7802 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
[763] | 7803 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
| 7804 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
[788] | 7805 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
| 7806 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
[107] | 7807 | _ACEOF |
---|
[788] | 7808 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
[763] | 7809 | ac_datarootdir_hack=' |
---|
| 7810 | s&@datadir@&$datadir&g |
---|
| 7811 | s&@docdir@&$docdir&g |
---|
| 7812 | s&@infodir@&$infodir&g |
---|
| 7813 | s&@localedir@&$localedir&g |
---|
| 7814 | s&@mandir@&$mandir&g |
---|
[788] | 7815 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
[763] | 7816 | esac |
---|
| 7817 | _ACEOF |
---|
| 7818 | |
---|
| 7819 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
| 7820 | # Shell code in configure.ac might set extrasub. |
---|
| 7821 | # FIXME: do we really want to maintain this feature? |
---|
[788] | 7822 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 7823 | ac_sed_extra="$ac_vpsub |
---|
[107] | 7824 | $extrasub |
---|
| 7825 | _ACEOF |
---|
[788] | 7826 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
[107] | 7827 | :t |
---|
| 7828 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
[788] | 7829 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
[763] | 7830 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
[788] | 7831 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
[763] | 7832 | s&@srcdir@&$ac_srcdir&;t t |
---|
| 7833 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
| 7834 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
| 7835 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
| 7836 | s&@builddir@&$ac_builddir&;t t |
---|
| 7837 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
| 7838 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
| 7839 | $ac_datarootdir_hack |
---|
[788] | 7840 | " |
---|
| 7841 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
| 7842 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
[107] | 7843 | |
---|
[763] | 7844 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
[788] | 7845 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
| 7846 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
| 7847 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
| 7848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
| 7849 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
| 7850 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
| 7851 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
[107] | 7852 | |
---|
[788] | 7853 | rm -f "$ac_tmp/stdin" |
---|
[107] | 7854 | case $ac_file in |
---|
[788] | 7855 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
| 7856 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
| 7857 | esac \ |
---|
| 7858 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
[763] | 7859 | ;; |
---|
| 7860 | :H) |
---|
| 7861 | # |
---|
| 7862 | # CONFIG_HEADER |
---|
| 7863 | # |
---|
[107] | 7864 | if test x"$ac_file" != x-; then |
---|
[788] | 7865 | { |
---|
| 7866 | $as_echo "/* $configure_input */" \ |
---|
| 7867 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
---|
| 7868 | } >"$ac_tmp/config.h" \ |
---|
| 7869 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
| 7870 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
---|
| 7871 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
| 7872 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
---|
[107] | 7873 | else |
---|
[788] | 7874 | rm -f "$ac_file" |
---|
| 7875 | mv "$ac_tmp/config.h" "$ac_file" \ |
---|
| 7876 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
[107] | 7877 | fi |
---|
| 7878 | else |
---|
[788] | 7879 | $as_echo "/* $configure_input */" \ |
---|
| 7880 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
---|
| 7881 | || as_fn_error $? "could not create -" "$LINENO" 5 |
---|
[107] | 7882 | fi |
---|
[763] | 7883 | ;; |
---|
[107] | 7884 | |
---|
| 7885 | |
---|
[763] | 7886 | esac |
---|
| 7887 | |
---|
| 7888 | done # for ac_tag |
---|
| 7889 | |
---|
| 7890 | |
---|
[788] | 7891 | as_fn_exit 0 |
---|
[107] | 7892 | _ACEOF |
---|
| 7893 | ac_clean_files=$ac_clean_files_save |
---|
| 7894 | |
---|
[788] | 7895 | test $ac_write_fail = 0 || |
---|
| 7896 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
[107] | 7897 | |
---|
[788] | 7898 | |
---|
[107] | 7899 | # configure is writing to config.log, and then calls config.status. |
---|
| 7900 | # config.status does its own redirection, appending to config.log. |
---|
| 7901 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 7902 | # by configure, so config.status won't be able to write to it; its |
---|
| 7903 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 7904 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 7905 | # appended to by config.status. When coming back to configure, we |
---|
| 7906 | # need to make the FD available again. |
---|
| 7907 | if test "$no_create" != yes; then |
---|
| 7908 | ac_cs_success=: |
---|
| 7909 | ac_config_status_args= |
---|
| 7910 | test "$silent" = yes && |
---|
| 7911 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 7912 | exec 5>/dev/null |
---|
| 7913 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 7914 | exec 5>>config.log |
---|
| 7915 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 7916 | # would make configure fail if this is the last instruction. |
---|
[788] | 7917 | $ac_cs_success || as_fn_exit 1 |
---|
[107] | 7918 | fi |
---|
[788] | 7919 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
| 7920 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
| 7921 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
| 7922 | fi |
---|
[107] | 7923 | |
---|