17d62b00eSchristos#! /bin/sh 27d62b00eSchristos# Guess values for system-dependent variables and create Makefiles. 37d62b00eSchristos# Generated by GNU Autoconf 2.69 for gdbsupport 1.0. 47d62b00eSchristos# 57d62b00eSchristos# 67d62b00eSchristos# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 77d62b00eSchristos# 87d62b00eSchristos# 97d62b00eSchristos# This configure script is free software; the Free Software Foundation 107d62b00eSchristos# gives unlimited permission to copy, distribute and modify it. 117d62b00eSchristos## -------------------- ## 127d62b00eSchristos## M4sh Initialization. ## 137d62b00eSchristos## -------------------- ## 147d62b00eSchristos 157d62b00eSchristos# Be more Bourne compatible 167d62b00eSchristosDUALCASE=1; export DUALCASE # for MKS sh 177d62b00eSchristosif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 187d62b00eSchristos emulate sh 197d62b00eSchristos NULLCMD=: 207d62b00eSchristos # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 217d62b00eSchristos # is contrary to our usage. Disable this feature. 227d62b00eSchristos alias -g '${1+"$@"}'='"$@"' 237d62b00eSchristos setopt NO_GLOB_SUBST 247d62b00eSchristoselse 257d62b00eSchristos case `(set -o) 2>/dev/null` in #( 267d62b00eSchristos *posix*) : 277d62b00eSchristos set -o posix ;; #( 287d62b00eSchristos *) : 297d62b00eSchristos ;; 307d62b00eSchristosesac 317d62b00eSchristosfi 327d62b00eSchristos 337d62b00eSchristos 347d62b00eSchristosas_nl=' 357d62b00eSchristos' 367d62b00eSchristosexport as_nl 377d62b00eSchristos# Printing a long string crashes Solaris 7 /usr/bin/printf. 387d62b00eSchristosas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 397d62b00eSchristosas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 407d62b00eSchristosas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 417d62b00eSchristos# Prefer a ksh shell builtin over an external printf program on Solaris, 427d62b00eSchristos# but without wasting forks for bash or zsh. 437d62b00eSchristosif test -z "$BASH_VERSION$ZSH_VERSION" \ 447d62b00eSchristos && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 457d62b00eSchristos as_echo='print -r --' 467d62b00eSchristos as_echo_n='print -rn --' 477d62b00eSchristoselif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 487d62b00eSchristos as_echo='printf %s\n' 497d62b00eSchristos as_echo_n='printf %s' 507d62b00eSchristoselse 517d62b00eSchristos if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 527d62b00eSchristos as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 537d62b00eSchristos as_echo_n='/usr/ucb/echo -n' 547d62b00eSchristos else 557d62b00eSchristos as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 567d62b00eSchristos as_echo_n_body='eval 577d62b00eSchristos arg=$1; 587d62b00eSchristos case $arg in #( 597d62b00eSchristos *"$as_nl"*) 607d62b00eSchristos expr "X$arg" : "X\\(.*\\)$as_nl"; 617d62b00eSchristos arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 627d62b00eSchristos esac; 637d62b00eSchristos expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 647d62b00eSchristos ' 657d62b00eSchristos export as_echo_n_body 667d62b00eSchristos as_echo_n='sh -c $as_echo_n_body as_echo' 677d62b00eSchristos fi 687d62b00eSchristos export as_echo_body 697d62b00eSchristos as_echo='sh -c $as_echo_body as_echo' 707d62b00eSchristosfi 717d62b00eSchristos 727d62b00eSchristos# The user is always right. 737d62b00eSchristosif test "${PATH_SEPARATOR+set}" != set; then 747d62b00eSchristos PATH_SEPARATOR=: 757d62b00eSchristos (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 767d62b00eSchristos (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 777d62b00eSchristos PATH_SEPARATOR=';' 787d62b00eSchristos } 797d62b00eSchristosfi 807d62b00eSchristos 817d62b00eSchristos 827d62b00eSchristos# IFS 837d62b00eSchristos# We need space, tab and new line, in precisely that order. Quoting is 847d62b00eSchristos# there to prevent editors from complaining about space-tab. 857d62b00eSchristos# (If _AS_PATH_WALK were called with IFS unset, it would disable word 867d62b00eSchristos# splitting by setting IFS to empty value.) 877d62b00eSchristosIFS=" "" $as_nl" 887d62b00eSchristos 897d62b00eSchristos# Find who we are. Look in the path if we contain no directory separator. 907d62b00eSchristosas_myself= 917d62b00eSchristoscase $0 in #(( 927d62b00eSchristos *[\\/]* ) as_myself=$0 ;; 937d62b00eSchristos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 947d62b00eSchristosfor as_dir in $PATH 957d62b00eSchristosdo 967d62b00eSchristos IFS=$as_save_IFS 977d62b00eSchristos test -z "$as_dir" && as_dir=. 987d62b00eSchristos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 997d62b00eSchristos done 1007d62b00eSchristosIFS=$as_save_IFS 1017d62b00eSchristos 1027d62b00eSchristos ;; 1037d62b00eSchristosesac 1047d62b00eSchristos# We did not find ourselves, most probably we were run as `sh COMMAND' 1057d62b00eSchristos# in which case we are not to be found in the path. 1067d62b00eSchristosif test "x$as_myself" = x; then 1077d62b00eSchristos as_myself=$0 1087d62b00eSchristosfi 1097d62b00eSchristosif test ! -f "$as_myself"; then 1107d62b00eSchristos $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1117d62b00eSchristos exit 1 1127d62b00eSchristosfi 1137d62b00eSchristos 1147d62b00eSchristos# Unset variables that we do not need and which cause bugs (e.g. in 1157d62b00eSchristos# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 1167d62b00eSchristos# suppresses any "Segmentation fault" message there. '((' could 1177d62b00eSchristos# trigger a bug in pdksh 5.2.14. 1187d62b00eSchristosfor as_var in BASH_ENV ENV MAIL MAILPATH 1197d62b00eSchristosdo eval test x\${$as_var+set} = xset \ 1207d62b00eSchristos && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 1217d62b00eSchristosdone 1227d62b00eSchristosPS1='$ ' 1237d62b00eSchristosPS2='> ' 1247d62b00eSchristosPS4='+ ' 1257d62b00eSchristos 1267d62b00eSchristos# NLS nuisances. 1277d62b00eSchristosLC_ALL=C 1287d62b00eSchristosexport LC_ALL 1297d62b00eSchristosLANGUAGE=C 1307d62b00eSchristosexport LANGUAGE 1317d62b00eSchristos 1327d62b00eSchristos# CDPATH. 1337d62b00eSchristos(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1347d62b00eSchristos 1357d62b00eSchristos# Use a proper internal environment variable to ensure we don't fall 1367d62b00eSchristos # into an infinite loop, continuously re-executing ourselves. 1377d62b00eSchristos if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 1387d62b00eSchristos _as_can_reexec=no; export _as_can_reexec; 1397d62b00eSchristos # We cannot yet assume a decent shell, so we have to provide a 1407d62b00eSchristos# neutralization value for shells without unset; and this also 1417d62b00eSchristos# works around shells that cannot unset nonexistent variables. 1427d62b00eSchristos# Preserve -v and -x to the replacement shell. 1437d62b00eSchristosBASH_ENV=/dev/null 1447d62b00eSchristosENV=/dev/null 1457d62b00eSchristos(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 1467d62b00eSchristoscase $- in # (((( 1477d62b00eSchristos *v*x* | *x*v* ) as_opts=-vx ;; 1487d62b00eSchristos *v* ) as_opts=-v ;; 1497d62b00eSchristos *x* ) as_opts=-x ;; 1507d62b00eSchristos * ) as_opts= ;; 1517d62b00eSchristosesac 1527d62b00eSchristosexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 1537d62b00eSchristos# Admittedly, this is quite paranoid, since all the known shells bail 1547d62b00eSchristos# out after a failed `exec'. 1557d62b00eSchristos$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 1567d62b00eSchristosas_fn_exit 255 1577d62b00eSchristos fi 1587d62b00eSchristos # We don't want this to propagate to other subprocesses. 1597d62b00eSchristos { _as_can_reexec=; unset _as_can_reexec;} 1607d62b00eSchristosif test "x$CONFIG_SHELL" = x; then 1617d62b00eSchristos as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 1627d62b00eSchristos emulate sh 1637d62b00eSchristos NULLCMD=: 1647d62b00eSchristos # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 1657d62b00eSchristos # is contrary to our usage. Disable this feature. 1667d62b00eSchristos alias -g '\${1+\"\$@\"}'='\"\$@\"' 1677d62b00eSchristos setopt NO_GLOB_SUBST 1687d62b00eSchristoselse 1697d62b00eSchristos case \`(set -o) 2>/dev/null\` in #( 1707d62b00eSchristos *posix*) : 1717d62b00eSchristos set -o posix ;; #( 1727d62b00eSchristos *) : 1737d62b00eSchristos ;; 1747d62b00eSchristosesac 1757d62b00eSchristosfi 1767d62b00eSchristos" 1777d62b00eSchristos as_required="as_fn_return () { (exit \$1); } 1787d62b00eSchristosas_fn_success () { as_fn_return 0; } 1797d62b00eSchristosas_fn_failure () { as_fn_return 1; } 1807d62b00eSchristosas_fn_ret_success () { return 0; } 1817d62b00eSchristosas_fn_ret_failure () { return 1; } 1827d62b00eSchristos 1837d62b00eSchristosexitcode=0 1847d62b00eSchristosas_fn_success || { exitcode=1; echo as_fn_success failed.; } 1857d62b00eSchristosas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 1867d62b00eSchristosas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 1877d62b00eSchristosas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 1887d62b00eSchristosif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 1897d62b00eSchristos 1907d62b00eSchristoselse 1917d62b00eSchristos exitcode=1; echo positional parameters were not saved. 1927d62b00eSchristosfi 1937d62b00eSchristostest x\$exitcode = x0 || exit 1 1947d62b00eSchristostest -x / || exit 1" 1957d62b00eSchristos as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 1967d62b00eSchristos as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 1977d62b00eSchristos eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 1987d62b00eSchristos test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 1997d62b00eSchristostest \$(( 1 + 1 )) = 2 || exit 1" 2007d62b00eSchristos if (eval "$as_required") 2>/dev/null; then : 2017d62b00eSchristos as_have_required=yes 2027d62b00eSchristoselse 2037d62b00eSchristos as_have_required=no 2047d62b00eSchristosfi 2057d62b00eSchristos if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 2067d62b00eSchristos 2077d62b00eSchristoselse 2087d62b00eSchristos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2097d62b00eSchristosas_found=false 2107d62b00eSchristosfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 2117d62b00eSchristosdo 2127d62b00eSchristos IFS=$as_save_IFS 2137d62b00eSchristos test -z "$as_dir" && as_dir=. 2147d62b00eSchristos as_found=: 2157d62b00eSchristos case $as_dir in #( 2167d62b00eSchristos /*) 2177d62b00eSchristos for as_base in sh bash ksh sh5; do 2187d62b00eSchristos # Try only shells that exist, to save several forks. 2197d62b00eSchristos as_shell=$as_dir/$as_base 2207d62b00eSchristos if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 2217d62b00eSchristos { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 2227d62b00eSchristos CONFIG_SHELL=$as_shell as_have_required=yes 2237d62b00eSchristos if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 2247d62b00eSchristos break 2 2257d62b00eSchristosfi 2267d62b00eSchristosfi 2277d62b00eSchristos done;; 2287d62b00eSchristos esac 2297d62b00eSchristos as_found=false 2307d62b00eSchristosdone 2317d62b00eSchristos$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 2327d62b00eSchristos { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 2337d62b00eSchristos CONFIG_SHELL=$SHELL as_have_required=yes 2347d62b00eSchristosfi; } 2357d62b00eSchristosIFS=$as_save_IFS 2367d62b00eSchristos 2377d62b00eSchristos 2387d62b00eSchristos if test "x$CONFIG_SHELL" != x; then : 2397d62b00eSchristos export CONFIG_SHELL 2407d62b00eSchristos # We cannot yet assume a decent shell, so we have to provide a 2417d62b00eSchristos# neutralization value for shells without unset; and this also 2427d62b00eSchristos# works around shells that cannot unset nonexistent variables. 2437d62b00eSchristos# Preserve -v and -x to the replacement shell. 2447d62b00eSchristosBASH_ENV=/dev/null 2457d62b00eSchristosENV=/dev/null 2467d62b00eSchristos(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 2477d62b00eSchristoscase $- in # (((( 2487d62b00eSchristos *v*x* | *x*v* ) as_opts=-vx ;; 2497d62b00eSchristos *v* ) as_opts=-v ;; 2507d62b00eSchristos *x* ) as_opts=-x ;; 2517d62b00eSchristos * ) as_opts= ;; 2527d62b00eSchristosesac 2537d62b00eSchristosexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 2547d62b00eSchristos# Admittedly, this is quite paranoid, since all the known shells bail 2557d62b00eSchristos# out after a failed `exec'. 2567d62b00eSchristos$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 2577d62b00eSchristosexit 255 2587d62b00eSchristosfi 2597d62b00eSchristos 2607d62b00eSchristos if test x$as_have_required = xno; then : 2617d62b00eSchristos $as_echo "$0: This script requires a shell more modern than all" 2627d62b00eSchristos $as_echo "$0: the shells that I found on your system." 2637d62b00eSchristos if test x${ZSH_VERSION+set} = xset ; then 2647d62b00eSchristos $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 2657d62b00eSchristos $as_echo "$0: be upgraded to zsh 4.3.4 or later." 2667d62b00eSchristos else 2677d62b00eSchristos $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 2687d62b00eSchristos$0: including any error possibly output before this 2697d62b00eSchristos$0: message. Then install a modern shell, or manually run 2707d62b00eSchristos$0: the script under such a shell if you do have one." 2717d62b00eSchristos fi 2727d62b00eSchristos exit 1 2737d62b00eSchristosfi 2747d62b00eSchristosfi 2757d62b00eSchristosfi 2767d62b00eSchristosSHELL=${CONFIG_SHELL-/bin/sh} 2777d62b00eSchristosexport SHELL 2787d62b00eSchristos# Unset more variables known to interfere with behavior of common tools. 2797d62b00eSchristosCLICOLOR_FORCE= GREP_OPTIONS= 2807d62b00eSchristosunset CLICOLOR_FORCE GREP_OPTIONS 2817d62b00eSchristos 2827d62b00eSchristos## --------------------- ## 2837d62b00eSchristos## M4sh Shell Functions. ## 2847d62b00eSchristos## --------------------- ## 2857d62b00eSchristos# as_fn_unset VAR 2867d62b00eSchristos# --------------- 2877d62b00eSchristos# Portably unset VAR. 2887d62b00eSchristosas_fn_unset () 2897d62b00eSchristos{ 2907d62b00eSchristos { eval $1=; unset $1;} 2917d62b00eSchristos} 2927d62b00eSchristosas_unset=as_fn_unset 2937d62b00eSchristos 2947d62b00eSchristos# as_fn_set_status STATUS 2957d62b00eSchristos# ----------------------- 2967d62b00eSchristos# Set $? to STATUS, without forking. 2977d62b00eSchristosas_fn_set_status () 2987d62b00eSchristos{ 2997d62b00eSchristos return $1 3007d62b00eSchristos} # as_fn_set_status 3017d62b00eSchristos 3027d62b00eSchristos# as_fn_exit STATUS 3037d62b00eSchristos# ----------------- 3047d62b00eSchristos# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 3057d62b00eSchristosas_fn_exit () 3067d62b00eSchristos{ 3077d62b00eSchristos set +e 3087d62b00eSchristos as_fn_set_status $1 3097d62b00eSchristos exit $1 3107d62b00eSchristos} # as_fn_exit 3117d62b00eSchristos 3127d62b00eSchristos# as_fn_mkdir_p 3137d62b00eSchristos# ------------- 3147d62b00eSchristos# Create "$as_dir" as a directory, including parents if necessary. 3157d62b00eSchristosas_fn_mkdir_p () 3167d62b00eSchristos{ 3177d62b00eSchristos 3187d62b00eSchristos case $as_dir in #( 3197d62b00eSchristos -*) as_dir=./$as_dir;; 3207d62b00eSchristos esac 3217d62b00eSchristos test -d "$as_dir" || eval $as_mkdir_p || { 3227d62b00eSchristos as_dirs= 3237d62b00eSchristos while :; do 3247d62b00eSchristos case $as_dir in #( 3257d62b00eSchristos *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 3267d62b00eSchristos *) as_qdir=$as_dir;; 3277d62b00eSchristos esac 3287d62b00eSchristos as_dirs="'$as_qdir' $as_dirs" 3297d62b00eSchristos as_dir=`$as_dirname -- "$as_dir" || 3307d62b00eSchristos$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3317d62b00eSchristos X"$as_dir" : 'X\(//\)[^/]' \| \ 3327d62b00eSchristos X"$as_dir" : 'X\(//\)$' \| \ 3337d62b00eSchristos X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3347d62b00eSchristos$as_echo X"$as_dir" | 3357d62b00eSchristos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3367d62b00eSchristos s//\1/ 3377d62b00eSchristos q 3387d62b00eSchristos } 3397d62b00eSchristos /^X\(\/\/\)[^/].*/{ 3407d62b00eSchristos s//\1/ 3417d62b00eSchristos q 3427d62b00eSchristos } 3437d62b00eSchristos /^X\(\/\/\)$/{ 3447d62b00eSchristos s//\1/ 3457d62b00eSchristos q 3467d62b00eSchristos } 3477d62b00eSchristos /^X\(\/\).*/{ 3487d62b00eSchristos s//\1/ 3497d62b00eSchristos q 3507d62b00eSchristos } 3517d62b00eSchristos s/.*/./; q'` 3527d62b00eSchristos test -d "$as_dir" && break 3537d62b00eSchristos done 3547d62b00eSchristos test -z "$as_dirs" || eval "mkdir $as_dirs" 3557d62b00eSchristos } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 3567d62b00eSchristos 3577d62b00eSchristos 3587d62b00eSchristos} # as_fn_mkdir_p 3597d62b00eSchristos 3607d62b00eSchristos# as_fn_executable_p FILE 3617d62b00eSchristos# ----------------------- 3627d62b00eSchristos# Test if FILE is an executable regular file. 3637d62b00eSchristosas_fn_executable_p () 3647d62b00eSchristos{ 3657d62b00eSchristos test -f "$1" && test -x "$1" 3667d62b00eSchristos} # as_fn_executable_p 3677d62b00eSchristos# as_fn_append VAR VALUE 3687d62b00eSchristos# ---------------------- 3697d62b00eSchristos# Append the text in VALUE to the end of the definition contained in VAR. Take 3707d62b00eSchristos# advantage of any shell optimizations that allow amortized linear growth over 3717d62b00eSchristos# repeated appends, instead of the typical quadratic growth present in naive 3727d62b00eSchristos# implementations. 3737d62b00eSchristosif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 3747d62b00eSchristos eval 'as_fn_append () 3757d62b00eSchristos { 3767d62b00eSchristos eval $1+=\$2 3777d62b00eSchristos }' 3787d62b00eSchristoselse 3797d62b00eSchristos as_fn_append () 3807d62b00eSchristos { 3817d62b00eSchristos eval $1=\$$1\$2 3827d62b00eSchristos } 3837d62b00eSchristosfi # as_fn_append 3847d62b00eSchristos 3857d62b00eSchristos# as_fn_arith ARG... 3867d62b00eSchristos# ------------------ 3877d62b00eSchristos# Perform arithmetic evaluation on the ARGs, and store the result in the 3887d62b00eSchristos# global $as_val. Take advantage of shells that can avoid forks. The arguments 3897d62b00eSchristos# must be portable across $(()) and expr. 3907d62b00eSchristosif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 3917d62b00eSchristos eval 'as_fn_arith () 3927d62b00eSchristos { 3937d62b00eSchristos as_val=$(( $* )) 3947d62b00eSchristos }' 3957d62b00eSchristoselse 3967d62b00eSchristos as_fn_arith () 3977d62b00eSchristos { 3987d62b00eSchristos as_val=`expr "$@" || test $? -eq 1` 3997d62b00eSchristos } 4007d62b00eSchristosfi # as_fn_arith 4017d62b00eSchristos 4027d62b00eSchristos 4037d62b00eSchristos# as_fn_error STATUS ERROR [LINENO LOG_FD] 4047d62b00eSchristos# ---------------------------------------- 4057d62b00eSchristos# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4067d62b00eSchristos# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 4077d62b00eSchristos# script with STATUS, using 1 if that was 0. 4087d62b00eSchristosas_fn_error () 4097d62b00eSchristos{ 4107d62b00eSchristos as_status=$1; test $as_status -eq 0 && as_status=1 4117d62b00eSchristos if test "$4"; then 4127d62b00eSchristos as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4137d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 4147d62b00eSchristos fi 4157d62b00eSchristos $as_echo "$as_me: error: $2" >&2 4167d62b00eSchristos as_fn_exit $as_status 4177d62b00eSchristos} # as_fn_error 4187d62b00eSchristos 4197d62b00eSchristosif expr a : '\(a\)' >/dev/null 2>&1 && 4207d62b00eSchristos test "X`expr 00001 : '.*\(...\)'`" = X001; then 4217d62b00eSchristos as_expr=expr 4227d62b00eSchristoselse 4237d62b00eSchristos as_expr=false 4247d62b00eSchristosfi 4257d62b00eSchristos 4267d62b00eSchristosif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4277d62b00eSchristos as_basename=basename 4287d62b00eSchristoselse 4297d62b00eSchristos as_basename=false 4307d62b00eSchristosfi 4317d62b00eSchristos 4327d62b00eSchristosif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4337d62b00eSchristos as_dirname=dirname 4347d62b00eSchristoselse 4357d62b00eSchristos as_dirname=false 4367d62b00eSchristosfi 4377d62b00eSchristos 4387d62b00eSchristosas_me=`$as_basename -- "$0" || 4397d62b00eSchristos$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4407d62b00eSchristos X"$0" : 'X\(//\)$' \| \ 4417d62b00eSchristos X"$0" : 'X\(/\)' \| . 2>/dev/null || 4427d62b00eSchristos$as_echo X/"$0" | 4437d62b00eSchristos sed '/^.*\/\([^/][^/]*\)\/*$/{ 4447d62b00eSchristos s//\1/ 4457d62b00eSchristos q 4467d62b00eSchristos } 4477d62b00eSchristos /^X\/\(\/\/\)$/{ 4487d62b00eSchristos s//\1/ 4497d62b00eSchristos q 4507d62b00eSchristos } 4517d62b00eSchristos /^X\/\(\/\).*/{ 4527d62b00eSchristos s//\1/ 4537d62b00eSchristos q 4547d62b00eSchristos } 4557d62b00eSchristos s/.*/./; q'` 4567d62b00eSchristos 4577d62b00eSchristos# Avoid depending upon Character Ranges. 4587d62b00eSchristosas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4597d62b00eSchristosas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4607d62b00eSchristosas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4617d62b00eSchristosas_cr_digits='0123456789' 4627d62b00eSchristosas_cr_alnum=$as_cr_Letters$as_cr_digits 4637d62b00eSchristos 4647d62b00eSchristos 4657d62b00eSchristos as_lineno_1=$LINENO as_lineno_1a=$LINENO 4667d62b00eSchristos as_lineno_2=$LINENO as_lineno_2a=$LINENO 4677d62b00eSchristos eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 4687d62b00eSchristos test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 4697d62b00eSchristos # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 4707d62b00eSchristos sed -n ' 4717d62b00eSchristos p 4727d62b00eSchristos /[$]LINENO/= 4737d62b00eSchristos ' <$as_myself | 4747d62b00eSchristos sed ' 4757d62b00eSchristos s/[$]LINENO.*/&-/ 4767d62b00eSchristos t lineno 4777d62b00eSchristos b 4787d62b00eSchristos :lineno 4797d62b00eSchristos N 4807d62b00eSchristos :loop 4817d62b00eSchristos s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 4827d62b00eSchristos t loop 4837d62b00eSchristos s/-\n.*// 4847d62b00eSchristos ' >$as_me.lineno && 4857d62b00eSchristos chmod +x "$as_me.lineno" || 4867d62b00eSchristos { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 4877d62b00eSchristos 4887d62b00eSchristos # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 4897d62b00eSchristos # already done that, so ensure we don't try to do so again and fall 4907d62b00eSchristos # in an infinite loop. This has already happened in practice. 4917d62b00eSchristos _as_can_reexec=no; export _as_can_reexec 4927d62b00eSchristos # Don't try to exec as it changes $[0], causing all sort of problems 4937d62b00eSchristos # (the dirname of $[0] is not the place where we might find the 4947d62b00eSchristos # original and so on. Autoconf is especially sensitive to this). 4957d62b00eSchristos . "./$as_me.lineno" 4967d62b00eSchristos # Exit status is that of the last command. 4977d62b00eSchristos exit 4987d62b00eSchristos} 4997d62b00eSchristos 5007d62b00eSchristosECHO_C= ECHO_N= ECHO_T= 5017d62b00eSchristoscase `echo -n x` in #((((( 5027d62b00eSchristos-n*) 5037d62b00eSchristos case `echo 'xy\c'` in 5047d62b00eSchristos *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5057d62b00eSchristos xy) ECHO_C='\c';; 5067d62b00eSchristos *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5077d62b00eSchristos ECHO_T=' ';; 5087d62b00eSchristos esac;; 5097d62b00eSchristos*) 5107d62b00eSchristos ECHO_N='-n';; 5117d62b00eSchristosesac 5127d62b00eSchristos 5137d62b00eSchristosrm -f conf$$ conf$$.exe conf$$.file 5147d62b00eSchristosif test -d conf$$.dir; then 5157d62b00eSchristos rm -f conf$$.dir/conf$$.file 5167d62b00eSchristoselse 5177d62b00eSchristos rm -f conf$$.dir 5187d62b00eSchristos mkdir conf$$.dir 2>/dev/null 5197d62b00eSchristosfi 5207d62b00eSchristosif (echo >conf$$.file) 2>/dev/null; then 5217d62b00eSchristos if ln -s conf$$.file conf$$ 2>/dev/null; then 5227d62b00eSchristos as_ln_s='ln -s' 5237d62b00eSchristos # ... but there are two gotchas: 5247d62b00eSchristos # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5257d62b00eSchristos # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5267d62b00eSchristos # In both cases, we have to default to `cp -pR'. 5277d62b00eSchristos ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5287d62b00eSchristos as_ln_s='cp -pR' 5297d62b00eSchristos elif ln conf$$.file conf$$ 2>/dev/null; then 5307d62b00eSchristos as_ln_s=ln 5317d62b00eSchristos else 5327d62b00eSchristos as_ln_s='cp -pR' 5337d62b00eSchristos fi 5347d62b00eSchristoselse 5357d62b00eSchristos as_ln_s='cp -pR' 5367d62b00eSchristosfi 5377d62b00eSchristosrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5387d62b00eSchristosrmdir conf$$.dir 2>/dev/null 5397d62b00eSchristos 5407d62b00eSchristosif mkdir -p . 2>/dev/null; then 5417d62b00eSchristos as_mkdir_p='mkdir -p "$as_dir"' 5427d62b00eSchristoselse 5437d62b00eSchristos test -d ./-p && rmdir ./-p 5447d62b00eSchristos as_mkdir_p=false 5457d62b00eSchristosfi 5467d62b00eSchristos 5477d62b00eSchristosas_test_x='test -x' 5487d62b00eSchristosas_executable_p=as_fn_executable_p 5497d62b00eSchristos 5507d62b00eSchristos# Sed expression to map a string onto a valid CPP name. 5517d62b00eSchristosas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5527d62b00eSchristos 5537d62b00eSchristos# Sed expression to map a string onto a valid variable name. 5547d62b00eSchristosas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5557d62b00eSchristos 5567d62b00eSchristos 5577d62b00eSchristostest -n "$DJDIR" || exec 7<&0 </dev/null 5587d62b00eSchristosexec 6>&1 5597d62b00eSchristos 5607d62b00eSchristos# Name of the host. 5617d62b00eSchristos# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 5627d62b00eSchristos# so uname gets run too. 5637d62b00eSchristosac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 5647d62b00eSchristos 5657d62b00eSchristos# 5667d62b00eSchristos# Initializations. 5677d62b00eSchristos# 5687d62b00eSchristosac_default_prefix=/usr/local 5697d62b00eSchristosac_clean_files= 5707d62b00eSchristosac_config_libobj_dir=. 5717d62b00eSchristosLIBOBJS= 5727d62b00eSchristoscross_compiling=no 5737d62b00eSchristossubdirs= 5747d62b00eSchristosMFLAGS= 5757d62b00eSchristosMAKEFLAGS= 5767d62b00eSchristos 5777d62b00eSchristos# Identity of this package. 5787d62b00eSchristosPACKAGE_NAME='gdbsupport' 5797d62b00eSchristosPACKAGE_TARNAME='gdbsupport' 5807d62b00eSchristosPACKAGE_VERSION='1.0' 5817d62b00eSchristosPACKAGE_STRING='gdbsupport 1.0' 5827d62b00eSchristosPACKAGE_BUGREPORT='' 5837d62b00eSchristosPACKAGE_URL='' 5847d62b00eSchristos 5857d62b00eSchristosac_unique_file="common-defs.h" 5867d62b00eSchristos# Factoring default headers for most tests. 5877d62b00eSchristosac_includes_default="\ 5887d62b00eSchristos#include <stdio.h> 5897d62b00eSchristos#ifdef HAVE_SYS_TYPES_H 5907d62b00eSchristos# include <sys/types.h> 5917d62b00eSchristos#endif 5927d62b00eSchristos#ifdef HAVE_SYS_STAT_H 5937d62b00eSchristos# include <sys/stat.h> 5947d62b00eSchristos#endif 5957d62b00eSchristos#ifdef STDC_HEADERS 5967d62b00eSchristos# include <stdlib.h> 5977d62b00eSchristos# include <stddef.h> 5987d62b00eSchristos#else 5997d62b00eSchristos# ifdef HAVE_STDLIB_H 6007d62b00eSchristos# include <stdlib.h> 6017d62b00eSchristos# endif 6027d62b00eSchristos#endif 6037d62b00eSchristos#ifdef HAVE_STRING_H 6047d62b00eSchristos# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 6057d62b00eSchristos# include <memory.h> 6067d62b00eSchristos# endif 6077d62b00eSchristos# include <string.h> 6087d62b00eSchristos#endif 6097d62b00eSchristos#ifdef HAVE_STRINGS_H 6107d62b00eSchristos# include <strings.h> 6117d62b00eSchristos#endif 6127d62b00eSchristos#ifdef HAVE_INTTYPES_H 6137d62b00eSchristos# include <inttypes.h> 6147d62b00eSchristos#endif 6157d62b00eSchristos#ifdef HAVE_STDINT_H 6167d62b00eSchristos# include <stdint.h> 6177d62b00eSchristos#endif 6187d62b00eSchristos#ifdef HAVE_UNISTD_H 6197d62b00eSchristos# include <unistd.h> 6207d62b00eSchristos#endif" 6217d62b00eSchristos 6227d62b00eSchristosac_header_list= 6237d62b00eSchristosac_subst_vars='am__EXEEXT_FALSE 6247d62b00eSchristosam__EXEEXT_TRUE 6257d62b00eSchristosLTLIBOBJS 6267d62b00eSchristosLIBOBJS 627*6881a400SchristosCONFIG_STATUS_DEPENDENCIES 6287d62b00eSchristosWERROR_CFLAGS 6297d62b00eSchristosWARN_CFLAGS 630*6881a400SchristosHAVE_PIPE_OR_PIPE2_FALSE 631*6881a400SchristosHAVE_PIPE_OR_PIPE2_TRUE 6327d62b00eSchristosSELFTEST_FALSE 6337d62b00eSchristosSELFTEST_TRUE 6347d62b00eSchristosLTLIBIPT 6357d62b00eSchristosLIBIPT 6367d62b00eSchristosHAVE_LIBIPT 6377d62b00eSchristosPTHREAD_CFLAGS 6387d62b00eSchristosPTHREAD_LIBS 6397d62b00eSchristosPTHREAD_CC 6407d62b00eSchristosax_pthread_config 6417d62b00eSchristosSED 6427d62b00eSchristosALLOCA 6437d62b00eSchristosCATOBJEXT 6447d62b00eSchristosGENCAT 6457d62b00eSchristosINSTOBJEXT 6467d62b00eSchristosDATADIRNAME 6477d62b00eSchristosCATALOGS 6487d62b00eSchristosPOSUB 6497d62b00eSchristosGMSGFMT 6507d62b00eSchristosXGETTEXT 6517d62b00eSchristosINCINTL 6527d62b00eSchristosLIBINTL_DEP 6537d62b00eSchristosLIBINTL 6547d62b00eSchristosUSE_NLS 6557d62b00eSchristosCXX_DIALECT 6567d62b00eSchristosHAVE_CXX11 6577d62b00eSchristosLARGEFILE_CPPFLAGS 6587d62b00eSchristosEGREP 6597d62b00eSchristosGREP 6607d62b00eSchristosCPP 6617d62b00eSchristosRANLIB 6627d62b00eSchristosam__fastdepCXX_FALSE 6637d62b00eSchristosam__fastdepCXX_TRUE 6647d62b00eSchristosCXXDEPMODE 6657d62b00eSchristosac_ct_CXX 6667d62b00eSchristosCXXFLAGS 6677d62b00eSchristosCXX 6687d62b00eSchristosam__fastdepCC_FALSE 6697d62b00eSchristosam__fastdepCC_TRUE 6707d62b00eSchristosCCDEPMODE 6717d62b00eSchristosam__nodep 6727d62b00eSchristosAMDEPBACKSLASH 6737d62b00eSchristosAMDEP_FALSE 6747d62b00eSchristosAMDEP_TRUE 6757d62b00eSchristosam__quote 6767d62b00eSchristosam__include 6777d62b00eSchristosDEPDIR 6787d62b00eSchristosOBJEXT 6797d62b00eSchristosEXEEXT 6807d62b00eSchristosac_ct_CC 6817d62b00eSchristosCPPFLAGS 6827d62b00eSchristosLDFLAGS 6837d62b00eSchristosCFLAGS 6847d62b00eSchristosCC 6857d62b00eSchristosAM_BACKSLASH 6867d62b00eSchristosAM_DEFAULT_VERBOSITY 6877d62b00eSchristosAM_DEFAULT_V 6887d62b00eSchristosAM_V 6897d62b00eSchristosam__untar 6907d62b00eSchristosam__tar 6917d62b00eSchristosAMTAR 6927d62b00eSchristosam__leading_dot 6937d62b00eSchristosSET_MAKE 6947d62b00eSchristosAWK 6957d62b00eSchristosmkdir_p 6967d62b00eSchristosMKDIR_P 6977d62b00eSchristosINSTALL_STRIP_PROGRAM 6987d62b00eSchristosSTRIP 6997d62b00eSchristosinstall_sh 7007d62b00eSchristosMAKEINFO 7017d62b00eSchristosAUTOHEADER 7027d62b00eSchristosAUTOMAKE 7037d62b00eSchristosAUTOCONF 7047d62b00eSchristosACLOCAL 7057d62b00eSchristosVERSION 7067d62b00eSchristosPACKAGE 7077d62b00eSchristosCYGPATH_W 7087d62b00eSchristosam__isrc 7097d62b00eSchristosINSTALL_DATA 7107d62b00eSchristosINSTALL_SCRIPT 7117d62b00eSchristosINSTALL_PROGRAM 7127d62b00eSchristosMAINT 7137d62b00eSchristosMAINTAINER_MODE_FALSE 7147d62b00eSchristosMAINTAINER_MODE_TRUE 7157d62b00eSchristostarget_os 7167d62b00eSchristostarget_vendor 7177d62b00eSchristostarget_cpu 7187d62b00eSchristostarget 7197d62b00eSchristoshost_os 7207d62b00eSchristoshost_vendor 7217d62b00eSchristoshost_cpu 7227d62b00eSchristoshost 7237d62b00eSchristosbuild_os 7247d62b00eSchristosbuild_vendor 7257d62b00eSchristosbuild_cpu 7267d62b00eSchristosbuild 7277d62b00eSchristostarget_alias 7287d62b00eSchristoshost_alias 7297d62b00eSchristosbuild_alias 7307d62b00eSchristosLIBS 7317d62b00eSchristosECHO_T 7327d62b00eSchristosECHO_N 7337d62b00eSchristosECHO_C 7347d62b00eSchristosDEFS 7357d62b00eSchristosmandir 7367d62b00eSchristoslocaledir 7377d62b00eSchristoslibdir 7387d62b00eSchristospsdir 7397d62b00eSchristospdfdir 7407d62b00eSchristosdvidir 7417d62b00eSchristoshtmldir 7427d62b00eSchristosinfodir 7437d62b00eSchristosdocdir 7447d62b00eSchristosoldincludedir 7457d62b00eSchristosincludedir 7467d62b00eSchristoslocalstatedir 7477d62b00eSchristossharedstatedir 7487d62b00eSchristossysconfdir 7497d62b00eSchristosdatadir 7507d62b00eSchristosdatarootdir 7517d62b00eSchristoslibexecdir 7527d62b00eSchristossbindir 7537d62b00eSchristosbindir 7547d62b00eSchristosprogram_transform_name 7557d62b00eSchristosprefix 7567d62b00eSchristosexec_prefix 7577d62b00eSchristosPACKAGE_URL 7587d62b00eSchristosPACKAGE_BUGREPORT 7597d62b00eSchristosPACKAGE_STRING 7607d62b00eSchristosPACKAGE_VERSION 7617d62b00eSchristosPACKAGE_TARNAME 7627d62b00eSchristosPACKAGE_NAME 7637d62b00eSchristosPATH_SEPARATOR 7647d62b00eSchristosSHELL' 7657d62b00eSchristosac_subst_files='' 7667d62b00eSchristosac_user_opts=' 7677d62b00eSchristosenable_option_checking 7687d62b00eSchristosenable_maintainer_mode 7697d62b00eSchristosenable_silent_rules 7707d62b00eSchristosenable_dependency_tracking 7717d62b00eSchristosenable_plugins 7727d62b00eSchristosenable_largefile 773*6881a400Schristosenable_threading 7747d62b00eSchristoswith_intel_pt 7757d62b00eSchristoswith_gnu_ld 7767d62b00eSchristosenable_rpath 7777d62b00eSchristoswith_libipt_prefix 7787d62b00eSchristoswith_libipt_type 7797d62b00eSchristosenable_unit_tests 7807d62b00eSchristosenable_werror 7817d62b00eSchristosenable_build_warnings 7827d62b00eSchristosenable_gdb_build_warnings 7837d62b00eSchristos' 7847d62b00eSchristos ac_precious_vars='build_alias 7857d62b00eSchristoshost_alias 7867d62b00eSchristostarget_alias 7877d62b00eSchristosCC 7887d62b00eSchristosCFLAGS 7897d62b00eSchristosLDFLAGS 7907d62b00eSchristosLIBS 7917d62b00eSchristosCPPFLAGS 7927d62b00eSchristosCXX 7937d62b00eSchristosCXXFLAGS 7947d62b00eSchristosCCC 7957d62b00eSchristosCPP' 7967d62b00eSchristos 7977d62b00eSchristos 7987d62b00eSchristos# Initialize some variables set by options. 7997d62b00eSchristosac_init_help= 8007d62b00eSchristosac_init_version=false 8017d62b00eSchristosac_unrecognized_opts= 8027d62b00eSchristosac_unrecognized_sep= 8037d62b00eSchristos# The variables have the same names as the options, with 8047d62b00eSchristos# dashes changed to underlines. 8057d62b00eSchristoscache_file=/dev/null 8067d62b00eSchristosexec_prefix=NONE 8077d62b00eSchristosno_create= 8087d62b00eSchristosno_recursion= 8097d62b00eSchristosprefix=NONE 8107d62b00eSchristosprogram_prefix=NONE 8117d62b00eSchristosprogram_suffix=NONE 8127d62b00eSchristosprogram_transform_name=s,x,x, 8137d62b00eSchristossilent= 8147d62b00eSchristossite= 8157d62b00eSchristossrcdir= 8167d62b00eSchristosverbose= 8177d62b00eSchristosx_includes=NONE 8187d62b00eSchristosx_libraries=NONE 8197d62b00eSchristos 8207d62b00eSchristos# Installation directory options. 8217d62b00eSchristos# These are left unexpanded so users can "make install exec_prefix=/foo" 8227d62b00eSchristos# and all the variables that are supposed to be based on exec_prefix 8237d62b00eSchristos# by default will actually change. 8247d62b00eSchristos# Use braces instead of parens because sh, perl, etc. also accept them. 8257d62b00eSchristos# (The list follows the same order as the GNU Coding Standards.) 8267d62b00eSchristosbindir='${exec_prefix}/bin' 8277d62b00eSchristossbindir='${exec_prefix}/sbin' 8287d62b00eSchristoslibexecdir='${exec_prefix}/libexec' 8297d62b00eSchristosdatarootdir='${prefix}/share' 8307d62b00eSchristosdatadir='${datarootdir}' 8317d62b00eSchristossysconfdir='${prefix}/etc' 8327d62b00eSchristossharedstatedir='${prefix}/com' 8337d62b00eSchristoslocalstatedir='${prefix}/var' 8347d62b00eSchristosincludedir='${prefix}/include' 8357d62b00eSchristosoldincludedir='/usr/include' 8367d62b00eSchristosdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 8377d62b00eSchristosinfodir='${datarootdir}/info' 8387d62b00eSchristoshtmldir='${docdir}' 8397d62b00eSchristosdvidir='${docdir}' 8407d62b00eSchristospdfdir='${docdir}' 8417d62b00eSchristospsdir='${docdir}' 8427d62b00eSchristoslibdir='${exec_prefix}/lib' 8437d62b00eSchristoslocaledir='${datarootdir}/locale' 8447d62b00eSchristosmandir='${datarootdir}/man' 8457d62b00eSchristos 8467d62b00eSchristosac_prev= 8477d62b00eSchristosac_dashdash= 8487d62b00eSchristosfor ac_option 8497d62b00eSchristosdo 8507d62b00eSchristos # If the previous option needs an argument, assign it. 8517d62b00eSchristos if test -n "$ac_prev"; then 8527d62b00eSchristos eval $ac_prev=\$ac_option 8537d62b00eSchristos ac_prev= 8547d62b00eSchristos continue 8557d62b00eSchristos fi 8567d62b00eSchristos 8577d62b00eSchristos case $ac_option in 8587d62b00eSchristos *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 8597d62b00eSchristos *=) ac_optarg= ;; 8607d62b00eSchristos *) ac_optarg=yes ;; 8617d62b00eSchristos esac 8627d62b00eSchristos 8637d62b00eSchristos # Accept the important Cygnus configure options, so we can diagnose typos. 8647d62b00eSchristos 8657d62b00eSchristos case $ac_dashdash$ac_option in 8667d62b00eSchristos --) 8677d62b00eSchristos ac_dashdash=yes ;; 8687d62b00eSchristos 8697d62b00eSchristos -bindir | --bindir | --bindi | --bind | --bin | --bi) 8707d62b00eSchristos ac_prev=bindir ;; 8717d62b00eSchristos -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8727d62b00eSchristos bindir=$ac_optarg ;; 8737d62b00eSchristos 8747d62b00eSchristos -build | --build | --buil | --bui | --bu) 8757d62b00eSchristos ac_prev=build_alias ;; 8767d62b00eSchristos -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8777d62b00eSchristos build_alias=$ac_optarg ;; 8787d62b00eSchristos 8797d62b00eSchristos -cache-file | --cache-file | --cache-fil | --cache-fi \ 8807d62b00eSchristos | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8817d62b00eSchristos ac_prev=cache_file ;; 8827d62b00eSchristos -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8837d62b00eSchristos | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8847d62b00eSchristos cache_file=$ac_optarg ;; 8857d62b00eSchristos 8867d62b00eSchristos --config-cache | -C) 8877d62b00eSchristos cache_file=config.cache ;; 8887d62b00eSchristos 8897d62b00eSchristos -datadir | --datadir | --datadi | --datad) 8907d62b00eSchristos ac_prev=datadir ;; 8917d62b00eSchristos -datadir=* | --datadir=* | --datadi=* | --datad=*) 8927d62b00eSchristos datadir=$ac_optarg ;; 8937d62b00eSchristos 8947d62b00eSchristos -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 8957d62b00eSchristos | --dataroo | --dataro | --datar) 8967d62b00eSchristos ac_prev=datarootdir ;; 8977d62b00eSchristos -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 8987d62b00eSchristos | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 8997d62b00eSchristos datarootdir=$ac_optarg ;; 9007d62b00eSchristos 9017d62b00eSchristos -disable-* | --disable-*) 9027d62b00eSchristos ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 9037d62b00eSchristos # Reject names that are not valid shell variable names. 9047d62b00eSchristos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 9057d62b00eSchristos as_fn_error $? "invalid feature name: $ac_useropt" 9067d62b00eSchristos ac_useropt_orig=$ac_useropt 9077d62b00eSchristos ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 9087d62b00eSchristos case $ac_user_opts in 9097d62b00eSchristos *" 9107d62b00eSchristos"enable_$ac_useropt" 9117d62b00eSchristos"*) ;; 9127d62b00eSchristos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 9137d62b00eSchristos ac_unrecognized_sep=', ';; 9147d62b00eSchristos esac 9157d62b00eSchristos eval enable_$ac_useropt=no ;; 9167d62b00eSchristos 9177d62b00eSchristos -docdir | --docdir | --docdi | --doc | --do) 9187d62b00eSchristos ac_prev=docdir ;; 9197d62b00eSchristos -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 9207d62b00eSchristos docdir=$ac_optarg ;; 9217d62b00eSchristos 9227d62b00eSchristos -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 9237d62b00eSchristos ac_prev=dvidir ;; 9247d62b00eSchristos -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 9257d62b00eSchristos dvidir=$ac_optarg ;; 9267d62b00eSchristos 9277d62b00eSchristos -enable-* | --enable-*) 9287d62b00eSchristos ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 9297d62b00eSchristos # Reject names that are not valid shell variable names. 9307d62b00eSchristos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 9317d62b00eSchristos as_fn_error $? "invalid feature name: $ac_useropt" 9327d62b00eSchristos ac_useropt_orig=$ac_useropt 9337d62b00eSchristos ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 9347d62b00eSchristos case $ac_user_opts in 9357d62b00eSchristos *" 9367d62b00eSchristos"enable_$ac_useropt" 9377d62b00eSchristos"*) ;; 9387d62b00eSchristos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 9397d62b00eSchristos ac_unrecognized_sep=', ';; 9407d62b00eSchristos esac 9417d62b00eSchristos eval enable_$ac_useropt=\$ac_optarg ;; 9427d62b00eSchristos 9437d62b00eSchristos -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 9447d62b00eSchristos | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 9457d62b00eSchristos | --exec | --exe | --ex) 9467d62b00eSchristos ac_prev=exec_prefix ;; 9477d62b00eSchristos -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 9487d62b00eSchristos | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 9497d62b00eSchristos | --exec=* | --exe=* | --ex=*) 9507d62b00eSchristos exec_prefix=$ac_optarg ;; 9517d62b00eSchristos 9527d62b00eSchristos -gas | --gas | --ga | --g) 9537d62b00eSchristos # Obsolete; use --with-gas. 9547d62b00eSchristos with_gas=yes ;; 9557d62b00eSchristos 9567d62b00eSchristos -help | --help | --hel | --he | -h) 9577d62b00eSchristos ac_init_help=long ;; 9587d62b00eSchristos -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9597d62b00eSchristos ac_init_help=recursive ;; 9607d62b00eSchristos -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9617d62b00eSchristos ac_init_help=short ;; 9627d62b00eSchristos 9637d62b00eSchristos -host | --host | --hos | --ho) 9647d62b00eSchristos ac_prev=host_alias ;; 9657d62b00eSchristos -host=* | --host=* | --hos=* | --ho=*) 9667d62b00eSchristos host_alias=$ac_optarg ;; 9677d62b00eSchristos 9687d62b00eSchristos -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 9697d62b00eSchristos ac_prev=htmldir ;; 9707d62b00eSchristos -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 9717d62b00eSchristos | --ht=*) 9727d62b00eSchristos htmldir=$ac_optarg ;; 9737d62b00eSchristos 9747d62b00eSchristos -includedir | --includedir | --includedi | --included | --include \ 9757d62b00eSchristos | --includ | --inclu | --incl | --inc) 9767d62b00eSchristos ac_prev=includedir ;; 9777d62b00eSchristos -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9787d62b00eSchristos | --includ=* | --inclu=* | --incl=* | --inc=*) 9797d62b00eSchristos includedir=$ac_optarg ;; 9807d62b00eSchristos 9817d62b00eSchristos -infodir | --infodir | --infodi | --infod | --info | --inf) 9827d62b00eSchristos ac_prev=infodir ;; 9837d62b00eSchristos -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9847d62b00eSchristos infodir=$ac_optarg ;; 9857d62b00eSchristos 9867d62b00eSchristos -libdir | --libdir | --libdi | --libd) 9877d62b00eSchristos ac_prev=libdir ;; 9887d62b00eSchristos -libdir=* | --libdir=* | --libdi=* | --libd=*) 9897d62b00eSchristos libdir=$ac_optarg ;; 9907d62b00eSchristos 9917d62b00eSchristos -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 9927d62b00eSchristos | --libexe | --libex | --libe) 9937d62b00eSchristos ac_prev=libexecdir ;; 9947d62b00eSchristos -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 9957d62b00eSchristos | --libexe=* | --libex=* | --libe=*) 9967d62b00eSchristos libexecdir=$ac_optarg ;; 9977d62b00eSchristos 9987d62b00eSchristos -localedir | --localedir | --localedi | --localed | --locale) 9997d62b00eSchristos ac_prev=localedir ;; 10007d62b00eSchristos -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 10017d62b00eSchristos localedir=$ac_optarg ;; 10027d62b00eSchristos 10037d62b00eSchristos -localstatedir | --localstatedir | --localstatedi | --localstated \ 10047d62b00eSchristos | --localstate | --localstat | --localsta | --localst | --locals) 10057d62b00eSchristos ac_prev=localstatedir ;; 10067d62b00eSchristos -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 10077d62b00eSchristos | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 10087d62b00eSchristos localstatedir=$ac_optarg ;; 10097d62b00eSchristos 10107d62b00eSchristos -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 10117d62b00eSchristos ac_prev=mandir ;; 10127d62b00eSchristos -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 10137d62b00eSchristos mandir=$ac_optarg ;; 10147d62b00eSchristos 10157d62b00eSchristos -nfp | --nfp | --nf) 10167d62b00eSchristos # Obsolete; use --without-fp. 10177d62b00eSchristos with_fp=no ;; 10187d62b00eSchristos 10197d62b00eSchristos -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 10207d62b00eSchristos | --no-cr | --no-c | -n) 10217d62b00eSchristos no_create=yes ;; 10227d62b00eSchristos 10237d62b00eSchristos -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 10247d62b00eSchristos | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 10257d62b00eSchristos no_recursion=yes ;; 10267d62b00eSchristos 10277d62b00eSchristos -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 10287d62b00eSchristos | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 10297d62b00eSchristos | --oldin | --oldi | --old | --ol | --o) 10307d62b00eSchristos ac_prev=oldincludedir ;; 10317d62b00eSchristos -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 10327d62b00eSchristos | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 10337d62b00eSchristos | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 10347d62b00eSchristos oldincludedir=$ac_optarg ;; 10357d62b00eSchristos 10367d62b00eSchristos -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 10377d62b00eSchristos ac_prev=prefix ;; 10387d62b00eSchristos -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 10397d62b00eSchristos prefix=$ac_optarg ;; 10407d62b00eSchristos 10417d62b00eSchristos -program-prefix | --program-prefix | --program-prefi | --program-pref \ 10427d62b00eSchristos | --program-pre | --program-pr | --program-p) 10437d62b00eSchristos ac_prev=program_prefix ;; 10447d62b00eSchristos -program-prefix=* | --program-prefix=* | --program-prefi=* \ 10457d62b00eSchristos | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 10467d62b00eSchristos program_prefix=$ac_optarg ;; 10477d62b00eSchristos 10487d62b00eSchristos -program-suffix | --program-suffix | --program-suffi | --program-suff \ 10497d62b00eSchristos | --program-suf | --program-su | --program-s) 10507d62b00eSchristos ac_prev=program_suffix ;; 10517d62b00eSchristos -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10527d62b00eSchristos | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10537d62b00eSchristos program_suffix=$ac_optarg ;; 10547d62b00eSchristos 10557d62b00eSchristos -program-transform-name | --program-transform-name \ 10567d62b00eSchristos | --program-transform-nam | --program-transform-na \ 10577d62b00eSchristos | --program-transform-n | --program-transform- \ 10587d62b00eSchristos | --program-transform | --program-transfor \ 10597d62b00eSchristos | --program-transfo | --program-transf \ 10607d62b00eSchristos | --program-trans | --program-tran \ 10617d62b00eSchristos | --progr-tra | --program-tr | --program-t) 10627d62b00eSchristos ac_prev=program_transform_name ;; 10637d62b00eSchristos -program-transform-name=* | --program-transform-name=* \ 10647d62b00eSchristos | --program-transform-nam=* | --program-transform-na=* \ 10657d62b00eSchristos | --program-transform-n=* | --program-transform-=* \ 10667d62b00eSchristos | --program-transform=* | --program-transfor=* \ 10677d62b00eSchristos | --program-transfo=* | --program-transf=* \ 10687d62b00eSchristos | --program-trans=* | --program-tran=* \ 10697d62b00eSchristos | --progr-tra=* | --program-tr=* | --program-t=*) 10707d62b00eSchristos program_transform_name=$ac_optarg ;; 10717d62b00eSchristos 10727d62b00eSchristos -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 10737d62b00eSchristos ac_prev=pdfdir ;; 10747d62b00eSchristos -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 10757d62b00eSchristos pdfdir=$ac_optarg ;; 10767d62b00eSchristos 10777d62b00eSchristos -psdir | --psdir | --psdi | --psd | --ps) 10787d62b00eSchristos ac_prev=psdir ;; 10797d62b00eSchristos -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 10807d62b00eSchristos psdir=$ac_optarg ;; 10817d62b00eSchristos 10827d62b00eSchristos -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10837d62b00eSchristos | -silent | --silent | --silen | --sile | --sil) 10847d62b00eSchristos silent=yes ;; 10857d62b00eSchristos 10867d62b00eSchristos -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 10877d62b00eSchristos ac_prev=sbindir ;; 10887d62b00eSchristos -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 10897d62b00eSchristos | --sbi=* | --sb=*) 10907d62b00eSchristos sbindir=$ac_optarg ;; 10917d62b00eSchristos 10927d62b00eSchristos -sharedstatedir | --sharedstatedir | --sharedstatedi \ 10937d62b00eSchristos | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 10947d62b00eSchristos | --sharedst | --shareds | --shared | --share | --shar \ 10957d62b00eSchristos | --sha | --sh) 10967d62b00eSchristos ac_prev=sharedstatedir ;; 10977d62b00eSchristos -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 10987d62b00eSchristos | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 10997d62b00eSchristos | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 11007d62b00eSchristos | --sha=* | --sh=*) 11017d62b00eSchristos sharedstatedir=$ac_optarg ;; 11027d62b00eSchristos 11037d62b00eSchristos -site | --site | --sit) 11047d62b00eSchristos ac_prev=site ;; 11057d62b00eSchristos -site=* | --site=* | --sit=*) 11067d62b00eSchristos site=$ac_optarg ;; 11077d62b00eSchristos 11087d62b00eSchristos -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 11097d62b00eSchristos ac_prev=srcdir ;; 11107d62b00eSchristos -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 11117d62b00eSchristos srcdir=$ac_optarg ;; 11127d62b00eSchristos 11137d62b00eSchristos -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 11147d62b00eSchristos | --syscon | --sysco | --sysc | --sys | --sy) 11157d62b00eSchristos ac_prev=sysconfdir ;; 11167d62b00eSchristos -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 11177d62b00eSchristos | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 11187d62b00eSchristos sysconfdir=$ac_optarg ;; 11197d62b00eSchristos 11207d62b00eSchristos -target | --target | --targe | --targ | --tar | --ta | --t) 11217d62b00eSchristos ac_prev=target_alias ;; 11227d62b00eSchristos -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 11237d62b00eSchristos target_alias=$ac_optarg ;; 11247d62b00eSchristos 11257d62b00eSchristos -v | -verbose | --verbose | --verbos | --verbo | --verb) 11267d62b00eSchristos verbose=yes ;; 11277d62b00eSchristos 11287d62b00eSchristos -version | --version | --versio | --versi | --vers | -V) 11297d62b00eSchristos ac_init_version=: ;; 11307d62b00eSchristos 11317d62b00eSchristos -with-* | --with-*) 11327d62b00eSchristos ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 11337d62b00eSchristos # Reject names that are not valid shell variable names. 11347d62b00eSchristos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11357d62b00eSchristos as_fn_error $? "invalid package name: $ac_useropt" 11367d62b00eSchristos ac_useropt_orig=$ac_useropt 11377d62b00eSchristos ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 11387d62b00eSchristos case $ac_user_opts in 11397d62b00eSchristos *" 11407d62b00eSchristos"with_$ac_useropt" 11417d62b00eSchristos"*) ;; 11427d62b00eSchristos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 11437d62b00eSchristos ac_unrecognized_sep=', ';; 11447d62b00eSchristos esac 11457d62b00eSchristos eval with_$ac_useropt=\$ac_optarg ;; 11467d62b00eSchristos 11477d62b00eSchristos -without-* | --without-*) 11487d62b00eSchristos ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 11497d62b00eSchristos # Reject names that are not valid shell variable names. 11507d62b00eSchristos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11517d62b00eSchristos as_fn_error $? "invalid package name: $ac_useropt" 11527d62b00eSchristos ac_useropt_orig=$ac_useropt 11537d62b00eSchristos ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 11547d62b00eSchristos case $ac_user_opts in 11557d62b00eSchristos *" 11567d62b00eSchristos"with_$ac_useropt" 11577d62b00eSchristos"*) ;; 11587d62b00eSchristos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 11597d62b00eSchristos ac_unrecognized_sep=', ';; 11607d62b00eSchristos esac 11617d62b00eSchristos eval with_$ac_useropt=no ;; 11627d62b00eSchristos 11637d62b00eSchristos --x) 11647d62b00eSchristos # Obsolete; use --with-x. 11657d62b00eSchristos with_x=yes ;; 11667d62b00eSchristos 11677d62b00eSchristos -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11687d62b00eSchristos | --x-incl | --x-inc | --x-in | --x-i) 11697d62b00eSchristos ac_prev=x_includes ;; 11707d62b00eSchristos -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11717d62b00eSchristos | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11727d62b00eSchristos x_includes=$ac_optarg ;; 11737d62b00eSchristos 11747d62b00eSchristos -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11757d62b00eSchristos | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11767d62b00eSchristos ac_prev=x_libraries ;; 11777d62b00eSchristos -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11787d62b00eSchristos | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 11797d62b00eSchristos x_libraries=$ac_optarg ;; 11807d62b00eSchristos 11817d62b00eSchristos -*) as_fn_error $? "unrecognized option: \`$ac_option' 11827d62b00eSchristosTry \`$0 --help' for more information" 11837d62b00eSchristos ;; 11847d62b00eSchristos 11857d62b00eSchristos *=*) 11867d62b00eSchristos ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 11877d62b00eSchristos # Reject names that are not valid shell variable names. 11887d62b00eSchristos case $ac_envvar in #( 11897d62b00eSchristos '' | [0-9]* | *[!_$as_cr_alnum]* ) 11907d62b00eSchristos as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 11917d62b00eSchristos esac 11927d62b00eSchristos eval $ac_envvar=\$ac_optarg 11937d62b00eSchristos export $ac_envvar ;; 11947d62b00eSchristos 11957d62b00eSchristos *) 11967d62b00eSchristos # FIXME: should be removed in autoconf 3.0. 11977d62b00eSchristos $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 11987d62b00eSchristos expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 11997d62b00eSchristos $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 12007d62b00eSchristos : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 12017d62b00eSchristos ;; 12027d62b00eSchristos 12037d62b00eSchristos esac 12047d62b00eSchristosdone 12057d62b00eSchristos 12067d62b00eSchristosif test -n "$ac_prev"; then 12077d62b00eSchristos ac_option=--`echo $ac_prev | sed 's/_/-/g'` 12087d62b00eSchristos as_fn_error $? "missing argument to $ac_option" 12097d62b00eSchristosfi 12107d62b00eSchristos 12117d62b00eSchristosif test -n "$ac_unrecognized_opts"; then 12127d62b00eSchristos case $enable_option_checking in 12137d62b00eSchristos no) ;; 12147d62b00eSchristos fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 12157d62b00eSchristos *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 12167d62b00eSchristos esac 12177d62b00eSchristosfi 12187d62b00eSchristos 12197d62b00eSchristos# Check all directory arguments for consistency. 12207d62b00eSchristosfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 12217d62b00eSchristos datadir sysconfdir sharedstatedir localstatedir includedir \ 12227d62b00eSchristos oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 12237d62b00eSchristos libdir localedir mandir 12247d62b00eSchristosdo 12257d62b00eSchristos eval ac_val=\$$ac_var 12267d62b00eSchristos # Remove trailing slashes. 12277d62b00eSchristos case $ac_val in 12287d62b00eSchristos */ ) 12297d62b00eSchristos ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 12307d62b00eSchristos eval $ac_var=\$ac_val;; 12317d62b00eSchristos esac 12327d62b00eSchristos # Be sure to have absolute directory names. 12337d62b00eSchristos case $ac_val in 12347d62b00eSchristos [\\/$]* | ?:[\\/]* ) continue;; 12357d62b00eSchristos NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 12367d62b00eSchristos esac 12377d62b00eSchristos as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 12387d62b00eSchristosdone 12397d62b00eSchristos 12407d62b00eSchristos# There might be people who depend on the old broken behavior: `$host' 12417d62b00eSchristos# used to hold the argument of --host etc. 12427d62b00eSchristos# FIXME: To remove some day. 12437d62b00eSchristosbuild=$build_alias 12447d62b00eSchristoshost=$host_alias 12457d62b00eSchristostarget=$target_alias 12467d62b00eSchristos 12477d62b00eSchristos# FIXME: To remove some day. 12487d62b00eSchristosif test "x$host_alias" != x; then 12497d62b00eSchristos if test "x$build_alias" = x; then 12507d62b00eSchristos cross_compiling=maybe 12517d62b00eSchristos elif test "x$build_alias" != "x$host_alias"; then 12527d62b00eSchristos cross_compiling=yes 12537d62b00eSchristos fi 12547d62b00eSchristosfi 12557d62b00eSchristos 12567d62b00eSchristosac_tool_prefix= 12577d62b00eSchristostest -n "$host_alias" && ac_tool_prefix=$host_alias- 12587d62b00eSchristos 12597d62b00eSchristostest "$silent" = yes && exec 6>/dev/null 12607d62b00eSchristos 12617d62b00eSchristos 12627d62b00eSchristosac_pwd=`pwd` && test -n "$ac_pwd" && 12637d62b00eSchristosac_ls_di=`ls -di .` && 12647d62b00eSchristosac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 12657d62b00eSchristos as_fn_error $? "working directory cannot be determined" 12667d62b00eSchristostest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 12677d62b00eSchristos as_fn_error $? "pwd does not report name of working directory" 12687d62b00eSchristos 12697d62b00eSchristos 12707d62b00eSchristos# Find the source files, if location was not specified. 12717d62b00eSchristosif test -z "$srcdir"; then 12727d62b00eSchristos ac_srcdir_defaulted=yes 12737d62b00eSchristos # Try the directory containing this script, then the parent directory. 12747d62b00eSchristos ac_confdir=`$as_dirname -- "$as_myself" || 12757d62b00eSchristos$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12767d62b00eSchristos X"$as_myself" : 'X\(//\)[^/]' \| \ 12777d62b00eSchristos X"$as_myself" : 'X\(//\)$' \| \ 12787d62b00eSchristos X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 12797d62b00eSchristos$as_echo X"$as_myself" | 12807d62b00eSchristos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12817d62b00eSchristos s//\1/ 12827d62b00eSchristos q 12837d62b00eSchristos } 12847d62b00eSchristos /^X\(\/\/\)[^/].*/{ 12857d62b00eSchristos s//\1/ 12867d62b00eSchristos q 12877d62b00eSchristos } 12887d62b00eSchristos /^X\(\/\/\)$/{ 12897d62b00eSchristos s//\1/ 12907d62b00eSchristos q 12917d62b00eSchristos } 12927d62b00eSchristos /^X\(\/\).*/{ 12937d62b00eSchristos s//\1/ 12947d62b00eSchristos q 12957d62b00eSchristos } 12967d62b00eSchristos s/.*/./; q'` 12977d62b00eSchristos srcdir=$ac_confdir 12987d62b00eSchristos if test ! -r "$srcdir/$ac_unique_file"; then 12997d62b00eSchristos srcdir=.. 13007d62b00eSchristos fi 13017d62b00eSchristoselse 13027d62b00eSchristos ac_srcdir_defaulted=no 13037d62b00eSchristosfi 13047d62b00eSchristosif test ! -r "$srcdir/$ac_unique_file"; then 13057d62b00eSchristos test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 13067d62b00eSchristos as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 13077d62b00eSchristosfi 13087d62b00eSchristosac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 13097d62b00eSchristosac_abs_confdir=`( 13107d62b00eSchristos cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 13117d62b00eSchristos pwd)` 13127d62b00eSchristos# When building in place, set srcdir=. 13137d62b00eSchristosif test "$ac_abs_confdir" = "$ac_pwd"; then 13147d62b00eSchristos srcdir=. 13157d62b00eSchristosfi 13167d62b00eSchristos# Remove unnecessary trailing slashes from srcdir. 13177d62b00eSchristos# Double slashes in file names in object file debugging info 13187d62b00eSchristos# mess up M-x gdb in Emacs. 13197d62b00eSchristoscase $srcdir in 13207d62b00eSchristos*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 13217d62b00eSchristosesac 13227d62b00eSchristosfor ac_var in $ac_precious_vars; do 13237d62b00eSchristos eval ac_env_${ac_var}_set=\${${ac_var}+set} 13247d62b00eSchristos eval ac_env_${ac_var}_value=\$${ac_var} 13257d62b00eSchristos eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 13267d62b00eSchristos eval ac_cv_env_${ac_var}_value=\$${ac_var} 13277d62b00eSchristosdone 13287d62b00eSchristos 13297d62b00eSchristos# 13307d62b00eSchristos# Report the --help message. 13317d62b00eSchristos# 13327d62b00eSchristosif test "$ac_init_help" = "long"; then 13337d62b00eSchristos # Omit some internal or obsolete options to make the list less imposing. 13347d62b00eSchristos # This message is too long to be a string in the A/UX 3.1 sh. 13357d62b00eSchristos cat <<_ACEOF 13367d62b00eSchristos\`configure' configures gdbsupport 1.0 to adapt to many kinds of systems. 13377d62b00eSchristos 13387d62b00eSchristosUsage: $0 [OPTION]... [VAR=VALUE]... 13397d62b00eSchristos 13407d62b00eSchristosTo assign environment variables (e.g., CC, CFLAGS...), specify them as 13417d62b00eSchristosVAR=VALUE. See below for descriptions of some of the useful variables. 13427d62b00eSchristos 13437d62b00eSchristosDefaults for the options are specified in brackets. 13447d62b00eSchristos 13457d62b00eSchristosConfiguration: 13467d62b00eSchristos -h, --help display this help and exit 13477d62b00eSchristos --help=short display options specific to this package 13487d62b00eSchristos --help=recursive display the short help of all the included packages 13497d62b00eSchristos -V, --version display version information and exit 13507d62b00eSchristos -q, --quiet, --silent do not print \`checking ...' messages 13517d62b00eSchristos --cache-file=FILE cache test results in FILE [disabled] 13527d62b00eSchristos -C, --config-cache alias for \`--cache-file=config.cache' 13537d62b00eSchristos -n, --no-create do not create output files 13547d62b00eSchristos --srcdir=DIR find the sources in DIR [configure dir or \`..'] 13557d62b00eSchristos 13567d62b00eSchristosInstallation directories: 13577d62b00eSchristos --prefix=PREFIX install architecture-independent files in PREFIX 13587d62b00eSchristos [$ac_default_prefix] 13597d62b00eSchristos --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 13607d62b00eSchristos [PREFIX] 13617d62b00eSchristos 13627d62b00eSchristosBy default, \`make install' will install all the files in 13637d62b00eSchristos\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 13647d62b00eSchristosan installation prefix other than \`$ac_default_prefix' using \`--prefix', 13657d62b00eSchristosfor instance \`--prefix=\$HOME'. 13667d62b00eSchristos 13677d62b00eSchristosFor better control, use the options below. 13687d62b00eSchristos 13697d62b00eSchristosFine tuning of the installation directories: 13707d62b00eSchristos --bindir=DIR user executables [EPREFIX/bin] 13717d62b00eSchristos --sbindir=DIR system admin executables [EPREFIX/sbin] 13727d62b00eSchristos --libexecdir=DIR program executables [EPREFIX/libexec] 13737d62b00eSchristos --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 13747d62b00eSchristos --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 13757d62b00eSchristos --localstatedir=DIR modifiable single-machine data [PREFIX/var] 13767d62b00eSchristos --libdir=DIR object code libraries [EPREFIX/lib] 13777d62b00eSchristos --includedir=DIR C header files [PREFIX/include] 13787d62b00eSchristos --oldincludedir=DIR C header files for non-gcc [/usr/include] 13797d62b00eSchristos --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 13807d62b00eSchristos --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 13817d62b00eSchristos --infodir=DIR info documentation [DATAROOTDIR/info] 13827d62b00eSchristos --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 13837d62b00eSchristos --mandir=DIR man documentation [DATAROOTDIR/man] 13847d62b00eSchristos --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport] 13857d62b00eSchristos --htmldir=DIR html documentation [DOCDIR] 13867d62b00eSchristos --dvidir=DIR dvi documentation [DOCDIR] 13877d62b00eSchristos --pdfdir=DIR pdf documentation [DOCDIR] 13887d62b00eSchristos --psdir=DIR ps documentation [DOCDIR] 13897d62b00eSchristos_ACEOF 13907d62b00eSchristos 13917d62b00eSchristos cat <<\_ACEOF 13927d62b00eSchristos 13937d62b00eSchristosProgram names: 13947d62b00eSchristos --program-prefix=PREFIX prepend PREFIX to installed program names 13957d62b00eSchristos --program-suffix=SUFFIX append SUFFIX to installed program names 13967d62b00eSchristos --program-transform-name=PROGRAM run sed PROGRAM on installed program names 13977d62b00eSchristos 13987d62b00eSchristosSystem types: 13997d62b00eSchristos --build=BUILD configure for building on BUILD [guessed] 14007d62b00eSchristos --host=HOST cross-compile to build programs to run on HOST [BUILD] 14017d62b00eSchristos --target=TARGET configure for building compilers for TARGET [HOST] 14027d62b00eSchristos_ACEOF 14037d62b00eSchristosfi 14047d62b00eSchristos 14057d62b00eSchristosif test -n "$ac_init_help"; then 14067d62b00eSchristos case $ac_init_help in 14077d62b00eSchristos short | recursive ) echo "Configuration of gdbsupport 1.0:";; 14087d62b00eSchristos esac 14097d62b00eSchristos cat <<\_ACEOF 14107d62b00eSchristos 14117d62b00eSchristosOptional Features: 14127d62b00eSchristos --disable-option-checking ignore unrecognized --enable/--with options 14137d62b00eSchristos --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 14147d62b00eSchristos --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 14157d62b00eSchristos --enable-maintainer-mode 14167d62b00eSchristos enable make rules and dependencies not useful (and 14177d62b00eSchristos sometimes confusing) to the casual installer 14187d62b00eSchristos --enable-silent-rules less verbose build output (undo: "make V=1") 14197d62b00eSchristos --disable-silent-rules verbose build output (undo: "make V=0") 14207d62b00eSchristos --enable-dependency-tracking 14217d62b00eSchristos do not reject slow dependency extractors 14227d62b00eSchristos --disable-dependency-tracking 14237d62b00eSchristos speeds up one-time build 14247d62b00eSchristos --enable-plugins Enable support for plugins 14257d62b00eSchristos --disable-largefile omit support for large files 1426*6881a400Schristos --enable-threading include support for parallel processing of data 1427*6881a400Schristos (yes/no) 14287d62b00eSchristos --disable-rpath do not hardcode runtime library paths 14297d62b00eSchristos --enable-unit-tests Enable the inclusion of unit tests when compiling 14307d62b00eSchristos GDB 14317d62b00eSchristos --enable-werror treat compile warnings as errors 14327d62b00eSchristos --enable-build-warnings enable build-time compiler warnings if gcc is used 14337d62b00eSchristos --enable-gdb-build-warnings 14347d62b00eSchristos enable GDB specific build-time compiler warnings if 14357d62b00eSchristos gcc is used 14367d62b00eSchristos 14377d62b00eSchristosOptional Packages: 14387d62b00eSchristos --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 14397d62b00eSchristos --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 14407d62b00eSchristos --with-intel-pt include Intel Processor Trace support (auto/yes/no) 14417d62b00eSchristos --with-gnu-ld assume the C compiler uses GNU ld default=no 14427d62b00eSchristos --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib 14437d62b00eSchristos --without-libipt-prefix don't search for libipt in includedir and libdir 14447d62b00eSchristos --with-libipt-type=TYPE type of library to search for (auto/static/shared) 14457d62b00eSchristos 14467d62b00eSchristosSome influential environment variables: 14477d62b00eSchristos CC C compiler command 14487d62b00eSchristos CFLAGS C compiler flags 14497d62b00eSchristos LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 14507d62b00eSchristos nonstandard directory <lib dir> 14517d62b00eSchristos LIBS libraries to pass to the linker, e.g. -l<library> 14527d62b00eSchristos CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 14537d62b00eSchristos you have headers in a nonstandard directory <include dir> 14547d62b00eSchristos CXX C++ compiler command 14557d62b00eSchristos CXXFLAGS C++ compiler flags 14567d62b00eSchristos CPP C preprocessor 14577d62b00eSchristos 14587d62b00eSchristosUse these variables to override the choices made by `configure' or to help 14597d62b00eSchristosit to find libraries and programs with nonstandard names/locations. 14607d62b00eSchristos 14617d62b00eSchristosReport bugs to the package provider. 14627d62b00eSchristos_ACEOF 14637d62b00eSchristosac_status=$? 14647d62b00eSchristosfi 14657d62b00eSchristos 14667d62b00eSchristosif test "$ac_init_help" = "recursive"; then 14677d62b00eSchristos # If there are subdirs, report their specific --help. 14687d62b00eSchristos for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 14697d62b00eSchristos test -d "$ac_dir" || 14707d62b00eSchristos { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 14717d62b00eSchristos continue 14727d62b00eSchristos ac_builddir=. 14737d62b00eSchristos 14747d62b00eSchristoscase "$ac_dir" in 14757d62b00eSchristos.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14767d62b00eSchristos*) 14777d62b00eSchristos ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14787d62b00eSchristos # A ".." for each directory in $ac_dir_suffix. 14797d62b00eSchristos ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14807d62b00eSchristos case $ac_top_builddir_sub in 14817d62b00eSchristos "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14827d62b00eSchristos *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14837d62b00eSchristos esac ;; 14847d62b00eSchristosesac 14857d62b00eSchristosac_abs_top_builddir=$ac_pwd 14867d62b00eSchristosac_abs_builddir=$ac_pwd$ac_dir_suffix 14877d62b00eSchristos# for backward compatibility: 14887d62b00eSchristosac_top_builddir=$ac_top_build_prefix 14897d62b00eSchristos 14907d62b00eSchristoscase $srcdir in 14917d62b00eSchristos .) # We are building in place. 14927d62b00eSchristos ac_srcdir=. 14937d62b00eSchristos ac_top_srcdir=$ac_top_builddir_sub 14947d62b00eSchristos ac_abs_top_srcdir=$ac_pwd ;; 14957d62b00eSchristos [\\/]* | ?:[\\/]* ) # Absolute name. 14967d62b00eSchristos ac_srcdir=$srcdir$ac_dir_suffix; 14977d62b00eSchristos ac_top_srcdir=$srcdir 14987d62b00eSchristos ac_abs_top_srcdir=$srcdir ;; 14997d62b00eSchristos *) # Relative name. 15007d62b00eSchristos ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15017d62b00eSchristos ac_top_srcdir=$ac_top_build_prefix$srcdir 15027d62b00eSchristos ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15037d62b00eSchristosesac 15047d62b00eSchristosac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15057d62b00eSchristos 15067d62b00eSchristos cd "$ac_dir" || { ac_status=$?; continue; } 15077d62b00eSchristos # Check for guested configure. 15087d62b00eSchristos if test -f "$ac_srcdir/configure.gnu"; then 15097d62b00eSchristos echo && 15107d62b00eSchristos $SHELL "$ac_srcdir/configure.gnu" --help=recursive 15117d62b00eSchristos elif test -f "$ac_srcdir/configure"; then 15127d62b00eSchristos echo && 15137d62b00eSchristos $SHELL "$ac_srcdir/configure" --help=recursive 15147d62b00eSchristos else 15157d62b00eSchristos $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 15167d62b00eSchristos fi || ac_status=$? 15177d62b00eSchristos cd "$ac_pwd" || { ac_status=$?; break; } 15187d62b00eSchristos done 15197d62b00eSchristosfi 15207d62b00eSchristos 15217d62b00eSchristostest -n "$ac_init_help" && exit $ac_status 15227d62b00eSchristosif $ac_init_version; then 15237d62b00eSchristos cat <<\_ACEOF 15247d62b00eSchristosgdbsupport configure 1.0 15257d62b00eSchristosgenerated by GNU Autoconf 2.69 15267d62b00eSchristos 15277d62b00eSchristosCopyright (C) 2012 Free Software Foundation, Inc. 15287d62b00eSchristosThis configure script is free software; the Free Software Foundation 15297d62b00eSchristosgives unlimited permission to copy, distribute and modify it. 15307d62b00eSchristos_ACEOF 15317d62b00eSchristos exit 15327d62b00eSchristosfi 15337d62b00eSchristos 15347d62b00eSchristos## ------------------------ ## 15357d62b00eSchristos## Autoconf initialization. ## 15367d62b00eSchristos## ------------------------ ## 15377d62b00eSchristos 15387d62b00eSchristos# ac_fn_c_try_compile LINENO 15397d62b00eSchristos# -------------------------- 15407d62b00eSchristos# Try to compile conftest.$ac_ext, and return whether this succeeded. 15417d62b00eSchristosac_fn_c_try_compile () 15427d62b00eSchristos{ 15437d62b00eSchristos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15447d62b00eSchristos rm -f conftest.$ac_objext 15457d62b00eSchristos if { { ac_try="$ac_compile" 15467d62b00eSchristoscase "(($ac_try" in 15477d62b00eSchristos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15487d62b00eSchristos *) ac_try_echo=$ac_try;; 15497d62b00eSchristosesac 15507d62b00eSchristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15517d62b00eSchristos$as_echo "$ac_try_echo"; } >&5 15527d62b00eSchristos (eval "$ac_compile") 2>conftest.err 15537d62b00eSchristos ac_status=$? 15547d62b00eSchristos if test -s conftest.err; then 15557d62b00eSchristos grep -v '^ *+' conftest.err >conftest.er1 15567d62b00eSchristos cat conftest.er1 >&5 15577d62b00eSchristos mv -f conftest.er1 conftest.err 15587d62b00eSchristos fi 15597d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15607d62b00eSchristos test $ac_status = 0; } && { 15617d62b00eSchristos test -z "$ac_c_werror_flag" || 15627d62b00eSchristos test ! -s conftest.err 15637d62b00eSchristos } && test -s conftest.$ac_objext; then : 15647d62b00eSchristos ac_retval=0 15657d62b00eSchristoselse 15667d62b00eSchristos $as_echo "$as_me: failed program was:" >&5 15677d62b00eSchristossed 's/^/| /' conftest.$ac_ext >&5 15687d62b00eSchristos 15697d62b00eSchristos ac_retval=1 15707d62b00eSchristosfi 15717d62b00eSchristos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15727d62b00eSchristos as_fn_set_status $ac_retval 15737d62b00eSchristos 15747d62b00eSchristos} # ac_fn_c_try_compile 15757d62b00eSchristos 15767d62b00eSchristos# ac_fn_cxx_try_compile LINENO 15777d62b00eSchristos# ---------------------------- 15787d62b00eSchristos# Try to compile conftest.$ac_ext, and return whether this succeeded. 15797d62b00eSchristosac_fn_cxx_try_compile () 15807d62b00eSchristos{ 15817d62b00eSchristos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15827d62b00eSchristos rm -f conftest.$ac_objext 15837d62b00eSchristos if { { ac_try="$ac_compile" 15847d62b00eSchristoscase "(($ac_try" in 15857d62b00eSchristos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15867d62b00eSchristos *) ac_try_echo=$ac_try;; 15877d62b00eSchristosesac 15887d62b00eSchristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15897d62b00eSchristos$as_echo "$ac_try_echo"; } >&5 15907d62b00eSchristos (eval "$ac_compile") 2>conftest.err 15917d62b00eSchristos ac_status=$? 15927d62b00eSchristos if test -s conftest.err; then 15937d62b00eSchristos grep -v '^ *+' conftest.err >conftest.er1 15947d62b00eSchristos cat conftest.er1 >&5 15957d62b00eSchristos mv -f conftest.er1 conftest.err 15967d62b00eSchristos fi 15977d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15987d62b00eSchristos test $ac_status = 0; } && { 15997d62b00eSchristos test -z "$ac_cxx_werror_flag" || 16007d62b00eSchristos test ! -s conftest.err 16017d62b00eSchristos } && test -s conftest.$ac_objext; then : 16027d62b00eSchristos ac_retval=0 16037d62b00eSchristoselse 16047d62b00eSchristos $as_echo "$as_me: failed program was:" >&5 16057d62b00eSchristossed 's/^/| /' conftest.$ac_ext >&5 16067d62b00eSchristos 16077d62b00eSchristos ac_retval=1 16087d62b00eSchristosfi 16097d62b00eSchristos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16107d62b00eSchristos as_fn_set_status $ac_retval 16117d62b00eSchristos 16127d62b00eSchristos} # ac_fn_cxx_try_compile 16137d62b00eSchristos 16147d62b00eSchristos# ac_fn_c_try_cpp LINENO 16157d62b00eSchristos# ---------------------- 16167d62b00eSchristos# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 16177d62b00eSchristosac_fn_c_try_cpp () 16187d62b00eSchristos{ 16197d62b00eSchristos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16207d62b00eSchristos if { { ac_try="$ac_cpp conftest.$ac_ext" 16217d62b00eSchristoscase "(($ac_try" in 16227d62b00eSchristos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16237d62b00eSchristos *) ac_try_echo=$ac_try;; 16247d62b00eSchristosesac 16257d62b00eSchristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16267d62b00eSchristos$as_echo "$ac_try_echo"; } >&5 16277d62b00eSchristos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 16287d62b00eSchristos ac_status=$? 16297d62b00eSchristos if test -s conftest.err; then 16307d62b00eSchristos grep -v '^ *+' conftest.err >conftest.er1 16317d62b00eSchristos cat conftest.er1 >&5 16327d62b00eSchristos mv -f conftest.er1 conftest.err 16337d62b00eSchristos fi 16347d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16357d62b00eSchristos test $ac_status = 0; } > conftest.i && { 16367d62b00eSchristos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 16377d62b00eSchristos test ! -s conftest.err 16387d62b00eSchristos }; then : 16397d62b00eSchristos ac_retval=0 16407d62b00eSchristoselse 16417d62b00eSchristos $as_echo "$as_me: failed program was:" >&5 16427d62b00eSchristossed 's/^/| /' conftest.$ac_ext >&5 16437d62b00eSchristos 16447d62b00eSchristos ac_retval=1 16457d62b00eSchristosfi 16467d62b00eSchristos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16477d62b00eSchristos as_fn_set_status $ac_retval 16487d62b00eSchristos 16497d62b00eSchristos} # ac_fn_c_try_cpp 16507d62b00eSchristos 16517d62b00eSchristos# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 16527d62b00eSchristos# ------------------------------------------------------- 16537d62b00eSchristos# Tests whether HEADER exists, giving a warning if it cannot be compiled using 16547d62b00eSchristos# the include files in INCLUDES and setting the cache variable VAR 16557d62b00eSchristos# accordingly. 16567d62b00eSchristosac_fn_c_check_header_mongrel () 16577d62b00eSchristos{ 16587d62b00eSchristos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16597d62b00eSchristos if eval \${$3+:} false; then : 16607d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 16617d62b00eSchristos$as_echo_n "checking for $2... " >&6; } 16627d62b00eSchristosif eval \${$3+:} false; then : 16637d62b00eSchristos $as_echo_n "(cached) " >&6 16647d62b00eSchristosfi 16657d62b00eSchristoseval ac_res=\$$3 16667d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16677d62b00eSchristos$as_echo "$ac_res" >&6; } 16687d62b00eSchristoselse 16697d62b00eSchristos # Is the header compilable? 16707d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 16717d62b00eSchristos$as_echo_n "checking $2 usability... " >&6; } 16727d62b00eSchristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext 16737d62b00eSchristos/* end confdefs.h. */ 16747d62b00eSchristos$4 16757d62b00eSchristos#include <$2> 16767d62b00eSchristos_ACEOF 16777d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 16787d62b00eSchristos ac_header_compiler=yes 16797d62b00eSchristoselse 16807d62b00eSchristos ac_header_compiler=no 16817d62b00eSchristosfi 16827d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16837d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 16847d62b00eSchristos$as_echo "$ac_header_compiler" >&6; } 16857d62b00eSchristos 16867d62b00eSchristos# Is the header present? 16877d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 16887d62b00eSchristos$as_echo_n "checking $2 presence... " >&6; } 16897d62b00eSchristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext 16907d62b00eSchristos/* end confdefs.h. */ 16917d62b00eSchristos#include <$2> 16927d62b00eSchristos_ACEOF 16937d62b00eSchristosif ac_fn_c_try_cpp "$LINENO"; then : 16947d62b00eSchristos ac_header_preproc=yes 16957d62b00eSchristoselse 16967d62b00eSchristos ac_header_preproc=no 16977d62b00eSchristosfi 16987d62b00eSchristosrm -f conftest.err conftest.i conftest.$ac_ext 16997d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 17007d62b00eSchristos$as_echo "$ac_header_preproc" >&6; } 17017d62b00eSchristos 17027d62b00eSchristos# So? What about this header? 17037d62b00eSchristoscase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 17047d62b00eSchristos yes:no: ) 17057d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 17067d62b00eSchristos$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 17077d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 17087d62b00eSchristos$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 17097d62b00eSchristos ;; 17107d62b00eSchristos no:yes:* ) 17117d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 17127d62b00eSchristos$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 17137d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 17147d62b00eSchristos$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 17157d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 17167d62b00eSchristos$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 17177d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 17187d62b00eSchristos$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 17197d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 17207d62b00eSchristos$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 17217d62b00eSchristos ;; 17227d62b00eSchristosesac 17237d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 17247d62b00eSchristos$as_echo_n "checking for $2... " >&6; } 17257d62b00eSchristosif eval \${$3+:} false; then : 17267d62b00eSchristos $as_echo_n "(cached) " >&6 17277d62b00eSchristoselse 17287d62b00eSchristos eval "$3=\$ac_header_compiler" 17297d62b00eSchristosfi 17307d62b00eSchristoseval ac_res=\$$3 17317d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17327d62b00eSchristos$as_echo "$ac_res" >&6; } 17337d62b00eSchristosfi 17347d62b00eSchristos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17357d62b00eSchristos 17367d62b00eSchristos} # ac_fn_c_check_header_mongrel 17377d62b00eSchristos 17387d62b00eSchristos# ac_fn_c_try_run LINENO 17397d62b00eSchristos# ---------------------- 17407d62b00eSchristos# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 17417d62b00eSchristos# that executables *can* be run. 17427d62b00eSchristosac_fn_c_try_run () 17437d62b00eSchristos{ 17447d62b00eSchristos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17457d62b00eSchristos if { { ac_try="$ac_link" 17467d62b00eSchristoscase "(($ac_try" in 17477d62b00eSchristos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17487d62b00eSchristos *) ac_try_echo=$ac_try;; 17497d62b00eSchristosesac 17507d62b00eSchristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17517d62b00eSchristos$as_echo "$ac_try_echo"; } >&5 17527d62b00eSchristos (eval "$ac_link") 2>&5 17537d62b00eSchristos ac_status=$? 17547d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17557d62b00eSchristos test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 17567d62b00eSchristos { { case "(($ac_try" in 17577d62b00eSchristos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17587d62b00eSchristos *) ac_try_echo=$ac_try;; 17597d62b00eSchristosesac 17607d62b00eSchristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17617d62b00eSchristos$as_echo "$ac_try_echo"; } >&5 17627d62b00eSchristos (eval "$ac_try") 2>&5 17637d62b00eSchristos ac_status=$? 17647d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17657d62b00eSchristos test $ac_status = 0; }; }; then : 17667d62b00eSchristos ac_retval=0 17677d62b00eSchristoselse 17687d62b00eSchristos $as_echo "$as_me: program exited with status $ac_status" >&5 17697d62b00eSchristos $as_echo "$as_me: failed program was:" >&5 17707d62b00eSchristossed 's/^/| /' conftest.$ac_ext >&5 17717d62b00eSchristos 17727d62b00eSchristos ac_retval=$ac_status 17737d62b00eSchristosfi 17747d62b00eSchristos rm -rf conftest.dSYM conftest_ipa8_conftest.oo 17757d62b00eSchristos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17767d62b00eSchristos as_fn_set_status $ac_retval 17777d62b00eSchristos 17787d62b00eSchristos} # ac_fn_c_try_run 17797d62b00eSchristos 17807d62b00eSchristos# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 17817d62b00eSchristos# ------------------------------------------------------- 17827d62b00eSchristos# Tests whether HEADER exists and can be compiled using the include files in 17837d62b00eSchristos# INCLUDES, setting the cache variable VAR accordingly. 17847d62b00eSchristosac_fn_c_check_header_compile () 17857d62b00eSchristos{ 17867d62b00eSchristos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17877d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 17887d62b00eSchristos$as_echo_n "checking for $2... " >&6; } 17897d62b00eSchristosif eval \${$3+:} false; then : 17907d62b00eSchristos $as_echo_n "(cached) " >&6 17917d62b00eSchristoselse 17927d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17937d62b00eSchristos/* end confdefs.h. */ 17947d62b00eSchristos$4 17957d62b00eSchristos#include <$2> 17967d62b00eSchristos_ACEOF 17977d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 17987d62b00eSchristos eval "$3=yes" 17997d62b00eSchristoselse 18007d62b00eSchristos eval "$3=no" 18017d62b00eSchristosfi 18027d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18037d62b00eSchristosfi 18047d62b00eSchristoseval ac_res=\$$3 18057d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18067d62b00eSchristos$as_echo "$ac_res" >&6; } 18077d62b00eSchristos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 18087d62b00eSchristos 18097d62b00eSchristos} # ac_fn_c_check_header_compile 18107d62b00eSchristos 18117d62b00eSchristos# ac_fn_c_try_link LINENO 18127d62b00eSchristos# ----------------------- 18137d62b00eSchristos# Try to link conftest.$ac_ext, and return whether this succeeded. 18147d62b00eSchristosac_fn_c_try_link () 18157d62b00eSchristos{ 18167d62b00eSchristos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18177d62b00eSchristos rm -f conftest.$ac_objext conftest$ac_exeext 18187d62b00eSchristos if { { ac_try="$ac_link" 18197d62b00eSchristoscase "(($ac_try" in 18207d62b00eSchristos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18217d62b00eSchristos *) ac_try_echo=$ac_try;; 18227d62b00eSchristosesac 18237d62b00eSchristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18247d62b00eSchristos$as_echo "$ac_try_echo"; } >&5 18257d62b00eSchristos (eval "$ac_link") 2>conftest.err 18267d62b00eSchristos ac_status=$? 18277d62b00eSchristos if test -s conftest.err; then 18287d62b00eSchristos grep -v '^ *+' conftest.err >conftest.er1 18297d62b00eSchristos cat conftest.er1 >&5 18307d62b00eSchristos mv -f conftest.er1 conftest.err 18317d62b00eSchristos fi 18327d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18337d62b00eSchristos test $ac_status = 0; } && { 18347d62b00eSchristos test -z "$ac_c_werror_flag" || 18357d62b00eSchristos test ! -s conftest.err 18367d62b00eSchristos } && test -s conftest$ac_exeext && { 18377d62b00eSchristos test "$cross_compiling" = yes || 18387d62b00eSchristos test -x conftest$ac_exeext 18397d62b00eSchristos }; then : 18407d62b00eSchristos ac_retval=0 18417d62b00eSchristoselse 18427d62b00eSchristos $as_echo "$as_me: failed program was:" >&5 18437d62b00eSchristossed 's/^/| /' conftest.$ac_ext >&5 18447d62b00eSchristos 18457d62b00eSchristos ac_retval=1 18467d62b00eSchristosfi 18477d62b00eSchristos # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 18487d62b00eSchristos # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 18497d62b00eSchristos # interfere with the next link command; also delete a directory that is 18507d62b00eSchristos # left behind by Apple's compiler. We do this before executing the actions. 18517d62b00eSchristos rm -rf conftest.dSYM conftest_ipa8_conftest.oo 18527d62b00eSchristos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 18537d62b00eSchristos as_fn_set_status $ac_retval 18547d62b00eSchristos 18557d62b00eSchristos} # ac_fn_c_try_link 18567d62b00eSchristos 18577d62b00eSchristos# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 18587d62b00eSchristos# ------------------------------------------- 18597d62b00eSchristos# Tests whether TYPE exists after having included INCLUDES, setting cache 18607d62b00eSchristos# variable VAR accordingly. 18617d62b00eSchristosac_fn_c_check_type () 18627d62b00eSchristos{ 18637d62b00eSchristos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18647d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 18657d62b00eSchristos$as_echo_n "checking for $2... " >&6; } 18667d62b00eSchristosif eval \${$3+:} false; then : 18677d62b00eSchristos $as_echo_n "(cached) " >&6 18687d62b00eSchristoselse 18697d62b00eSchristos eval "$3=no" 18707d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18717d62b00eSchristos/* end confdefs.h. */ 18727d62b00eSchristos$4 18737d62b00eSchristosint 18747d62b00eSchristosmain () 18757d62b00eSchristos{ 18767d62b00eSchristosif (sizeof ($2)) 18777d62b00eSchristos return 0; 18787d62b00eSchristos ; 18797d62b00eSchristos return 0; 18807d62b00eSchristos} 18817d62b00eSchristos_ACEOF 18827d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 18837d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18847d62b00eSchristos/* end confdefs.h. */ 18857d62b00eSchristos$4 18867d62b00eSchristosint 18877d62b00eSchristosmain () 18887d62b00eSchristos{ 18897d62b00eSchristosif (sizeof (($2))) 18907d62b00eSchristos return 0; 18917d62b00eSchristos ; 18927d62b00eSchristos return 0; 18937d62b00eSchristos} 18947d62b00eSchristos_ACEOF 18957d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 18967d62b00eSchristos 18977d62b00eSchristoselse 18987d62b00eSchristos eval "$3=yes" 18997d62b00eSchristosfi 19007d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19017d62b00eSchristosfi 19027d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19037d62b00eSchristosfi 19047d62b00eSchristoseval ac_res=\$$3 19057d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19067d62b00eSchristos$as_echo "$ac_res" >&6; } 19077d62b00eSchristos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 19087d62b00eSchristos 19097d62b00eSchristos} # ac_fn_c_check_type 19107d62b00eSchristos 19117d62b00eSchristos# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 19127d62b00eSchristos# -------------------------------------------- 19137d62b00eSchristos# Tries to find the compile-time value of EXPR in a program that includes 19147d62b00eSchristos# INCLUDES, setting VAR accordingly. Returns whether the value could be 19157d62b00eSchristos# computed 19167d62b00eSchristosac_fn_c_compute_int () 19177d62b00eSchristos{ 19187d62b00eSchristos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19197d62b00eSchristos if test "$cross_compiling" = yes; then 19207d62b00eSchristos # Depending upon the size, compute the lo and hi bounds. 19217d62b00eSchristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext 19227d62b00eSchristos/* end confdefs.h. */ 19237d62b00eSchristos$4 19247d62b00eSchristosint 19257d62b00eSchristosmain () 19267d62b00eSchristos{ 19277d62b00eSchristosstatic int test_array [1 - 2 * !(($2) >= 0)]; 19287d62b00eSchristostest_array [0] = 0; 19297d62b00eSchristosreturn test_array [0]; 19307d62b00eSchristos 19317d62b00eSchristos ; 19327d62b00eSchristos return 0; 19337d62b00eSchristos} 19347d62b00eSchristos_ACEOF 19357d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 19367d62b00eSchristos ac_lo=0 ac_mid=0 19377d62b00eSchristos while :; do 19387d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19397d62b00eSchristos/* end confdefs.h. */ 19407d62b00eSchristos$4 19417d62b00eSchristosint 19427d62b00eSchristosmain () 19437d62b00eSchristos{ 19447d62b00eSchristosstatic int test_array [1 - 2 * !(($2) <= $ac_mid)]; 19457d62b00eSchristostest_array [0] = 0; 19467d62b00eSchristosreturn test_array [0]; 19477d62b00eSchristos 19487d62b00eSchristos ; 19497d62b00eSchristos return 0; 19507d62b00eSchristos} 19517d62b00eSchristos_ACEOF 19527d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 19537d62b00eSchristos ac_hi=$ac_mid; break 19547d62b00eSchristoselse 19557d62b00eSchristos as_fn_arith $ac_mid + 1 && ac_lo=$as_val 19567d62b00eSchristos if test $ac_lo -le $ac_mid; then 19577d62b00eSchristos ac_lo= ac_hi= 19587d62b00eSchristos break 19597d62b00eSchristos fi 19607d62b00eSchristos as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 19617d62b00eSchristosfi 19627d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19637d62b00eSchristos done 19647d62b00eSchristoselse 19657d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19667d62b00eSchristos/* end confdefs.h. */ 19677d62b00eSchristos$4 19687d62b00eSchristosint 19697d62b00eSchristosmain () 19707d62b00eSchristos{ 19717d62b00eSchristosstatic int test_array [1 - 2 * !(($2) < 0)]; 19727d62b00eSchristostest_array [0] = 0; 19737d62b00eSchristosreturn test_array [0]; 19747d62b00eSchristos 19757d62b00eSchristos ; 19767d62b00eSchristos return 0; 19777d62b00eSchristos} 19787d62b00eSchristos_ACEOF 19797d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 19807d62b00eSchristos ac_hi=-1 ac_mid=-1 19817d62b00eSchristos while :; do 19827d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19837d62b00eSchristos/* end confdefs.h. */ 19847d62b00eSchristos$4 19857d62b00eSchristosint 19867d62b00eSchristosmain () 19877d62b00eSchristos{ 19887d62b00eSchristosstatic int test_array [1 - 2 * !(($2) >= $ac_mid)]; 19897d62b00eSchristostest_array [0] = 0; 19907d62b00eSchristosreturn test_array [0]; 19917d62b00eSchristos 19927d62b00eSchristos ; 19937d62b00eSchristos return 0; 19947d62b00eSchristos} 19957d62b00eSchristos_ACEOF 19967d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 19977d62b00eSchristos ac_lo=$ac_mid; break 19987d62b00eSchristoselse 19997d62b00eSchristos as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 20007d62b00eSchristos if test $ac_mid -le $ac_hi; then 20017d62b00eSchristos ac_lo= ac_hi= 20027d62b00eSchristos break 20037d62b00eSchristos fi 20047d62b00eSchristos as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 20057d62b00eSchristosfi 20067d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20077d62b00eSchristos done 20087d62b00eSchristoselse 20097d62b00eSchristos ac_lo= ac_hi= 20107d62b00eSchristosfi 20117d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20127d62b00eSchristosfi 20137d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20147d62b00eSchristos# Binary search between lo and hi bounds. 20157d62b00eSchristoswhile test "x$ac_lo" != "x$ac_hi"; do 20167d62b00eSchristos as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 20177d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20187d62b00eSchristos/* end confdefs.h. */ 20197d62b00eSchristos$4 20207d62b00eSchristosint 20217d62b00eSchristosmain () 20227d62b00eSchristos{ 20237d62b00eSchristosstatic int test_array [1 - 2 * !(($2) <= $ac_mid)]; 20247d62b00eSchristostest_array [0] = 0; 20257d62b00eSchristosreturn test_array [0]; 20267d62b00eSchristos 20277d62b00eSchristos ; 20287d62b00eSchristos return 0; 20297d62b00eSchristos} 20307d62b00eSchristos_ACEOF 20317d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 20327d62b00eSchristos ac_hi=$ac_mid 20337d62b00eSchristoselse 20347d62b00eSchristos as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 20357d62b00eSchristosfi 20367d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20377d62b00eSchristosdone 20387d62b00eSchristoscase $ac_lo in #(( 20397d62b00eSchristos?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 20407d62b00eSchristos'') ac_retval=1 ;; 20417d62b00eSchristosesac 20427d62b00eSchristos else 20437d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20447d62b00eSchristos/* end confdefs.h. */ 20457d62b00eSchristos$4 20467d62b00eSchristosstatic long int longval () { return $2; } 20477d62b00eSchristosstatic unsigned long int ulongval () { return $2; } 20487d62b00eSchristos#include <stdio.h> 20497d62b00eSchristos#include <stdlib.h> 20507d62b00eSchristosint 20517d62b00eSchristosmain () 20527d62b00eSchristos{ 20537d62b00eSchristos 20547d62b00eSchristos FILE *f = fopen ("conftest.val", "w"); 20557d62b00eSchristos if (! f) 20567d62b00eSchristos return 1; 20577d62b00eSchristos if (($2) < 0) 20587d62b00eSchristos { 20597d62b00eSchristos long int i = longval (); 20607d62b00eSchristos if (i != ($2)) 20617d62b00eSchristos return 1; 20627d62b00eSchristos fprintf (f, "%ld", i); 20637d62b00eSchristos } 20647d62b00eSchristos else 20657d62b00eSchristos { 20667d62b00eSchristos unsigned long int i = ulongval (); 20677d62b00eSchristos if (i != ($2)) 20687d62b00eSchristos return 1; 20697d62b00eSchristos fprintf (f, "%lu", i); 20707d62b00eSchristos } 20717d62b00eSchristos /* Do not output a trailing newline, as this causes \r\n confusion 20727d62b00eSchristos on some platforms. */ 20737d62b00eSchristos return ferror (f) || fclose (f) != 0; 20747d62b00eSchristos 20757d62b00eSchristos ; 20767d62b00eSchristos return 0; 20777d62b00eSchristos} 20787d62b00eSchristos_ACEOF 20797d62b00eSchristosif ac_fn_c_try_run "$LINENO"; then : 20807d62b00eSchristos echo >>conftest.val; read $3 <conftest.val; ac_retval=0 20817d62b00eSchristoselse 20827d62b00eSchristos ac_retval=1 20837d62b00eSchristosfi 20847d62b00eSchristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20857d62b00eSchristos conftest.$ac_objext conftest.beam conftest.$ac_ext 20867d62b00eSchristosrm -f conftest.val 20877d62b00eSchristos 20887d62b00eSchristos fi 20897d62b00eSchristos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 20907d62b00eSchristos as_fn_set_status $ac_retval 20917d62b00eSchristos 20927d62b00eSchristos} # ac_fn_c_compute_int 20937d62b00eSchristos 20947d62b00eSchristos# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 20957d62b00eSchristos# --------------------------------------------- 20967d62b00eSchristos# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 20977d62b00eSchristos# accordingly. 20987d62b00eSchristosac_fn_c_check_decl () 20997d62b00eSchristos{ 21007d62b00eSchristos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21017d62b00eSchristos as_decl_name=`echo $2|sed 's/ *(.*//'` 21027d62b00eSchristos as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 21037d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 21047d62b00eSchristos$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 21057d62b00eSchristosif eval \${$3+:} false; then : 21067d62b00eSchristos $as_echo_n "(cached) " >&6 21077d62b00eSchristoselse 21087d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21097d62b00eSchristos/* end confdefs.h. */ 21107d62b00eSchristos$4 21117d62b00eSchristosint 21127d62b00eSchristosmain () 21137d62b00eSchristos{ 21147d62b00eSchristos#ifndef $as_decl_name 21157d62b00eSchristos#ifdef __cplusplus 21167d62b00eSchristos (void) $as_decl_use; 21177d62b00eSchristos#else 21187d62b00eSchristos (void) $as_decl_name; 21197d62b00eSchristos#endif 21207d62b00eSchristos#endif 21217d62b00eSchristos 21227d62b00eSchristos ; 21237d62b00eSchristos return 0; 21247d62b00eSchristos} 21257d62b00eSchristos_ACEOF 21267d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 21277d62b00eSchristos eval "$3=yes" 21287d62b00eSchristoselse 21297d62b00eSchristos eval "$3=no" 21307d62b00eSchristosfi 21317d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21327d62b00eSchristosfi 21337d62b00eSchristoseval ac_res=\$$3 21347d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21357d62b00eSchristos$as_echo "$ac_res" >&6; } 21367d62b00eSchristos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 21377d62b00eSchristos 21387d62b00eSchristos} # ac_fn_c_check_decl 21397d62b00eSchristos 21407d62b00eSchristos# ac_fn_c_check_func LINENO FUNC VAR 21417d62b00eSchristos# ---------------------------------- 21427d62b00eSchristos# Tests whether FUNC exists, setting the cache variable VAR accordingly 21437d62b00eSchristosac_fn_c_check_func () 21447d62b00eSchristos{ 21457d62b00eSchristos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21467d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 21477d62b00eSchristos$as_echo_n "checking for $2... " >&6; } 21487d62b00eSchristosif eval \${$3+:} false; then : 21497d62b00eSchristos $as_echo_n "(cached) " >&6 21507d62b00eSchristoselse 21517d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21527d62b00eSchristos/* end confdefs.h. */ 21537d62b00eSchristos/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 21547d62b00eSchristos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21557d62b00eSchristos#define $2 innocuous_$2 21567d62b00eSchristos 21577d62b00eSchristos/* System header to define __stub macros and hopefully few prototypes, 21587d62b00eSchristos which can conflict with char $2 (); below. 21597d62b00eSchristos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21607d62b00eSchristos <limits.h> exists even on freestanding compilers. */ 21617d62b00eSchristos 21627d62b00eSchristos#ifdef __STDC__ 21637d62b00eSchristos# include <limits.h> 21647d62b00eSchristos#else 21657d62b00eSchristos# include <assert.h> 21667d62b00eSchristos#endif 21677d62b00eSchristos 21687d62b00eSchristos#undef $2 21697d62b00eSchristos 21707d62b00eSchristos/* Override any GCC internal prototype to avoid an error. 21717d62b00eSchristos Use char because int might match the return type of a GCC 21727d62b00eSchristos builtin and then its argument prototype would still apply. */ 21737d62b00eSchristos#ifdef __cplusplus 21747d62b00eSchristosextern "C" 21757d62b00eSchristos#endif 21767d62b00eSchristoschar $2 (); 21777d62b00eSchristos/* The GNU C library defines this for functions which it implements 21787d62b00eSchristos to always fail with ENOSYS. Some functions are actually named 21797d62b00eSchristos something starting with __ and the normal name is an alias. */ 21807d62b00eSchristos#if defined __stub_$2 || defined __stub___$2 21817d62b00eSchristoschoke me 21827d62b00eSchristos#endif 21837d62b00eSchristos 21847d62b00eSchristosint 21857d62b00eSchristosmain () 21867d62b00eSchristos{ 21877d62b00eSchristosreturn $2 (); 21887d62b00eSchristos ; 21897d62b00eSchristos return 0; 21907d62b00eSchristos} 21917d62b00eSchristos_ACEOF 21927d62b00eSchristosif ac_fn_c_try_link "$LINENO"; then : 21937d62b00eSchristos eval "$3=yes" 21947d62b00eSchristoselse 21957d62b00eSchristos eval "$3=no" 21967d62b00eSchristosfi 21977d62b00eSchristosrm -f core conftest.err conftest.$ac_objext \ 21987d62b00eSchristos conftest$ac_exeext conftest.$ac_ext 21997d62b00eSchristosfi 22007d62b00eSchristoseval ac_res=\$$3 22017d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 22027d62b00eSchristos$as_echo "$ac_res" >&6; } 22037d62b00eSchristos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 22047d62b00eSchristos 22057d62b00eSchristos} # ac_fn_c_check_func 22067d62b00eSchristos 22077d62b00eSchristos# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 22087d62b00eSchristos# ---------------------------------------------------- 22097d62b00eSchristos# Tries to find if the field MEMBER exists in type AGGR, after including 22107d62b00eSchristos# INCLUDES, setting cache variable VAR accordingly. 22117d62b00eSchristosac_fn_c_check_member () 22127d62b00eSchristos{ 22137d62b00eSchristos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22147d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 22157d62b00eSchristos$as_echo_n "checking for $2.$3... " >&6; } 22167d62b00eSchristosif eval \${$4+:} false; then : 22177d62b00eSchristos $as_echo_n "(cached) " >&6 22187d62b00eSchristoselse 22197d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22207d62b00eSchristos/* end confdefs.h. */ 22217d62b00eSchristos$5 22227d62b00eSchristosint 22237d62b00eSchristosmain () 22247d62b00eSchristos{ 22257d62b00eSchristosstatic $2 ac_aggr; 22267d62b00eSchristosif (ac_aggr.$3) 22277d62b00eSchristosreturn 0; 22287d62b00eSchristos ; 22297d62b00eSchristos return 0; 22307d62b00eSchristos} 22317d62b00eSchristos_ACEOF 22327d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 22337d62b00eSchristos eval "$4=yes" 22347d62b00eSchristoselse 22357d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22367d62b00eSchristos/* end confdefs.h. */ 22377d62b00eSchristos$5 22387d62b00eSchristosint 22397d62b00eSchristosmain () 22407d62b00eSchristos{ 22417d62b00eSchristosstatic $2 ac_aggr; 22427d62b00eSchristosif (sizeof ac_aggr.$3) 22437d62b00eSchristosreturn 0; 22447d62b00eSchristos ; 22457d62b00eSchristos return 0; 22467d62b00eSchristos} 22477d62b00eSchristos_ACEOF 22487d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 22497d62b00eSchristos eval "$4=yes" 22507d62b00eSchristoselse 22517d62b00eSchristos eval "$4=no" 22527d62b00eSchristosfi 22537d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22547d62b00eSchristosfi 22557d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22567d62b00eSchristosfi 22577d62b00eSchristoseval ac_res=\$$4 22587d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 22597d62b00eSchristos$as_echo "$ac_res" >&6; } 22607d62b00eSchristos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 22617d62b00eSchristos 22627d62b00eSchristos} # ac_fn_c_check_member 22637d62b00eSchristos 22647d62b00eSchristos# ac_fn_cxx_try_link LINENO 22657d62b00eSchristos# ------------------------- 22667d62b00eSchristos# Try to link conftest.$ac_ext, and return whether this succeeded. 22677d62b00eSchristosac_fn_cxx_try_link () 22687d62b00eSchristos{ 22697d62b00eSchristos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22707d62b00eSchristos rm -f conftest.$ac_objext conftest$ac_exeext 22717d62b00eSchristos if { { ac_try="$ac_link" 22727d62b00eSchristoscase "(($ac_try" in 22737d62b00eSchristos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22747d62b00eSchristos *) ac_try_echo=$ac_try;; 22757d62b00eSchristosesac 22767d62b00eSchristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 22777d62b00eSchristos$as_echo "$ac_try_echo"; } >&5 22787d62b00eSchristos (eval "$ac_link") 2>conftest.err 22797d62b00eSchristos ac_status=$? 22807d62b00eSchristos if test -s conftest.err; then 22817d62b00eSchristos grep -v '^ *+' conftest.err >conftest.er1 22827d62b00eSchristos cat conftest.er1 >&5 22837d62b00eSchristos mv -f conftest.er1 conftest.err 22847d62b00eSchristos fi 22857d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22867d62b00eSchristos test $ac_status = 0; } && { 22877d62b00eSchristos test -z "$ac_cxx_werror_flag" || 22887d62b00eSchristos test ! -s conftest.err 22897d62b00eSchristos } && test -s conftest$ac_exeext && { 22907d62b00eSchristos test "$cross_compiling" = yes || 22917d62b00eSchristos test -x conftest$ac_exeext 22927d62b00eSchristos }; then : 22937d62b00eSchristos ac_retval=0 22947d62b00eSchristoselse 22957d62b00eSchristos $as_echo "$as_me: failed program was:" >&5 22967d62b00eSchristossed 's/^/| /' conftest.$ac_ext >&5 22977d62b00eSchristos 22987d62b00eSchristos ac_retval=1 22997d62b00eSchristosfi 23007d62b00eSchristos # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 23017d62b00eSchristos # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 23027d62b00eSchristos # interfere with the next link command; also delete a directory that is 23037d62b00eSchristos # left behind by Apple's compiler. We do this before executing the actions. 23047d62b00eSchristos rm -rf conftest.dSYM conftest_ipa8_conftest.oo 23057d62b00eSchristos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 23067d62b00eSchristos as_fn_set_status $ac_retval 23077d62b00eSchristos 23087d62b00eSchristos} # ac_fn_cxx_try_link 23097d62b00eSchristos 23107d62b00eSchristos# ac_fn_cxx_check_func LINENO FUNC VAR 23117d62b00eSchristos# ------------------------------------ 23127d62b00eSchristos# Tests whether FUNC exists, setting the cache variable VAR accordingly 23137d62b00eSchristosac_fn_cxx_check_func () 23147d62b00eSchristos{ 23157d62b00eSchristos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 23167d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 23177d62b00eSchristos$as_echo_n "checking for $2... " >&6; } 23187d62b00eSchristosif eval \${$3+:} false; then : 23197d62b00eSchristos $as_echo_n "(cached) " >&6 23207d62b00eSchristoselse 23217d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23227d62b00eSchristos/* end confdefs.h. */ 23237d62b00eSchristos/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 23247d62b00eSchristos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23257d62b00eSchristos#define $2 innocuous_$2 23267d62b00eSchristos 23277d62b00eSchristos/* System header to define __stub macros and hopefully few prototypes, 23287d62b00eSchristos which can conflict with char $2 (); below. 23297d62b00eSchristos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23307d62b00eSchristos <limits.h> exists even on freestanding compilers. */ 23317d62b00eSchristos 23327d62b00eSchristos#ifdef __STDC__ 23337d62b00eSchristos# include <limits.h> 23347d62b00eSchristos#else 23357d62b00eSchristos# include <assert.h> 23367d62b00eSchristos#endif 23377d62b00eSchristos 23387d62b00eSchristos#undef $2 23397d62b00eSchristos 23407d62b00eSchristos/* Override any GCC internal prototype to avoid an error. 23417d62b00eSchristos Use char because int might match the return type of a GCC 23427d62b00eSchristos builtin and then its argument prototype would still apply. */ 23437d62b00eSchristos#ifdef __cplusplus 23447d62b00eSchristosextern "C" 23457d62b00eSchristos#endif 23467d62b00eSchristoschar $2 (); 23477d62b00eSchristos/* The GNU C library defines this for functions which it implements 23487d62b00eSchristos to always fail with ENOSYS. Some functions are actually named 23497d62b00eSchristos something starting with __ and the normal name is an alias. */ 23507d62b00eSchristos#if defined __stub_$2 || defined __stub___$2 23517d62b00eSchristoschoke me 23527d62b00eSchristos#endif 23537d62b00eSchristos 23547d62b00eSchristosint 23557d62b00eSchristosmain () 23567d62b00eSchristos{ 23577d62b00eSchristosreturn $2 (); 23587d62b00eSchristos ; 23597d62b00eSchristos return 0; 23607d62b00eSchristos} 23617d62b00eSchristos_ACEOF 23627d62b00eSchristosif ac_fn_cxx_try_link "$LINENO"; then : 23637d62b00eSchristos eval "$3=yes" 23647d62b00eSchristoselse 23657d62b00eSchristos eval "$3=no" 23667d62b00eSchristosfi 23677d62b00eSchristosrm -f core conftest.err conftest.$ac_objext \ 23687d62b00eSchristos conftest$ac_exeext conftest.$ac_ext 23697d62b00eSchristosfi 23707d62b00eSchristoseval ac_res=\$$3 23717d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 23727d62b00eSchristos$as_echo "$ac_res" >&6; } 23737d62b00eSchristos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 23747d62b00eSchristos 23757d62b00eSchristos} # ac_fn_cxx_check_func 23767d62b00eSchristoscat >config.log <<_ACEOF 23777d62b00eSchristosThis file contains any messages produced by compilers while 23787d62b00eSchristosrunning configure, to aid debugging if configure makes a mistake. 23797d62b00eSchristos 23807d62b00eSchristosIt was created by gdbsupport $as_me 1.0, which was 23817d62b00eSchristosgenerated by GNU Autoconf 2.69. Invocation command line was 23827d62b00eSchristos 23837d62b00eSchristos $ $0 $@ 23847d62b00eSchristos 23857d62b00eSchristos_ACEOF 23867d62b00eSchristosexec 5>>config.log 23877d62b00eSchristos{ 23887d62b00eSchristoscat <<_ASUNAME 23897d62b00eSchristos## --------- ## 23907d62b00eSchristos## Platform. ## 23917d62b00eSchristos## --------- ## 23927d62b00eSchristos 23937d62b00eSchristoshostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 23947d62b00eSchristosuname -m = `(uname -m) 2>/dev/null || echo unknown` 23957d62b00eSchristosuname -r = `(uname -r) 2>/dev/null || echo unknown` 23967d62b00eSchristosuname -s = `(uname -s) 2>/dev/null || echo unknown` 23977d62b00eSchristosuname -v = `(uname -v) 2>/dev/null || echo unknown` 23987d62b00eSchristos 23997d62b00eSchristos/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 24007d62b00eSchristos/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 24017d62b00eSchristos 24027d62b00eSchristos/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 24037d62b00eSchristos/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 24047d62b00eSchristos/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 24057d62b00eSchristos/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 24067d62b00eSchristos/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 24077d62b00eSchristos/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 24087d62b00eSchristos/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 24097d62b00eSchristos 24107d62b00eSchristos_ASUNAME 24117d62b00eSchristos 24127d62b00eSchristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24137d62b00eSchristosfor as_dir in $PATH 24147d62b00eSchristosdo 24157d62b00eSchristos IFS=$as_save_IFS 24167d62b00eSchristos test -z "$as_dir" && as_dir=. 24177d62b00eSchristos $as_echo "PATH: $as_dir" 24187d62b00eSchristos done 24197d62b00eSchristosIFS=$as_save_IFS 24207d62b00eSchristos 24217d62b00eSchristos} >&5 24227d62b00eSchristos 24237d62b00eSchristoscat >&5 <<_ACEOF 24247d62b00eSchristos 24257d62b00eSchristos 24267d62b00eSchristos## ----------- ## 24277d62b00eSchristos## Core tests. ## 24287d62b00eSchristos## ----------- ## 24297d62b00eSchristos 24307d62b00eSchristos_ACEOF 24317d62b00eSchristos 24327d62b00eSchristos 24337d62b00eSchristos# Keep a trace of the command line. 24347d62b00eSchristos# Strip out --no-create and --no-recursion so they do not pile up. 24357d62b00eSchristos# Strip out --silent because we don't want to record it for future runs. 24367d62b00eSchristos# Also quote any args containing shell meta-characters. 24377d62b00eSchristos# Make two passes to allow for proper duplicate-argument suppression. 24387d62b00eSchristosac_configure_args= 24397d62b00eSchristosac_configure_args0= 24407d62b00eSchristosac_configure_args1= 24417d62b00eSchristosac_must_keep_next=false 24427d62b00eSchristosfor ac_pass in 1 2 24437d62b00eSchristosdo 24447d62b00eSchristos for ac_arg 24457d62b00eSchristos do 24467d62b00eSchristos case $ac_arg in 24477d62b00eSchristos -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 24487d62b00eSchristos -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24497d62b00eSchristos | -silent | --silent | --silen | --sile | --sil) 24507d62b00eSchristos continue ;; 24517d62b00eSchristos *\'*) 24527d62b00eSchristos ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 24537d62b00eSchristos esac 24547d62b00eSchristos case $ac_pass in 24557d62b00eSchristos 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 24567d62b00eSchristos 2) 24577d62b00eSchristos as_fn_append ac_configure_args1 " '$ac_arg'" 24587d62b00eSchristos if test $ac_must_keep_next = true; then 24597d62b00eSchristos ac_must_keep_next=false # Got value, back to normal. 24607d62b00eSchristos else 24617d62b00eSchristos case $ac_arg in 24627d62b00eSchristos *=* | --config-cache | -C | -disable-* | --disable-* \ 24637d62b00eSchristos | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 24647d62b00eSchristos | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 24657d62b00eSchristos | -with-* | --with-* | -without-* | --without-* | --x) 24667d62b00eSchristos case "$ac_configure_args0 " in 24677d62b00eSchristos "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 24687d62b00eSchristos esac 24697d62b00eSchristos ;; 24707d62b00eSchristos -* ) ac_must_keep_next=true ;; 24717d62b00eSchristos esac 24727d62b00eSchristos fi 24737d62b00eSchristos as_fn_append ac_configure_args " '$ac_arg'" 24747d62b00eSchristos ;; 24757d62b00eSchristos esac 24767d62b00eSchristos done 24777d62b00eSchristosdone 24787d62b00eSchristos{ ac_configure_args0=; unset ac_configure_args0;} 24797d62b00eSchristos{ ac_configure_args1=; unset ac_configure_args1;} 24807d62b00eSchristos 24817d62b00eSchristos# When interrupted or exit'd, cleanup temporary files, and complete 24827d62b00eSchristos# config.log. We remove comments because anyway the quotes in there 24837d62b00eSchristos# would cause problems or look ugly. 24847d62b00eSchristos# WARNING: Use '\'' to represent an apostrophe within the trap. 24857d62b00eSchristos# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 24867d62b00eSchristostrap 'exit_status=$? 24877d62b00eSchristos # Save into config.log some information that might help in debugging. 24887d62b00eSchristos { 24897d62b00eSchristos echo 24907d62b00eSchristos 24917d62b00eSchristos $as_echo "## ---------------- ## 24927d62b00eSchristos## Cache variables. ## 24937d62b00eSchristos## ---------------- ##" 24947d62b00eSchristos echo 24957d62b00eSchristos # The following way of writing the cache mishandles newlines in values, 24967d62b00eSchristos( 24977d62b00eSchristos for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 24987d62b00eSchristos eval ac_val=\$$ac_var 24997d62b00eSchristos case $ac_val in #( 25007d62b00eSchristos *${as_nl}*) 25017d62b00eSchristos case $ac_var in #( 25027d62b00eSchristos *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 25037d62b00eSchristos$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 25047d62b00eSchristos esac 25057d62b00eSchristos case $ac_var in #( 25067d62b00eSchristos _ | IFS | as_nl) ;; #( 25077d62b00eSchristos BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 25087d62b00eSchristos *) { eval $ac_var=; unset $ac_var;} ;; 25097d62b00eSchristos esac ;; 25107d62b00eSchristos esac 25117d62b00eSchristos done 25127d62b00eSchristos (set) 2>&1 | 25137d62b00eSchristos case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 25147d62b00eSchristos *${as_nl}ac_space=\ *) 25157d62b00eSchristos sed -n \ 25167d62b00eSchristos "s/'\''/'\''\\\\'\'''\''/g; 25177d62b00eSchristos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 25187d62b00eSchristos ;; #( 25197d62b00eSchristos *) 25207d62b00eSchristos sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 25217d62b00eSchristos ;; 25227d62b00eSchristos esac | 25237d62b00eSchristos sort 25247d62b00eSchristos) 25257d62b00eSchristos echo 25267d62b00eSchristos 25277d62b00eSchristos $as_echo "## ----------------- ## 25287d62b00eSchristos## Output variables. ## 25297d62b00eSchristos## ----------------- ##" 25307d62b00eSchristos echo 25317d62b00eSchristos for ac_var in $ac_subst_vars 25327d62b00eSchristos do 25337d62b00eSchristos eval ac_val=\$$ac_var 25347d62b00eSchristos case $ac_val in 25357d62b00eSchristos *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 25367d62b00eSchristos esac 25377d62b00eSchristos $as_echo "$ac_var='\''$ac_val'\''" 25387d62b00eSchristos done | sort 25397d62b00eSchristos echo 25407d62b00eSchristos 25417d62b00eSchristos if test -n "$ac_subst_files"; then 25427d62b00eSchristos $as_echo "## ------------------- ## 25437d62b00eSchristos## File substitutions. ## 25447d62b00eSchristos## ------------------- ##" 25457d62b00eSchristos echo 25467d62b00eSchristos for ac_var in $ac_subst_files 25477d62b00eSchristos do 25487d62b00eSchristos eval ac_val=\$$ac_var 25497d62b00eSchristos case $ac_val in 25507d62b00eSchristos *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 25517d62b00eSchristos esac 25527d62b00eSchristos $as_echo "$ac_var='\''$ac_val'\''" 25537d62b00eSchristos done | sort 25547d62b00eSchristos echo 25557d62b00eSchristos fi 25567d62b00eSchristos 25577d62b00eSchristos if test -s confdefs.h; then 25587d62b00eSchristos $as_echo "## ----------- ## 25597d62b00eSchristos## confdefs.h. ## 25607d62b00eSchristos## ----------- ##" 25617d62b00eSchristos echo 25627d62b00eSchristos cat confdefs.h 25637d62b00eSchristos echo 25647d62b00eSchristos fi 25657d62b00eSchristos test "$ac_signal" != 0 && 25667d62b00eSchristos $as_echo "$as_me: caught signal $ac_signal" 25677d62b00eSchristos $as_echo "$as_me: exit $exit_status" 25687d62b00eSchristos } >&5 25697d62b00eSchristos rm -f core *.core core.conftest.* && 25707d62b00eSchristos rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 25717d62b00eSchristos exit $exit_status 25727d62b00eSchristos' 0 25737d62b00eSchristosfor ac_signal in 1 2 13 15; do 25747d62b00eSchristos trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 25757d62b00eSchristosdone 25767d62b00eSchristosac_signal=0 25777d62b00eSchristos 25787d62b00eSchristos# confdefs.h avoids OS command line length limits that DEFS can exceed. 25797d62b00eSchristosrm -f -r conftest* confdefs.h 25807d62b00eSchristos 25817d62b00eSchristos$as_echo "/* confdefs.h */" > confdefs.h 25827d62b00eSchristos 25837d62b00eSchristos# Predefined preprocessor variables. 25847d62b00eSchristos 25857d62b00eSchristoscat >>confdefs.h <<_ACEOF 25867d62b00eSchristos#define PACKAGE_NAME "$PACKAGE_NAME" 25877d62b00eSchristos_ACEOF 25887d62b00eSchristos 25897d62b00eSchristoscat >>confdefs.h <<_ACEOF 25907d62b00eSchristos#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 25917d62b00eSchristos_ACEOF 25927d62b00eSchristos 25937d62b00eSchristoscat >>confdefs.h <<_ACEOF 25947d62b00eSchristos#define PACKAGE_VERSION "$PACKAGE_VERSION" 25957d62b00eSchristos_ACEOF 25967d62b00eSchristos 25977d62b00eSchristoscat >>confdefs.h <<_ACEOF 25987d62b00eSchristos#define PACKAGE_STRING "$PACKAGE_STRING" 25997d62b00eSchristos_ACEOF 26007d62b00eSchristos 26017d62b00eSchristoscat >>confdefs.h <<_ACEOF 26027d62b00eSchristos#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 26037d62b00eSchristos_ACEOF 26047d62b00eSchristos 26057d62b00eSchristoscat >>confdefs.h <<_ACEOF 26067d62b00eSchristos#define PACKAGE_URL "$PACKAGE_URL" 26077d62b00eSchristos_ACEOF 26087d62b00eSchristos 26097d62b00eSchristos 26107d62b00eSchristos# Let the site file select an alternate cache file if it wants to. 26117d62b00eSchristos# Prefer an explicitly selected file to automatically selected ones. 26127d62b00eSchristosac_site_file1=NONE 26137d62b00eSchristosac_site_file2=NONE 26147d62b00eSchristosif test -n "$CONFIG_SITE"; then 26157d62b00eSchristos # We do not want a PATH search for config.site. 26167d62b00eSchristos case $CONFIG_SITE in #(( 26177d62b00eSchristos -*) ac_site_file1=./$CONFIG_SITE;; 26187d62b00eSchristos */*) ac_site_file1=$CONFIG_SITE;; 26197d62b00eSchristos *) ac_site_file1=./$CONFIG_SITE;; 26207d62b00eSchristos esac 26217d62b00eSchristoselif test "x$prefix" != xNONE; then 26227d62b00eSchristos ac_site_file1=$prefix/share/config.site 26237d62b00eSchristos ac_site_file2=$prefix/etc/config.site 26247d62b00eSchristoselse 26257d62b00eSchristos ac_site_file1=$ac_default_prefix/share/config.site 26267d62b00eSchristos ac_site_file2=$ac_default_prefix/etc/config.site 26277d62b00eSchristosfi 26287d62b00eSchristosfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 26297d62b00eSchristosdo 26307d62b00eSchristos test "x$ac_site_file" = xNONE && continue 26317d62b00eSchristos if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 26327d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 26337d62b00eSchristos$as_echo "$as_me: loading site script $ac_site_file" >&6;} 26347d62b00eSchristos sed 's/^/| /' "$ac_site_file" >&5 26357d62b00eSchristos . "$ac_site_file" \ 26367d62b00eSchristos || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26377d62b00eSchristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26387d62b00eSchristosas_fn_error $? "failed to load site script $ac_site_file 26397d62b00eSchristosSee \`config.log' for more details" "$LINENO" 5; } 26407d62b00eSchristos fi 26417d62b00eSchristosdone 26427d62b00eSchristos 26437d62b00eSchristosif test -r "$cache_file"; then 26447d62b00eSchristos # Some versions of bash will fail to source /dev/null (special files 26457d62b00eSchristos # actually), so we avoid doing that. DJGPP emulates it as a regular file. 26467d62b00eSchristos if test /dev/null != "$cache_file" && test -f "$cache_file"; then 26477d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 26487d62b00eSchristos$as_echo "$as_me: loading cache $cache_file" >&6;} 26497d62b00eSchristos case $cache_file in 26507d62b00eSchristos [\\/]* | ?:[\\/]* ) . "$cache_file";; 26517d62b00eSchristos *) . "./$cache_file";; 26527d62b00eSchristos esac 26537d62b00eSchristos fi 26547d62b00eSchristoselse 26557d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 26567d62b00eSchristos$as_echo "$as_me: creating cache $cache_file" >&6;} 26577d62b00eSchristos >$cache_file 26587d62b00eSchristosfi 26597d62b00eSchristos 26607d62b00eSchristosas_fn_append ac_header_list " stdlib.h" 26617d62b00eSchristosas_fn_append ac_header_list " unistd.h" 26627d62b00eSchristosas_fn_append ac_header_list " sys/param.h" 26637d62b00eSchristos# Check that the precious variables saved in the cache have kept the same 26647d62b00eSchristos# value. 26657d62b00eSchristosac_cache_corrupted=false 26667d62b00eSchristosfor ac_var in $ac_precious_vars; do 26677d62b00eSchristos eval ac_old_set=\$ac_cv_env_${ac_var}_set 26687d62b00eSchristos eval ac_new_set=\$ac_env_${ac_var}_set 26697d62b00eSchristos eval ac_old_val=\$ac_cv_env_${ac_var}_value 26707d62b00eSchristos eval ac_new_val=\$ac_env_${ac_var}_value 26717d62b00eSchristos case $ac_old_set,$ac_new_set in 26727d62b00eSchristos set,) 26737d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 26747d62b00eSchristos$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 26757d62b00eSchristos ac_cache_corrupted=: ;; 26767d62b00eSchristos ,set) 26777d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 26787d62b00eSchristos$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 26797d62b00eSchristos ac_cache_corrupted=: ;; 26807d62b00eSchristos ,);; 26817d62b00eSchristos *) 26827d62b00eSchristos if test "x$ac_old_val" != "x$ac_new_val"; then 26837d62b00eSchristos # differences in whitespace do not lead to failure. 26847d62b00eSchristos ac_old_val_w=`echo x $ac_old_val` 26857d62b00eSchristos ac_new_val_w=`echo x $ac_new_val` 26867d62b00eSchristos if test "$ac_old_val_w" != "$ac_new_val_w"; then 26877d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 26887d62b00eSchristos$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 26897d62b00eSchristos ac_cache_corrupted=: 26907d62b00eSchristos else 26917d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 26927d62b00eSchristos$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 26937d62b00eSchristos eval $ac_var=\$ac_old_val 26947d62b00eSchristos fi 26957d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 26967d62b00eSchristos$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 26977d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 26987d62b00eSchristos$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 26997d62b00eSchristos fi;; 27007d62b00eSchristos esac 27017d62b00eSchristos # Pass precious variables to config.status. 27027d62b00eSchristos if test "$ac_new_set" = set; then 27037d62b00eSchristos case $ac_new_val in 27047d62b00eSchristos *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 27057d62b00eSchristos *) ac_arg=$ac_var=$ac_new_val ;; 27067d62b00eSchristos esac 27077d62b00eSchristos case " $ac_configure_args " in 27087d62b00eSchristos *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 27097d62b00eSchristos *) as_fn_append ac_configure_args " '$ac_arg'" ;; 27107d62b00eSchristos esac 27117d62b00eSchristos fi 27127d62b00eSchristosdone 27137d62b00eSchristosif $ac_cache_corrupted; then 27147d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27157d62b00eSchristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27167d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 27177d62b00eSchristos$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 27187d62b00eSchristos as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 27197d62b00eSchristosfi 27207d62b00eSchristos## -------------------- ## 27217d62b00eSchristos## Main body of script. ## 27227d62b00eSchristos## -------------------- ## 27237d62b00eSchristos 27247d62b00eSchristosac_ext=c 27257d62b00eSchristosac_cpp='$CPP $CPPFLAGS' 27267d62b00eSchristosac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27277d62b00eSchristosac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27287d62b00eSchristosac_compiler_gnu=$ac_cv_c_compiler_gnu 27297d62b00eSchristos 27307d62b00eSchristos 27317d62b00eSchristos 27327d62b00eSchristos 27337d62b00eSchristos 27347d62b00eSchristos 27357d62b00eSchristosac_config_headers="$ac_config_headers config.h:config.in" 27367d62b00eSchristos 2737*6881a400Schristos 2738*6881a400Schristos# Set build, build_cpu, build_vendor and build_os. 27397d62b00eSchristosac_aux_dir= 27407d62b00eSchristosfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 27417d62b00eSchristos if test -f "$ac_dir/install-sh"; then 27427d62b00eSchristos ac_aux_dir=$ac_dir 27437d62b00eSchristos ac_install_sh="$ac_aux_dir/install-sh -c" 27447d62b00eSchristos break 27457d62b00eSchristos elif test -f "$ac_dir/install.sh"; then 27467d62b00eSchristos ac_aux_dir=$ac_dir 27477d62b00eSchristos ac_install_sh="$ac_aux_dir/install.sh -c" 27487d62b00eSchristos break 27497d62b00eSchristos elif test -f "$ac_dir/shtool"; then 27507d62b00eSchristos ac_aux_dir=$ac_dir 27517d62b00eSchristos ac_install_sh="$ac_aux_dir/shtool install -c" 27527d62b00eSchristos break 27537d62b00eSchristos fi 27547d62b00eSchristosdone 27557d62b00eSchristosif test -z "$ac_aux_dir"; then 27567d62b00eSchristos as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 27577d62b00eSchristosfi 27587d62b00eSchristos 27597d62b00eSchristos# These three variables are undocumented and unsupported, 27607d62b00eSchristos# and are intended to be withdrawn in a future Autoconf release. 27617d62b00eSchristos# They can cause serious problems if a builder's source tree is in a directory 27627d62b00eSchristos# whose full name contains unusual characters. 27637d62b00eSchristosac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 27647d62b00eSchristosac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 27657d62b00eSchristosac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 27667d62b00eSchristos 27677d62b00eSchristos 27687d62b00eSchristos# Make sure we can run config.sub. 27697d62b00eSchristos$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 27707d62b00eSchristos as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 27717d62b00eSchristos 27727d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 27737d62b00eSchristos$as_echo_n "checking build system type... " >&6; } 27747d62b00eSchristosif ${ac_cv_build+:} false; then : 27757d62b00eSchristos $as_echo_n "(cached) " >&6 27767d62b00eSchristoselse 27777d62b00eSchristos ac_build_alias=$build_alias 27787d62b00eSchristostest "x$ac_build_alias" = x && 27797d62b00eSchristos ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 27807d62b00eSchristostest "x$ac_build_alias" = x && 27817d62b00eSchristos as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 27827d62b00eSchristosac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 27837d62b00eSchristos as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 27847d62b00eSchristos 27857d62b00eSchristosfi 27867d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 27877d62b00eSchristos$as_echo "$ac_cv_build" >&6; } 27887d62b00eSchristoscase $ac_cv_build in 27897d62b00eSchristos*-*-*) ;; 27907d62b00eSchristos*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 27917d62b00eSchristosesac 27927d62b00eSchristosbuild=$ac_cv_build 27937d62b00eSchristosac_save_IFS=$IFS; IFS='-' 27947d62b00eSchristosset x $ac_cv_build 27957d62b00eSchristosshift 27967d62b00eSchristosbuild_cpu=$1 27977d62b00eSchristosbuild_vendor=$2 27987d62b00eSchristosshift; shift 27997d62b00eSchristos# Remember, the first character of IFS is used to create $*, 28007d62b00eSchristos# except with old shells: 28017d62b00eSchristosbuild_os=$* 28027d62b00eSchristosIFS=$ac_save_IFS 28037d62b00eSchristoscase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 28047d62b00eSchristos 28057d62b00eSchristos 2806*6881a400Schristos 2807*6881a400Schristos# Set host, host_cpu, host_vendor, and host_os. 28087d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 28097d62b00eSchristos$as_echo_n "checking host system type... " >&6; } 28107d62b00eSchristosif ${ac_cv_host+:} false; then : 28117d62b00eSchristos $as_echo_n "(cached) " >&6 28127d62b00eSchristoselse 28137d62b00eSchristos if test "x$host_alias" = x; then 28147d62b00eSchristos ac_cv_host=$ac_cv_build 28157d62b00eSchristoselse 28167d62b00eSchristos ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 28177d62b00eSchristos as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 28187d62b00eSchristosfi 28197d62b00eSchristos 28207d62b00eSchristosfi 28217d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 28227d62b00eSchristos$as_echo "$ac_cv_host" >&6; } 28237d62b00eSchristoscase $ac_cv_host in 28247d62b00eSchristos*-*-*) ;; 28257d62b00eSchristos*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 28267d62b00eSchristosesac 28277d62b00eSchristoshost=$ac_cv_host 28287d62b00eSchristosac_save_IFS=$IFS; IFS='-' 28297d62b00eSchristosset x $ac_cv_host 28307d62b00eSchristosshift 28317d62b00eSchristoshost_cpu=$1 28327d62b00eSchristoshost_vendor=$2 28337d62b00eSchristosshift; shift 28347d62b00eSchristos# Remember, the first character of IFS is used to create $*, 28357d62b00eSchristos# except with old shells: 28367d62b00eSchristoshost_os=$* 28377d62b00eSchristosIFS=$ac_save_IFS 28387d62b00eSchristoscase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 28397d62b00eSchristos 28407d62b00eSchristos 2841*6881a400Schristos 2842*6881a400Schristos# Set target, target_cpu, target_vendor, and target_os. 28437d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 28447d62b00eSchristos$as_echo_n "checking target system type... " >&6; } 28457d62b00eSchristosif ${ac_cv_target+:} false; then : 28467d62b00eSchristos $as_echo_n "(cached) " >&6 28477d62b00eSchristoselse 28487d62b00eSchristos if test "x$target_alias" = x; then 28497d62b00eSchristos ac_cv_target=$ac_cv_host 28507d62b00eSchristoselse 28517d62b00eSchristos ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 28527d62b00eSchristos as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 28537d62b00eSchristosfi 28547d62b00eSchristos 28557d62b00eSchristosfi 28567d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 28577d62b00eSchristos$as_echo "$ac_cv_target" >&6; } 28587d62b00eSchristoscase $ac_cv_target in 28597d62b00eSchristos*-*-*) ;; 28607d62b00eSchristos*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 28617d62b00eSchristosesac 28627d62b00eSchristostarget=$ac_cv_target 28637d62b00eSchristosac_save_IFS=$IFS; IFS='-' 28647d62b00eSchristosset x $ac_cv_target 28657d62b00eSchristosshift 28667d62b00eSchristostarget_cpu=$1 28677d62b00eSchristostarget_vendor=$2 28687d62b00eSchristosshift; shift 28697d62b00eSchristos# Remember, the first character of IFS is used to create $*, 28707d62b00eSchristos# except with old shells: 28717d62b00eSchristostarget_os=$* 28727d62b00eSchristosIFS=$ac_save_IFS 28737d62b00eSchristoscase $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 28747d62b00eSchristos 28757d62b00eSchristos 28767d62b00eSchristos# The aliases save the names the user supplied, while $host etc. 28777d62b00eSchristos# will get canonicalized. 28787d62b00eSchristostest -n "$target_alias" && 28797d62b00eSchristos test "$program_prefix$program_suffix$program_transform_name" = \ 28807d62b00eSchristos NONENONEs,x,x, && 28817d62b00eSchristos program_prefix=${target_alias}- 28827d62b00eSchristos 28837d62b00eSchristos 28847d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 28857d62b00eSchristos$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 28867d62b00eSchristos # Check whether --enable-maintainer-mode was given. 28877d62b00eSchristosif test "${enable_maintainer_mode+set}" = set; then : 28887d62b00eSchristos enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 28897d62b00eSchristoselse 28907d62b00eSchristos USE_MAINTAINER_MODE=no 28917d62b00eSchristosfi 28927d62b00eSchristos 28937d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 28947d62b00eSchristos$as_echo "$USE_MAINTAINER_MODE" >&6; } 28957d62b00eSchristos if test $USE_MAINTAINER_MODE = yes; then 28967d62b00eSchristos MAINTAINER_MODE_TRUE= 28977d62b00eSchristos MAINTAINER_MODE_FALSE='#' 28987d62b00eSchristoselse 28997d62b00eSchristos MAINTAINER_MODE_TRUE='#' 29007d62b00eSchristos MAINTAINER_MODE_FALSE= 29017d62b00eSchristosfi 29027d62b00eSchristos 29037d62b00eSchristos MAINT=$MAINTAINER_MODE_TRUE 29047d62b00eSchristos 29057d62b00eSchristos 29067d62b00eSchristosac_aux_dir= 29077d62b00eSchristosfor ac_dir in .. "$srcdir"/..; do 29087d62b00eSchristos if test -f "$ac_dir/install-sh"; then 29097d62b00eSchristos ac_aux_dir=$ac_dir 29107d62b00eSchristos ac_install_sh="$ac_aux_dir/install-sh -c" 29117d62b00eSchristos break 29127d62b00eSchristos elif test -f "$ac_dir/install.sh"; then 29137d62b00eSchristos ac_aux_dir=$ac_dir 29147d62b00eSchristos ac_install_sh="$ac_aux_dir/install.sh -c" 29157d62b00eSchristos break 29167d62b00eSchristos elif test -f "$ac_dir/shtool"; then 29177d62b00eSchristos ac_aux_dir=$ac_dir 29187d62b00eSchristos ac_install_sh="$ac_aux_dir/shtool install -c" 29197d62b00eSchristos break 29207d62b00eSchristos fi 29217d62b00eSchristosdone 29227d62b00eSchristosif test -z "$ac_aux_dir"; then 29237d62b00eSchristos as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5 29247d62b00eSchristosfi 29257d62b00eSchristos 29267d62b00eSchristos# These three variables are undocumented and unsupported, 29277d62b00eSchristos# and are intended to be withdrawn in a future Autoconf release. 29287d62b00eSchristos# They can cause serious problems if a builder's source tree is in a directory 29297d62b00eSchristos# whose full name contains unusual characters. 29307d62b00eSchristosac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 29317d62b00eSchristosac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 29327d62b00eSchristosac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 29337d62b00eSchristos 29347d62b00eSchristos 29357d62b00eSchristosam__api_version='1.15' 29367d62b00eSchristos 29377d62b00eSchristos# Find a good install program. We prefer a C program (faster), 29387d62b00eSchristos# so one script is as good as another. But avoid the broken or 29397d62b00eSchristos# incompatible versions: 29407d62b00eSchristos# SysV /etc/install, /usr/sbin/install 29417d62b00eSchristos# SunOS /usr/etc/install 29427d62b00eSchristos# IRIX /sbin/install 29437d62b00eSchristos# AIX /bin/install 29447d62b00eSchristos# AmigaOS /C/install, which installs bootblocks on floppy discs 29457d62b00eSchristos# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 29467d62b00eSchristos# AFS /usr/afsws/bin/install, which mishandles nonexistent args 29477d62b00eSchristos# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 29487d62b00eSchristos# OS/2's system install, which has a completely different semantic 29497d62b00eSchristos# ./install, which can be erroneously created by make from ./install.sh. 29507d62b00eSchristos# Reject install programs that cannot install multiple files. 29517d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 29527d62b00eSchristos$as_echo_n "checking for a BSD-compatible install... " >&6; } 29537d62b00eSchristosif test -z "$INSTALL"; then 29547d62b00eSchristosif ${ac_cv_path_install+:} false; then : 29557d62b00eSchristos $as_echo_n "(cached) " >&6 29567d62b00eSchristoselse 29577d62b00eSchristos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29587d62b00eSchristosfor as_dir in $PATH 29597d62b00eSchristosdo 29607d62b00eSchristos IFS=$as_save_IFS 29617d62b00eSchristos test -z "$as_dir" && as_dir=. 29627d62b00eSchristos # Account for people who put trailing slashes in PATH elements. 29637d62b00eSchristoscase $as_dir/ in #(( 29647d62b00eSchristos ./ | .// | /[cC]/* | \ 29657d62b00eSchristos /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 29667d62b00eSchristos ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 29677d62b00eSchristos /usr/ucb/* ) ;; 29687d62b00eSchristos *) 29697d62b00eSchristos # OSF1 and SCO ODT 3.0 have their own names for install. 29707d62b00eSchristos # Don't use installbsd from OSF since it installs stuff as root 29717d62b00eSchristos # by default. 29727d62b00eSchristos for ac_prog in ginstall scoinst install; do 29737d62b00eSchristos for ac_exec_ext in '' $ac_executable_extensions; do 29747d62b00eSchristos if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 29757d62b00eSchristos if test $ac_prog = install && 29767d62b00eSchristos grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 29777d62b00eSchristos # AIX install. It has an incompatible calling convention. 29787d62b00eSchristos : 29797d62b00eSchristos elif test $ac_prog = install && 29807d62b00eSchristos grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 29817d62b00eSchristos # program-specific install script used by HP pwplus--don't use. 29827d62b00eSchristos : 29837d62b00eSchristos else 29847d62b00eSchristos rm -rf conftest.one conftest.two conftest.dir 29857d62b00eSchristos echo one > conftest.one 29867d62b00eSchristos echo two > conftest.two 29877d62b00eSchristos mkdir conftest.dir 29887d62b00eSchristos if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 29897d62b00eSchristos test -s conftest.one && test -s conftest.two && 29907d62b00eSchristos test -s conftest.dir/conftest.one && 29917d62b00eSchristos test -s conftest.dir/conftest.two 29927d62b00eSchristos then 29937d62b00eSchristos ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 29947d62b00eSchristos break 3 29957d62b00eSchristos fi 29967d62b00eSchristos fi 29977d62b00eSchristos fi 29987d62b00eSchristos done 29997d62b00eSchristos done 30007d62b00eSchristos ;; 30017d62b00eSchristosesac 30027d62b00eSchristos 30037d62b00eSchristos done 30047d62b00eSchristosIFS=$as_save_IFS 30057d62b00eSchristos 30067d62b00eSchristosrm -rf conftest.one conftest.two conftest.dir 30077d62b00eSchristos 30087d62b00eSchristosfi 30097d62b00eSchristos if test "${ac_cv_path_install+set}" = set; then 30107d62b00eSchristos INSTALL=$ac_cv_path_install 30117d62b00eSchristos else 30127d62b00eSchristos # As a last resort, use the slow shell script. Don't cache a 30137d62b00eSchristos # value for INSTALL within a source directory, because that will 30147d62b00eSchristos # break other packages using the cache if that directory is 30157d62b00eSchristos # removed, or if the value is a relative name. 30167d62b00eSchristos INSTALL=$ac_install_sh 30177d62b00eSchristos fi 30187d62b00eSchristosfi 30197d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 30207d62b00eSchristos$as_echo "$INSTALL" >&6; } 30217d62b00eSchristos 30227d62b00eSchristos# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 30237d62b00eSchristos# It thinks the first close brace ends the variable substitution. 30247d62b00eSchristostest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 30257d62b00eSchristos 30267d62b00eSchristostest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 30277d62b00eSchristos 30287d62b00eSchristostest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 30297d62b00eSchristos 30307d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 30317d62b00eSchristos$as_echo_n "checking whether build environment is sane... " >&6; } 30327d62b00eSchristos# Reject unsafe characters in $srcdir or the absolute working directory 30337d62b00eSchristos# name. Accept space and tab only in the latter. 30347d62b00eSchristosam_lf=' 30357d62b00eSchristos' 30367d62b00eSchristoscase `pwd` in 30377d62b00eSchristos *[\\\"\#\$\&\'\`$am_lf]*) 30387d62b00eSchristos as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 30397d62b00eSchristosesac 30407d62b00eSchristoscase $srcdir in 30417d62b00eSchristos *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 30427d62b00eSchristos as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 30437d62b00eSchristosesac 30447d62b00eSchristos 30457d62b00eSchristos# Do 'set' in a subshell so we don't clobber the current shell's 30467d62b00eSchristos# arguments. Must try -L first in case configure is actually a 30477d62b00eSchristos# symlink; some systems play weird games with the mod time of symlinks 30487d62b00eSchristos# (eg FreeBSD returns the mod time of the symlink's containing 30497d62b00eSchristos# directory). 30507d62b00eSchristosif ( 30517d62b00eSchristos am_has_slept=no 30527d62b00eSchristos for am_try in 1 2; do 30537d62b00eSchristos echo "timestamp, slept: $am_has_slept" > conftest.file 30547d62b00eSchristos set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 30557d62b00eSchristos if test "$*" = "X"; then 30567d62b00eSchristos # -L didn't work. 30577d62b00eSchristos set X `ls -t "$srcdir/configure" conftest.file` 30587d62b00eSchristos fi 30597d62b00eSchristos if test "$*" != "X $srcdir/configure conftest.file" \ 30607d62b00eSchristos && test "$*" != "X conftest.file $srcdir/configure"; then 30617d62b00eSchristos 30627d62b00eSchristos # If neither matched, then we have a broken ls. This can happen 30637d62b00eSchristos # if, for instance, CONFIG_SHELL is bash and it inherits a 30647d62b00eSchristos # broken ls alias from the environment. This has actually 30657d62b00eSchristos # happened. Such a system could not be considered "sane". 30667d62b00eSchristos as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 30677d62b00eSchristos alias in your environment" "$LINENO" 5 30687d62b00eSchristos fi 30697d62b00eSchristos if test "$2" = conftest.file || test $am_try -eq 2; then 30707d62b00eSchristos break 30717d62b00eSchristos fi 30727d62b00eSchristos # Just in case. 30737d62b00eSchristos sleep 1 30747d62b00eSchristos am_has_slept=yes 30757d62b00eSchristos done 30767d62b00eSchristos test "$2" = conftest.file 30777d62b00eSchristos ) 30787d62b00eSchristosthen 30797d62b00eSchristos # Ok. 30807d62b00eSchristos : 30817d62b00eSchristoselse 30827d62b00eSchristos as_fn_error $? "newly created file is older than distributed files! 30837d62b00eSchristosCheck your system clock" "$LINENO" 5 30847d62b00eSchristosfi 30857d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30867d62b00eSchristos$as_echo "yes" >&6; } 30877d62b00eSchristos# If we didn't sleep, we still need to ensure time stamps of config.status and 30887d62b00eSchristos# generated files are strictly newer. 30897d62b00eSchristosam_sleep_pid= 30907d62b00eSchristosif grep 'slept: no' conftest.file >/dev/null 2>&1; then 30917d62b00eSchristos ( sleep 1 ) & 30927d62b00eSchristos am_sleep_pid=$! 30937d62b00eSchristosfi 30947d62b00eSchristos 30957d62b00eSchristosrm -f conftest.file 30967d62b00eSchristos 30977d62b00eSchristostest "$program_prefix" != NONE && 30987d62b00eSchristos program_transform_name="s&^&$program_prefix&;$program_transform_name" 30997d62b00eSchristos# Use a double $ so make ignores it. 31007d62b00eSchristostest "$program_suffix" != NONE && 31017d62b00eSchristos program_transform_name="s&\$&$program_suffix&;$program_transform_name" 31027d62b00eSchristos# Double any \ or $. 31037d62b00eSchristos# By default was `s,x,x', remove it if useless. 31047d62b00eSchristosac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 31057d62b00eSchristosprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 31067d62b00eSchristos 31077d62b00eSchristos# Expand $ac_aux_dir to an absolute path. 31087d62b00eSchristosam_aux_dir=`cd "$ac_aux_dir" && pwd` 31097d62b00eSchristos 31107d62b00eSchristosif test x"${MISSING+set}" != xset; then 31117d62b00eSchristos case $am_aux_dir in 31127d62b00eSchristos *\ * | *\ *) 31137d62b00eSchristos MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 31147d62b00eSchristos *) 31157d62b00eSchristos MISSING="\${SHELL} $am_aux_dir/missing" ;; 31167d62b00eSchristos esac 31177d62b00eSchristosfi 31187d62b00eSchristos# Use eval to expand $SHELL 31197d62b00eSchristosif eval "$MISSING --is-lightweight"; then 31207d62b00eSchristos am_missing_run="$MISSING " 31217d62b00eSchristoselse 31227d62b00eSchristos am_missing_run= 31237d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 31247d62b00eSchristos$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 31257d62b00eSchristosfi 31267d62b00eSchristos 31277d62b00eSchristosif test x"${install_sh+set}" != xset; then 31287d62b00eSchristos case $am_aux_dir in 31297d62b00eSchristos *\ * | *\ *) 31307d62b00eSchristos install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 31317d62b00eSchristos *) 31327d62b00eSchristos install_sh="\${SHELL} $am_aux_dir/install-sh" 31337d62b00eSchristos esac 31347d62b00eSchristosfi 31357d62b00eSchristos 31367d62b00eSchristos# Installed binaries are usually stripped using 'strip' when the user 31377d62b00eSchristos# run "make install-strip". However 'strip' might not be the right 31387d62b00eSchristos# tool to use in cross-compilation environments, therefore Automake 31397d62b00eSchristos# will honor the 'STRIP' environment variable to overrule this program. 31407d62b00eSchristosif test "$cross_compiling" != no; then 31417d62b00eSchristos if test -n "$ac_tool_prefix"; then 31427d62b00eSchristos # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 31437d62b00eSchristosset dummy ${ac_tool_prefix}strip; ac_word=$2 31447d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31457d62b00eSchristos$as_echo_n "checking for $ac_word... " >&6; } 31467d62b00eSchristosif ${ac_cv_prog_STRIP+:} false; then : 31477d62b00eSchristos $as_echo_n "(cached) " >&6 31487d62b00eSchristoselse 31497d62b00eSchristos if test -n "$STRIP"; then 31507d62b00eSchristos ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 31517d62b00eSchristoselse 31527d62b00eSchristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31537d62b00eSchristosfor as_dir in $PATH 31547d62b00eSchristosdo 31557d62b00eSchristos IFS=$as_save_IFS 31567d62b00eSchristos test -z "$as_dir" && as_dir=. 31577d62b00eSchristos for ac_exec_ext in '' $ac_executable_extensions; do 31587d62b00eSchristos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31597d62b00eSchristos ac_cv_prog_STRIP="${ac_tool_prefix}strip" 31607d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31617d62b00eSchristos break 2 31627d62b00eSchristos fi 31637d62b00eSchristosdone 31647d62b00eSchristos done 31657d62b00eSchristosIFS=$as_save_IFS 31667d62b00eSchristos 31677d62b00eSchristosfi 31687d62b00eSchristosfi 31697d62b00eSchristosSTRIP=$ac_cv_prog_STRIP 31707d62b00eSchristosif test -n "$STRIP"; then 31717d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 31727d62b00eSchristos$as_echo "$STRIP" >&6; } 31737d62b00eSchristoselse 31747d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31757d62b00eSchristos$as_echo "no" >&6; } 31767d62b00eSchristosfi 31777d62b00eSchristos 31787d62b00eSchristos 31797d62b00eSchristosfi 31807d62b00eSchristosif test -z "$ac_cv_prog_STRIP"; then 31817d62b00eSchristos ac_ct_STRIP=$STRIP 31827d62b00eSchristos # Extract the first word of "strip", so it can be a program name with args. 31837d62b00eSchristosset dummy strip; ac_word=$2 31847d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31857d62b00eSchristos$as_echo_n "checking for $ac_word... " >&6; } 31867d62b00eSchristosif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 31877d62b00eSchristos $as_echo_n "(cached) " >&6 31887d62b00eSchristoselse 31897d62b00eSchristos if test -n "$ac_ct_STRIP"; then 31907d62b00eSchristos ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 31917d62b00eSchristoselse 31927d62b00eSchristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31937d62b00eSchristosfor as_dir in $PATH 31947d62b00eSchristosdo 31957d62b00eSchristos IFS=$as_save_IFS 31967d62b00eSchristos test -z "$as_dir" && as_dir=. 31977d62b00eSchristos for ac_exec_ext in '' $ac_executable_extensions; do 31987d62b00eSchristos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31997d62b00eSchristos ac_cv_prog_ac_ct_STRIP="strip" 32007d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32017d62b00eSchristos break 2 32027d62b00eSchristos fi 32037d62b00eSchristosdone 32047d62b00eSchristos done 32057d62b00eSchristosIFS=$as_save_IFS 32067d62b00eSchristos 32077d62b00eSchristosfi 32087d62b00eSchristosfi 32097d62b00eSchristosac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 32107d62b00eSchristosif test -n "$ac_ct_STRIP"; then 32117d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 32127d62b00eSchristos$as_echo "$ac_ct_STRIP" >&6; } 32137d62b00eSchristoselse 32147d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32157d62b00eSchristos$as_echo "no" >&6; } 32167d62b00eSchristosfi 32177d62b00eSchristos 32187d62b00eSchristos if test "x$ac_ct_STRIP" = x; then 32197d62b00eSchristos STRIP=":" 32207d62b00eSchristos else 32217d62b00eSchristos case $cross_compiling:$ac_tool_warned in 32227d62b00eSchristosyes:) 32237d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32247d62b00eSchristos$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32257d62b00eSchristosac_tool_warned=yes ;; 32267d62b00eSchristosesac 32277d62b00eSchristos STRIP=$ac_ct_STRIP 32287d62b00eSchristos fi 32297d62b00eSchristoselse 32307d62b00eSchristos STRIP="$ac_cv_prog_STRIP" 32317d62b00eSchristosfi 32327d62b00eSchristos 32337d62b00eSchristosfi 32347d62b00eSchristosINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 32357d62b00eSchristos 32367d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 32377d62b00eSchristos$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 32387d62b00eSchristosif test -z "$MKDIR_P"; then 32397d62b00eSchristos if ${ac_cv_path_mkdir+:} false; then : 32407d62b00eSchristos $as_echo_n "(cached) " >&6 32417d62b00eSchristoselse 32427d62b00eSchristos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32437d62b00eSchristosfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 32447d62b00eSchristosdo 32457d62b00eSchristos IFS=$as_save_IFS 32467d62b00eSchristos test -z "$as_dir" && as_dir=. 32477d62b00eSchristos for ac_prog in mkdir gmkdir; do 32487d62b00eSchristos for ac_exec_ext in '' $ac_executable_extensions; do 32497d62b00eSchristos as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 32507d62b00eSchristos case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 32517d62b00eSchristos 'mkdir (GNU coreutils) '* | \ 32527d62b00eSchristos 'mkdir (coreutils) '* | \ 32537d62b00eSchristos 'mkdir (fileutils) '4.1*) 32547d62b00eSchristos ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 32557d62b00eSchristos break 3;; 32567d62b00eSchristos esac 32577d62b00eSchristos done 32587d62b00eSchristos done 32597d62b00eSchristos done 32607d62b00eSchristosIFS=$as_save_IFS 32617d62b00eSchristos 32627d62b00eSchristosfi 32637d62b00eSchristos 32647d62b00eSchristos test -d ./--version && rmdir ./--version 32657d62b00eSchristos if test "${ac_cv_path_mkdir+set}" = set; then 32667d62b00eSchristos MKDIR_P="$ac_cv_path_mkdir -p" 32677d62b00eSchristos else 32687d62b00eSchristos # As a last resort, use the slow shell script. Don't cache a 32697d62b00eSchristos # value for MKDIR_P within a source directory, because that will 32707d62b00eSchristos # break other packages using the cache if that directory is 32717d62b00eSchristos # removed, or if the value is a relative name. 32727d62b00eSchristos MKDIR_P="$ac_install_sh -d" 32737d62b00eSchristos fi 32747d62b00eSchristosfi 32757d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 32767d62b00eSchristos$as_echo "$MKDIR_P" >&6; } 32777d62b00eSchristos 32787d62b00eSchristosfor ac_prog in gawk mawk nawk awk 32797d62b00eSchristosdo 32807d62b00eSchristos # Extract the first word of "$ac_prog", so it can be a program name with args. 32817d62b00eSchristosset dummy $ac_prog; ac_word=$2 32827d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32837d62b00eSchristos$as_echo_n "checking for $ac_word... " >&6; } 32847d62b00eSchristosif ${ac_cv_prog_AWK+:} false; then : 32857d62b00eSchristos $as_echo_n "(cached) " >&6 32867d62b00eSchristoselse 32877d62b00eSchristos if test -n "$AWK"; then 32887d62b00eSchristos ac_cv_prog_AWK="$AWK" # Let the user override the test. 32897d62b00eSchristoselse 32907d62b00eSchristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32917d62b00eSchristosfor as_dir in $PATH 32927d62b00eSchristosdo 32937d62b00eSchristos IFS=$as_save_IFS 32947d62b00eSchristos test -z "$as_dir" && as_dir=. 32957d62b00eSchristos for ac_exec_ext in '' $ac_executable_extensions; do 32967d62b00eSchristos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32977d62b00eSchristos ac_cv_prog_AWK="$ac_prog" 32987d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32997d62b00eSchristos break 2 33007d62b00eSchristos fi 33017d62b00eSchristosdone 33027d62b00eSchristos done 33037d62b00eSchristosIFS=$as_save_IFS 33047d62b00eSchristos 33057d62b00eSchristosfi 33067d62b00eSchristosfi 33077d62b00eSchristosAWK=$ac_cv_prog_AWK 33087d62b00eSchristosif test -n "$AWK"; then 33097d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 33107d62b00eSchristos$as_echo "$AWK" >&6; } 33117d62b00eSchristoselse 33127d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33137d62b00eSchristos$as_echo "no" >&6; } 33147d62b00eSchristosfi 33157d62b00eSchristos 33167d62b00eSchristos 33177d62b00eSchristos test -n "$AWK" && break 33187d62b00eSchristosdone 33197d62b00eSchristos 33207d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 33217d62b00eSchristos$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 33227d62b00eSchristosset x ${MAKE-make} 33237d62b00eSchristosac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 33247d62b00eSchristosif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 33257d62b00eSchristos $as_echo_n "(cached) " >&6 33267d62b00eSchristoselse 33277d62b00eSchristos cat >conftest.make <<\_ACEOF 33287d62b00eSchristosSHELL = /bin/sh 33297d62b00eSchristosall: 33307d62b00eSchristos @echo '@@@%%%=$(MAKE)=@@@%%%' 33317d62b00eSchristos_ACEOF 33327d62b00eSchristos# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 33337d62b00eSchristoscase `${MAKE-make} -f conftest.make 2>/dev/null` in 33347d62b00eSchristos *@@@%%%=?*=@@@%%%*) 33357d62b00eSchristos eval ac_cv_prog_make_${ac_make}_set=yes;; 33367d62b00eSchristos *) 33377d62b00eSchristos eval ac_cv_prog_make_${ac_make}_set=no;; 33387d62b00eSchristosesac 33397d62b00eSchristosrm -f conftest.make 33407d62b00eSchristosfi 33417d62b00eSchristosif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 33427d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33437d62b00eSchristos$as_echo "yes" >&6; } 33447d62b00eSchristos SET_MAKE= 33457d62b00eSchristoselse 33467d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33477d62b00eSchristos$as_echo "no" >&6; } 33487d62b00eSchristos SET_MAKE="MAKE=${MAKE-make}" 33497d62b00eSchristosfi 33507d62b00eSchristos 33517d62b00eSchristosrm -rf .tst 2>/dev/null 33527d62b00eSchristosmkdir .tst 2>/dev/null 33537d62b00eSchristosif test -d .tst; then 33547d62b00eSchristos am__leading_dot=. 33557d62b00eSchristoselse 33567d62b00eSchristos am__leading_dot=_ 33577d62b00eSchristosfi 33587d62b00eSchristosrmdir .tst 2>/dev/null 33597d62b00eSchristos 33607d62b00eSchristos# Check whether --enable-silent-rules was given. 33617d62b00eSchristosif test "${enable_silent_rules+set}" = set; then : 33627d62b00eSchristos enableval=$enable_silent_rules; 33637d62b00eSchristosfi 33647d62b00eSchristos 33657d62b00eSchristoscase $enable_silent_rules in # ((( 33667d62b00eSchristos yes) AM_DEFAULT_VERBOSITY=0;; 33677d62b00eSchristos no) AM_DEFAULT_VERBOSITY=1;; 33687d62b00eSchristos *) AM_DEFAULT_VERBOSITY=1;; 33697d62b00eSchristosesac 33707d62b00eSchristosam_make=${MAKE-make} 33717d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 33727d62b00eSchristos$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 33737d62b00eSchristosif ${am_cv_make_support_nested_variables+:} false; then : 33747d62b00eSchristos $as_echo_n "(cached) " >&6 33757d62b00eSchristoselse 33767d62b00eSchristos if $as_echo 'TRUE=$(BAR$(V)) 33777d62b00eSchristosBAR0=false 33787d62b00eSchristosBAR1=true 33797d62b00eSchristosV=1 33807d62b00eSchristosam__doit: 33817d62b00eSchristos @$(TRUE) 33827d62b00eSchristos.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 33837d62b00eSchristos am_cv_make_support_nested_variables=yes 33847d62b00eSchristoselse 33857d62b00eSchristos am_cv_make_support_nested_variables=no 33867d62b00eSchristosfi 33877d62b00eSchristosfi 33887d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 33897d62b00eSchristos$as_echo "$am_cv_make_support_nested_variables" >&6; } 33907d62b00eSchristosif test $am_cv_make_support_nested_variables = yes; then 33917d62b00eSchristos AM_V='$(V)' 33927d62b00eSchristos AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 33937d62b00eSchristoselse 33947d62b00eSchristos AM_V=$AM_DEFAULT_VERBOSITY 33957d62b00eSchristos AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 33967d62b00eSchristosfi 33977d62b00eSchristosAM_BACKSLASH='\' 33987d62b00eSchristos 33997d62b00eSchristosif test "`cd $srcdir && pwd`" != "`pwd`"; then 34007d62b00eSchristos # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 34017d62b00eSchristos # is not polluted with repeated "-I." 34027d62b00eSchristos am__isrc=' -I$(srcdir)' 34037d62b00eSchristos # test to see if srcdir already configured 34047d62b00eSchristos if test -f $srcdir/config.status; then 34057d62b00eSchristos as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 34067d62b00eSchristos fi 34077d62b00eSchristosfi 34087d62b00eSchristos 34097d62b00eSchristos# test whether we have cygpath 34107d62b00eSchristosif test -z "$CYGPATH_W"; then 34117d62b00eSchristos if (cygpath --version) >/dev/null 2>/dev/null; then 34127d62b00eSchristos CYGPATH_W='cygpath -w' 34137d62b00eSchristos else 34147d62b00eSchristos CYGPATH_W=echo 34157d62b00eSchristos fi 34167d62b00eSchristosfi 34177d62b00eSchristos 34187d62b00eSchristos 34197d62b00eSchristos# Define the identity of the package. 34207d62b00eSchristos PACKAGE='gdbsupport' 34217d62b00eSchristos VERSION='1.0' 34227d62b00eSchristos 34237d62b00eSchristos 34247d62b00eSchristoscat >>confdefs.h <<_ACEOF 34257d62b00eSchristos#define PACKAGE "$PACKAGE" 34267d62b00eSchristos_ACEOF 34277d62b00eSchristos 34287d62b00eSchristos 34297d62b00eSchristoscat >>confdefs.h <<_ACEOF 34307d62b00eSchristos#define VERSION "$VERSION" 34317d62b00eSchristos_ACEOF 34327d62b00eSchristos 34337d62b00eSchristos# Some tools Automake needs. 34347d62b00eSchristos 34357d62b00eSchristosACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 34367d62b00eSchristos 34377d62b00eSchristos 34387d62b00eSchristosAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 34397d62b00eSchristos 34407d62b00eSchristos 34417d62b00eSchristosAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 34427d62b00eSchristos 34437d62b00eSchristos 34447d62b00eSchristosAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 34457d62b00eSchristos 34467d62b00eSchristos 34477d62b00eSchristosMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 34487d62b00eSchristos 34497d62b00eSchristos# For better backward compatibility. To be removed once Automake 1.9.x 34507d62b00eSchristos# dies out for good. For more background, see: 34517d62b00eSchristos# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 34527d62b00eSchristos# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 34537d62b00eSchristosmkdir_p='$(MKDIR_P)' 34547d62b00eSchristos 34557d62b00eSchristos# We need awk for the "check" target (and possibly the TAP driver). The 34567d62b00eSchristos# system "awk" is bad on some platforms. 34577d62b00eSchristos# Always define AMTAR for backward compatibility. Yes, it's still used 34587d62b00eSchristos# in the wild :-( We should find a proper way to deprecate it ... 34597d62b00eSchristosAMTAR='$${TAR-tar}' 34607d62b00eSchristos 34617d62b00eSchristos 34627d62b00eSchristos# We'll loop over all known methods to create a tar archive until one works. 34637d62b00eSchristos_am_tools='gnutar pax cpio none' 34647d62b00eSchristos 34657d62b00eSchristosam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 34667d62b00eSchristos 34677d62b00eSchristos 34687d62b00eSchristos 34697d62b00eSchristos 34707d62b00eSchristos 34717d62b00eSchristos 34727d62b00eSchristos# POSIX will say in a future version that running "rm -f" with no argument 34737d62b00eSchristos# is OK; and we want to be able to make that assumption in our Makefile 34747d62b00eSchristos# recipes. So use an aggressive probe to check that the usage we want is 34757d62b00eSchristos# actually supported "in the wild" to an acceptable degree. 34767d62b00eSchristos# See automake bug#10828. 34777d62b00eSchristos# To make any issue more visible, cause the running configure to be aborted 34787d62b00eSchristos# by default if the 'rm' program in use doesn't match our expectations; the 34797d62b00eSchristos# user can still override this though. 34807d62b00eSchristosif rm -f && rm -fr && rm -rf; then : OK; else 34817d62b00eSchristos cat >&2 <<'END' 34827d62b00eSchristosOops! 34837d62b00eSchristos 34847d62b00eSchristosYour 'rm' program seems unable to run without file operands specified 34857d62b00eSchristoson the command line, even when the '-f' option is present. This is contrary 34867d62b00eSchristosto the behaviour of most rm programs out there, and not conforming with 34877d62b00eSchristosthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 34887d62b00eSchristos 34897d62b00eSchristosPlease tell bug-automake@gnu.org about your system, including the value 34907d62b00eSchristosof your $PATH and any error possibly output before this message. This 34917d62b00eSchristoscan help us improve future automake versions. 34927d62b00eSchristos 34937d62b00eSchristosEND 34947d62b00eSchristos if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 34957d62b00eSchristos echo 'Configuration will proceed anyway, since you have set the' >&2 34967d62b00eSchristos echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 34977d62b00eSchristos echo >&2 34987d62b00eSchristos else 34997d62b00eSchristos cat >&2 <<'END' 35007d62b00eSchristosAborting the configuration process, to ensure you take notice of the issue. 35017d62b00eSchristos 35027d62b00eSchristosYou can download and install GNU coreutils to get an 'rm' implementation 35037d62b00eSchristosthat behaves properly: <http://www.gnu.org/software/coreutils/>. 35047d62b00eSchristos 35057d62b00eSchristosIf you want to complete the configuration process using your problematic 35067d62b00eSchristos'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 35077d62b00eSchristosto "yes", and re-run configure. 35087d62b00eSchristos 35097d62b00eSchristosEND 35107d62b00eSchristos as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 35117d62b00eSchristos fi 35127d62b00eSchristosfi 35137d62b00eSchristos 35147d62b00eSchristos# Check whether --enable-silent-rules was given. 35157d62b00eSchristosif test "${enable_silent_rules+set}" = set; then : 35167d62b00eSchristos enableval=$enable_silent_rules; 35177d62b00eSchristosfi 35187d62b00eSchristos 35197d62b00eSchristoscase $enable_silent_rules in # ((( 35207d62b00eSchristos yes) AM_DEFAULT_VERBOSITY=0;; 35217d62b00eSchristos no) AM_DEFAULT_VERBOSITY=1;; 35227d62b00eSchristos *) AM_DEFAULT_VERBOSITY=0;; 35237d62b00eSchristosesac 35247d62b00eSchristosam_make=${MAKE-make} 35257d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 35267d62b00eSchristos$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 35277d62b00eSchristosif ${am_cv_make_support_nested_variables+:} false; then : 35287d62b00eSchristos $as_echo_n "(cached) " >&6 35297d62b00eSchristoselse 35307d62b00eSchristos if $as_echo 'TRUE=$(BAR$(V)) 35317d62b00eSchristosBAR0=false 35327d62b00eSchristosBAR1=true 35337d62b00eSchristosV=1 35347d62b00eSchristosam__doit: 35357d62b00eSchristos @$(TRUE) 35367d62b00eSchristos.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 35377d62b00eSchristos am_cv_make_support_nested_variables=yes 35387d62b00eSchristoselse 35397d62b00eSchristos am_cv_make_support_nested_variables=no 35407d62b00eSchristosfi 35417d62b00eSchristosfi 35427d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 35437d62b00eSchristos$as_echo "$am_cv_make_support_nested_variables" >&6; } 35447d62b00eSchristosif test $am_cv_make_support_nested_variables = yes; then 35457d62b00eSchristos AM_V='$(V)' 35467d62b00eSchristos AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 35477d62b00eSchristoselse 35487d62b00eSchristos AM_V=$AM_DEFAULT_VERBOSITY 35497d62b00eSchristos AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 35507d62b00eSchristosfi 35517d62b00eSchristosAM_BACKSLASH='\' 35527d62b00eSchristos 35537d62b00eSchristos 35547d62b00eSchristosac_ext=c 35557d62b00eSchristosac_cpp='$CPP $CPPFLAGS' 35567d62b00eSchristosac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35577d62b00eSchristosac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35587d62b00eSchristosac_compiler_gnu=$ac_cv_c_compiler_gnu 35597d62b00eSchristosif test -n "$ac_tool_prefix"; then 35607d62b00eSchristos # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 35617d62b00eSchristosset dummy ${ac_tool_prefix}gcc; ac_word=$2 35627d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35637d62b00eSchristos$as_echo_n "checking for $ac_word... " >&6; } 35647d62b00eSchristosif ${ac_cv_prog_CC+:} false; then : 35657d62b00eSchristos $as_echo_n "(cached) " >&6 35667d62b00eSchristoselse 35677d62b00eSchristos if test -n "$CC"; then 35687d62b00eSchristos ac_cv_prog_CC="$CC" # Let the user override the test. 35697d62b00eSchristoselse 35707d62b00eSchristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35717d62b00eSchristosfor as_dir in $PATH 35727d62b00eSchristosdo 35737d62b00eSchristos IFS=$as_save_IFS 35747d62b00eSchristos test -z "$as_dir" && as_dir=. 35757d62b00eSchristos for ac_exec_ext in '' $ac_executable_extensions; do 35767d62b00eSchristos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35777d62b00eSchristos ac_cv_prog_CC="${ac_tool_prefix}gcc" 35787d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35797d62b00eSchristos break 2 35807d62b00eSchristos fi 35817d62b00eSchristosdone 35827d62b00eSchristos done 35837d62b00eSchristosIFS=$as_save_IFS 35847d62b00eSchristos 35857d62b00eSchristosfi 35867d62b00eSchristosfi 35877d62b00eSchristosCC=$ac_cv_prog_CC 35887d62b00eSchristosif test -n "$CC"; then 35897d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 35907d62b00eSchristos$as_echo "$CC" >&6; } 35917d62b00eSchristoselse 35927d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35937d62b00eSchristos$as_echo "no" >&6; } 35947d62b00eSchristosfi 35957d62b00eSchristos 35967d62b00eSchristos 35977d62b00eSchristosfi 35987d62b00eSchristosif test -z "$ac_cv_prog_CC"; then 35997d62b00eSchristos ac_ct_CC=$CC 36007d62b00eSchristos # Extract the first word of "gcc", so it can be a program name with args. 36017d62b00eSchristosset dummy gcc; ac_word=$2 36027d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36037d62b00eSchristos$as_echo_n "checking for $ac_word... " >&6; } 36047d62b00eSchristosif ${ac_cv_prog_ac_ct_CC+:} false; then : 36057d62b00eSchristos $as_echo_n "(cached) " >&6 36067d62b00eSchristoselse 36077d62b00eSchristos if test -n "$ac_ct_CC"; then 36087d62b00eSchristos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 36097d62b00eSchristoselse 36107d62b00eSchristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36117d62b00eSchristosfor as_dir in $PATH 36127d62b00eSchristosdo 36137d62b00eSchristos IFS=$as_save_IFS 36147d62b00eSchristos test -z "$as_dir" && as_dir=. 36157d62b00eSchristos for ac_exec_ext in '' $ac_executable_extensions; do 36167d62b00eSchristos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36177d62b00eSchristos ac_cv_prog_ac_ct_CC="gcc" 36187d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36197d62b00eSchristos break 2 36207d62b00eSchristos fi 36217d62b00eSchristosdone 36227d62b00eSchristos done 36237d62b00eSchristosIFS=$as_save_IFS 36247d62b00eSchristos 36257d62b00eSchristosfi 36267d62b00eSchristosfi 36277d62b00eSchristosac_ct_CC=$ac_cv_prog_ac_ct_CC 36287d62b00eSchristosif test -n "$ac_ct_CC"; then 36297d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 36307d62b00eSchristos$as_echo "$ac_ct_CC" >&6; } 36317d62b00eSchristoselse 36327d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36337d62b00eSchristos$as_echo "no" >&6; } 36347d62b00eSchristosfi 36357d62b00eSchristos 36367d62b00eSchristos if test "x$ac_ct_CC" = x; then 36377d62b00eSchristos CC="" 36387d62b00eSchristos else 36397d62b00eSchristos case $cross_compiling:$ac_tool_warned in 36407d62b00eSchristosyes:) 36417d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36427d62b00eSchristos$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36437d62b00eSchristosac_tool_warned=yes ;; 36447d62b00eSchristosesac 36457d62b00eSchristos CC=$ac_ct_CC 36467d62b00eSchristos fi 36477d62b00eSchristoselse 36487d62b00eSchristos CC="$ac_cv_prog_CC" 36497d62b00eSchristosfi 36507d62b00eSchristos 36517d62b00eSchristosif test -z "$CC"; then 36527d62b00eSchristos if test -n "$ac_tool_prefix"; then 36537d62b00eSchristos # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 36547d62b00eSchristosset dummy ${ac_tool_prefix}cc; ac_word=$2 36557d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36567d62b00eSchristos$as_echo_n "checking for $ac_word... " >&6; } 36577d62b00eSchristosif ${ac_cv_prog_CC+:} false; then : 36587d62b00eSchristos $as_echo_n "(cached) " >&6 36597d62b00eSchristoselse 36607d62b00eSchristos if test -n "$CC"; then 36617d62b00eSchristos ac_cv_prog_CC="$CC" # Let the user override the test. 36627d62b00eSchristoselse 36637d62b00eSchristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36647d62b00eSchristosfor as_dir in $PATH 36657d62b00eSchristosdo 36667d62b00eSchristos IFS=$as_save_IFS 36677d62b00eSchristos test -z "$as_dir" && as_dir=. 36687d62b00eSchristos for ac_exec_ext in '' $ac_executable_extensions; do 36697d62b00eSchristos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36707d62b00eSchristos ac_cv_prog_CC="${ac_tool_prefix}cc" 36717d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36727d62b00eSchristos break 2 36737d62b00eSchristos fi 36747d62b00eSchristosdone 36757d62b00eSchristos done 36767d62b00eSchristosIFS=$as_save_IFS 36777d62b00eSchristos 36787d62b00eSchristosfi 36797d62b00eSchristosfi 36807d62b00eSchristosCC=$ac_cv_prog_CC 36817d62b00eSchristosif test -n "$CC"; then 36827d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 36837d62b00eSchristos$as_echo "$CC" >&6; } 36847d62b00eSchristoselse 36857d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36867d62b00eSchristos$as_echo "no" >&6; } 36877d62b00eSchristosfi 36887d62b00eSchristos 36897d62b00eSchristos 36907d62b00eSchristos fi 36917d62b00eSchristosfi 36927d62b00eSchristosif test -z "$CC"; then 36937d62b00eSchristos # Extract the first word of "cc", so it can be a program name with args. 36947d62b00eSchristosset dummy cc; ac_word=$2 36957d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36967d62b00eSchristos$as_echo_n "checking for $ac_word... " >&6; } 36977d62b00eSchristosif ${ac_cv_prog_CC+:} false; then : 36987d62b00eSchristos $as_echo_n "(cached) " >&6 36997d62b00eSchristoselse 37007d62b00eSchristos if test -n "$CC"; then 37017d62b00eSchristos ac_cv_prog_CC="$CC" # Let the user override the test. 37027d62b00eSchristoselse 37037d62b00eSchristos ac_prog_rejected=no 37047d62b00eSchristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37057d62b00eSchristosfor as_dir in $PATH 37067d62b00eSchristosdo 37077d62b00eSchristos IFS=$as_save_IFS 37087d62b00eSchristos test -z "$as_dir" && as_dir=. 37097d62b00eSchristos for ac_exec_ext in '' $ac_executable_extensions; do 37107d62b00eSchristos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37117d62b00eSchristos if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 37127d62b00eSchristos ac_prog_rejected=yes 37137d62b00eSchristos continue 37147d62b00eSchristos fi 37157d62b00eSchristos ac_cv_prog_CC="cc" 37167d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37177d62b00eSchristos break 2 37187d62b00eSchristos fi 37197d62b00eSchristosdone 37207d62b00eSchristos done 37217d62b00eSchristosIFS=$as_save_IFS 37227d62b00eSchristos 37237d62b00eSchristosif test $ac_prog_rejected = yes; then 37247d62b00eSchristos # We found a bogon in the path, so make sure we never use it. 37257d62b00eSchristos set dummy $ac_cv_prog_CC 37267d62b00eSchristos shift 37277d62b00eSchristos if test $# != 0; then 37287d62b00eSchristos # We chose a different compiler from the bogus one. 37297d62b00eSchristos # However, it has the same basename, so the bogon will be chosen 37307d62b00eSchristos # first if we set CC to just the basename; use the full file name. 37317d62b00eSchristos shift 37327d62b00eSchristos ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 37337d62b00eSchristos fi 37347d62b00eSchristosfi 37357d62b00eSchristosfi 37367d62b00eSchristosfi 37377d62b00eSchristosCC=$ac_cv_prog_CC 37387d62b00eSchristosif test -n "$CC"; then 37397d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 37407d62b00eSchristos$as_echo "$CC" >&6; } 37417d62b00eSchristoselse 37427d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37437d62b00eSchristos$as_echo "no" >&6; } 37447d62b00eSchristosfi 37457d62b00eSchristos 37467d62b00eSchristos 37477d62b00eSchristosfi 37487d62b00eSchristosif test -z "$CC"; then 37497d62b00eSchristos if test -n "$ac_tool_prefix"; then 37507d62b00eSchristos for ac_prog in cl.exe 37517d62b00eSchristos do 37527d62b00eSchristos # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37537d62b00eSchristosset dummy $ac_tool_prefix$ac_prog; ac_word=$2 37547d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37557d62b00eSchristos$as_echo_n "checking for $ac_word... " >&6; } 37567d62b00eSchristosif ${ac_cv_prog_CC+:} false; then : 37577d62b00eSchristos $as_echo_n "(cached) " >&6 37587d62b00eSchristoselse 37597d62b00eSchristos if test -n "$CC"; then 37607d62b00eSchristos ac_cv_prog_CC="$CC" # Let the user override the test. 37617d62b00eSchristoselse 37627d62b00eSchristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37637d62b00eSchristosfor as_dir in $PATH 37647d62b00eSchristosdo 37657d62b00eSchristos IFS=$as_save_IFS 37667d62b00eSchristos test -z "$as_dir" && as_dir=. 37677d62b00eSchristos for ac_exec_ext in '' $ac_executable_extensions; do 37687d62b00eSchristos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37697d62b00eSchristos ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 37707d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37717d62b00eSchristos break 2 37727d62b00eSchristos fi 37737d62b00eSchristosdone 37747d62b00eSchristos done 37757d62b00eSchristosIFS=$as_save_IFS 37767d62b00eSchristos 37777d62b00eSchristosfi 37787d62b00eSchristosfi 37797d62b00eSchristosCC=$ac_cv_prog_CC 37807d62b00eSchristosif test -n "$CC"; then 37817d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 37827d62b00eSchristos$as_echo "$CC" >&6; } 37837d62b00eSchristoselse 37847d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37857d62b00eSchristos$as_echo "no" >&6; } 37867d62b00eSchristosfi 37877d62b00eSchristos 37887d62b00eSchristos 37897d62b00eSchristos test -n "$CC" && break 37907d62b00eSchristos done 37917d62b00eSchristosfi 37927d62b00eSchristosif test -z "$CC"; then 37937d62b00eSchristos ac_ct_CC=$CC 37947d62b00eSchristos for ac_prog in cl.exe 37957d62b00eSchristosdo 37967d62b00eSchristos # Extract the first word of "$ac_prog", so it can be a program name with args. 37977d62b00eSchristosset dummy $ac_prog; ac_word=$2 37987d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37997d62b00eSchristos$as_echo_n "checking for $ac_word... " >&6; } 38007d62b00eSchristosif ${ac_cv_prog_ac_ct_CC+:} false; then : 38017d62b00eSchristos $as_echo_n "(cached) " >&6 38027d62b00eSchristoselse 38037d62b00eSchristos if test -n "$ac_ct_CC"; then 38047d62b00eSchristos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 38057d62b00eSchristoselse 38067d62b00eSchristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38077d62b00eSchristosfor as_dir in $PATH 38087d62b00eSchristosdo 38097d62b00eSchristos IFS=$as_save_IFS 38107d62b00eSchristos test -z "$as_dir" && as_dir=. 38117d62b00eSchristos for ac_exec_ext in '' $ac_executable_extensions; do 38127d62b00eSchristos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38137d62b00eSchristos ac_cv_prog_ac_ct_CC="$ac_prog" 38147d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38157d62b00eSchristos break 2 38167d62b00eSchristos fi 38177d62b00eSchristosdone 38187d62b00eSchristos done 38197d62b00eSchristosIFS=$as_save_IFS 38207d62b00eSchristos 38217d62b00eSchristosfi 38227d62b00eSchristosfi 38237d62b00eSchristosac_ct_CC=$ac_cv_prog_ac_ct_CC 38247d62b00eSchristosif test -n "$ac_ct_CC"; then 38257d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 38267d62b00eSchristos$as_echo "$ac_ct_CC" >&6; } 38277d62b00eSchristoselse 38287d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38297d62b00eSchristos$as_echo "no" >&6; } 38307d62b00eSchristosfi 38317d62b00eSchristos 38327d62b00eSchristos 38337d62b00eSchristos test -n "$ac_ct_CC" && break 38347d62b00eSchristosdone 38357d62b00eSchristos 38367d62b00eSchristos if test "x$ac_ct_CC" = x; then 38377d62b00eSchristos CC="" 38387d62b00eSchristos else 38397d62b00eSchristos case $cross_compiling:$ac_tool_warned in 38407d62b00eSchristosyes:) 38417d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38427d62b00eSchristos$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38437d62b00eSchristosac_tool_warned=yes ;; 38447d62b00eSchristosesac 38457d62b00eSchristos CC=$ac_ct_CC 38467d62b00eSchristos fi 38477d62b00eSchristosfi 38487d62b00eSchristos 38497d62b00eSchristosfi 38507d62b00eSchristos 38517d62b00eSchristos 38527d62b00eSchristostest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 38537d62b00eSchristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 38547d62b00eSchristosas_fn_error $? "no acceptable C compiler found in \$PATH 38557d62b00eSchristosSee \`config.log' for more details" "$LINENO" 5; } 38567d62b00eSchristos 38577d62b00eSchristos# Provide some information about the compiler. 38587d62b00eSchristos$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 38597d62b00eSchristosset X $ac_compile 38607d62b00eSchristosac_compiler=$2 38617d62b00eSchristosfor ac_option in --version -v -V -qversion; do 38627d62b00eSchristos { { ac_try="$ac_compiler $ac_option >&5" 38637d62b00eSchristoscase "(($ac_try" in 38647d62b00eSchristos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38657d62b00eSchristos *) ac_try_echo=$ac_try;; 38667d62b00eSchristosesac 38677d62b00eSchristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 38687d62b00eSchristos$as_echo "$ac_try_echo"; } >&5 38697d62b00eSchristos (eval "$ac_compiler $ac_option >&5") 2>conftest.err 38707d62b00eSchristos ac_status=$? 38717d62b00eSchristos if test -s conftest.err; then 38727d62b00eSchristos sed '10a\ 38737d62b00eSchristos... rest of stderr output deleted ... 38747d62b00eSchristos 10q' conftest.err >conftest.er1 38757d62b00eSchristos cat conftest.er1 >&5 38767d62b00eSchristos fi 38777d62b00eSchristos rm -f conftest.er1 conftest.err 38787d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38797d62b00eSchristos test $ac_status = 0; } 38807d62b00eSchristosdone 38817d62b00eSchristos 38827d62b00eSchristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext 38837d62b00eSchristos/* end confdefs.h. */ 38847d62b00eSchristos 38857d62b00eSchristosint 38867d62b00eSchristosmain () 38877d62b00eSchristos{ 38887d62b00eSchristos 38897d62b00eSchristos ; 38907d62b00eSchristos return 0; 38917d62b00eSchristos} 38927d62b00eSchristos_ACEOF 38937d62b00eSchristosac_clean_files_save=$ac_clean_files 38947d62b00eSchristosac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 38957d62b00eSchristos# Try to create an executable without -o first, disregard a.out. 38967d62b00eSchristos# It will help us diagnose broken compilers, and finding out an intuition 38977d62b00eSchristos# of exeext. 38987d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 38997d62b00eSchristos$as_echo_n "checking whether the C compiler works... " >&6; } 39007d62b00eSchristosac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 39017d62b00eSchristos 39027d62b00eSchristos# The possible output files: 39037d62b00eSchristosac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 39047d62b00eSchristos 39057d62b00eSchristosac_rmfiles= 39067d62b00eSchristosfor ac_file in $ac_files 39077d62b00eSchristosdo 39087d62b00eSchristos case $ac_file in 39097d62b00eSchristos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 39107d62b00eSchristos * ) ac_rmfiles="$ac_rmfiles $ac_file";; 39117d62b00eSchristos esac 39127d62b00eSchristosdone 39137d62b00eSchristosrm -f $ac_rmfiles 39147d62b00eSchristos 39157d62b00eSchristosif { { ac_try="$ac_link_default" 39167d62b00eSchristoscase "(($ac_try" in 39177d62b00eSchristos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 39187d62b00eSchristos *) ac_try_echo=$ac_try;; 39197d62b00eSchristosesac 39207d62b00eSchristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 39217d62b00eSchristos$as_echo "$ac_try_echo"; } >&5 39227d62b00eSchristos (eval "$ac_link_default") 2>&5 39237d62b00eSchristos ac_status=$? 39247d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 39257d62b00eSchristos test $ac_status = 0; }; then : 39267d62b00eSchristos # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 39277d62b00eSchristos# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 39287d62b00eSchristos# in a Makefile. We should not override ac_cv_exeext if it was cached, 39297d62b00eSchristos# so that the user can short-circuit this test for compilers unknown to 39307d62b00eSchristos# Autoconf. 39317d62b00eSchristosfor ac_file in $ac_files '' 39327d62b00eSchristosdo 39337d62b00eSchristos test -f "$ac_file" || continue 39347d62b00eSchristos case $ac_file in 39357d62b00eSchristos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 39367d62b00eSchristos ;; 39377d62b00eSchristos [ab].out ) 39387d62b00eSchristos # We found the default executable, but exeext='' is most 39397d62b00eSchristos # certainly right. 39407d62b00eSchristos break;; 39417d62b00eSchristos *.* ) 39427d62b00eSchristos if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 39437d62b00eSchristos then :; else 39447d62b00eSchristos ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 39457d62b00eSchristos fi 39467d62b00eSchristos # We set ac_cv_exeext here because the later test for it is not 39477d62b00eSchristos # safe: cross compilers may not add the suffix if given an `-o' 39487d62b00eSchristos # argument, so we may need to know it at that point already. 39497d62b00eSchristos # Even if this section looks crufty: it has the advantage of 39507d62b00eSchristos # actually working. 39517d62b00eSchristos break;; 39527d62b00eSchristos * ) 39537d62b00eSchristos break;; 39547d62b00eSchristos esac 39557d62b00eSchristosdone 39567d62b00eSchristostest "$ac_cv_exeext" = no && ac_cv_exeext= 39577d62b00eSchristos 39587d62b00eSchristoselse 39597d62b00eSchristos ac_file='' 39607d62b00eSchristosfi 39617d62b00eSchristosif test -z "$ac_file"; then : 39627d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39637d62b00eSchristos$as_echo "no" >&6; } 39647d62b00eSchristos$as_echo "$as_me: failed program was:" >&5 39657d62b00eSchristossed 's/^/| /' conftest.$ac_ext >&5 39667d62b00eSchristos 39677d62b00eSchristos{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 39687d62b00eSchristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 39697d62b00eSchristosas_fn_error 77 "C compiler cannot create executables 39707d62b00eSchristosSee \`config.log' for more details" "$LINENO" 5; } 39717d62b00eSchristoselse 39727d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39737d62b00eSchristos$as_echo "yes" >&6; } 39747d62b00eSchristosfi 39757d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 39767d62b00eSchristos$as_echo_n "checking for C compiler default output file name... " >&6; } 39777d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 39787d62b00eSchristos$as_echo "$ac_file" >&6; } 39797d62b00eSchristosac_exeext=$ac_cv_exeext 39807d62b00eSchristos 39817d62b00eSchristosrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 39827d62b00eSchristosac_clean_files=$ac_clean_files_save 39837d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 39847d62b00eSchristos$as_echo_n "checking for suffix of executables... " >&6; } 39857d62b00eSchristosif { { ac_try="$ac_link" 39867d62b00eSchristoscase "(($ac_try" in 39877d62b00eSchristos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 39887d62b00eSchristos *) ac_try_echo=$ac_try;; 39897d62b00eSchristosesac 39907d62b00eSchristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 39917d62b00eSchristos$as_echo "$ac_try_echo"; } >&5 39927d62b00eSchristos (eval "$ac_link") 2>&5 39937d62b00eSchristos ac_status=$? 39947d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 39957d62b00eSchristos test $ac_status = 0; }; then : 39967d62b00eSchristos # If both `conftest.exe' and `conftest' are `present' (well, observable) 39977d62b00eSchristos# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 39987d62b00eSchristos# work properly (i.e., refer to `conftest.exe'), while it won't with 39997d62b00eSchristos# `rm'. 40007d62b00eSchristosfor ac_file in conftest.exe conftest conftest.*; do 40017d62b00eSchristos test -f "$ac_file" || continue 40027d62b00eSchristos case $ac_file in 40037d62b00eSchristos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 40047d62b00eSchristos *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 40057d62b00eSchristos break;; 40067d62b00eSchristos * ) break;; 40077d62b00eSchristos esac 40087d62b00eSchristosdone 40097d62b00eSchristoselse 40107d62b00eSchristos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 40117d62b00eSchristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 40127d62b00eSchristosas_fn_error $? "cannot compute suffix of executables: cannot compile and link 40137d62b00eSchristosSee \`config.log' for more details" "$LINENO" 5; } 40147d62b00eSchristosfi 40157d62b00eSchristosrm -f conftest conftest$ac_cv_exeext 40167d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 40177d62b00eSchristos$as_echo "$ac_cv_exeext" >&6; } 40187d62b00eSchristos 40197d62b00eSchristosrm -f conftest.$ac_ext 40207d62b00eSchristosEXEEXT=$ac_cv_exeext 40217d62b00eSchristosac_exeext=$EXEEXT 40227d62b00eSchristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext 40237d62b00eSchristos/* end confdefs.h. */ 40247d62b00eSchristos#include <stdio.h> 40257d62b00eSchristosint 40267d62b00eSchristosmain () 40277d62b00eSchristos{ 40287d62b00eSchristosFILE *f = fopen ("conftest.out", "w"); 40297d62b00eSchristos return ferror (f) || fclose (f) != 0; 40307d62b00eSchristos 40317d62b00eSchristos ; 40327d62b00eSchristos return 0; 40337d62b00eSchristos} 40347d62b00eSchristos_ACEOF 40357d62b00eSchristosac_clean_files="$ac_clean_files conftest.out" 40367d62b00eSchristos# Check that the compiler produces executables we can run. If not, either 40377d62b00eSchristos# the compiler is broken, or we cross compile. 40387d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 40397d62b00eSchristos$as_echo_n "checking whether we are cross compiling... " >&6; } 40407d62b00eSchristosif test "$cross_compiling" != yes; then 40417d62b00eSchristos { { ac_try="$ac_link" 40427d62b00eSchristoscase "(($ac_try" in 40437d62b00eSchristos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40447d62b00eSchristos *) ac_try_echo=$ac_try;; 40457d62b00eSchristosesac 40467d62b00eSchristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 40477d62b00eSchristos$as_echo "$ac_try_echo"; } >&5 40487d62b00eSchristos (eval "$ac_link") 2>&5 40497d62b00eSchristos ac_status=$? 40507d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 40517d62b00eSchristos test $ac_status = 0; } 40527d62b00eSchristos if { ac_try='./conftest$ac_cv_exeext' 40537d62b00eSchristos { { case "(($ac_try" in 40547d62b00eSchristos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40557d62b00eSchristos *) ac_try_echo=$ac_try;; 40567d62b00eSchristosesac 40577d62b00eSchristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 40587d62b00eSchristos$as_echo "$ac_try_echo"; } >&5 40597d62b00eSchristos (eval "$ac_try") 2>&5 40607d62b00eSchristos ac_status=$? 40617d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 40627d62b00eSchristos test $ac_status = 0; }; }; then 40637d62b00eSchristos cross_compiling=no 40647d62b00eSchristos else 40657d62b00eSchristos if test "$cross_compiling" = maybe; then 40667d62b00eSchristos cross_compiling=yes 40677d62b00eSchristos else 40687d62b00eSchristos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 40697d62b00eSchristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 40707d62b00eSchristosas_fn_error $? "cannot run C compiled programs. 40717d62b00eSchristosIf you meant to cross compile, use \`--host'. 40727d62b00eSchristosSee \`config.log' for more details" "$LINENO" 5; } 40737d62b00eSchristos fi 40747d62b00eSchristos fi 40757d62b00eSchristosfi 40767d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 40777d62b00eSchristos$as_echo "$cross_compiling" >&6; } 40787d62b00eSchristos 40797d62b00eSchristosrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 40807d62b00eSchristosac_clean_files=$ac_clean_files_save 40817d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 40827d62b00eSchristos$as_echo_n "checking for suffix of object files... " >&6; } 40837d62b00eSchristosif ${ac_cv_objext+:} false; then : 40847d62b00eSchristos $as_echo_n "(cached) " >&6 40857d62b00eSchristoselse 40867d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40877d62b00eSchristos/* end confdefs.h. */ 40887d62b00eSchristos 40897d62b00eSchristosint 40907d62b00eSchristosmain () 40917d62b00eSchristos{ 40927d62b00eSchristos 40937d62b00eSchristos ; 40947d62b00eSchristos return 0; 40957d62b00eSchristos} 40967d62b00eSchristos_ACEOF 40977d62b00eSchristosrm -f conftest.o conftest.obj 40987d62b00eSchristosif { { ac_try="$ac_compile" 40997d62b00eSchristoscase "(($ac_try" in 41007d62b00eSchristos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 41017d62b00eSchristos *) ac_try_echo=$ac_try;; 41027d62b00eSchristosesac 41037d62b00eSchristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 41047d62b00eSchristos$as_echo "$ac_try_echo"; } >&5 41057d62b00eSchristos (eval "$ac_compile") 2>&5 41067d62b00eSchristos ac_status=$? 41077d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 41087d62b00eSchristos test $ac_status = 0; }; then : 41097d62b00eSchristos for ac_file in conftest.o conftest.obj conftest.*; do 41107d62b00eSchristos test -f "$ac_file" || continue; 41117d62b00eSchristos case $ac_file in 41127d62b00eSchristos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 41137d62b00eSchristos *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 41147d62b00eSchristos break;; 41157d62b00eSchristos esac 41167d62b00eSchristosdone 41177d62b00eSchristoselse 41187d62b00eSchristos $as_echo "$as_me: failed program was:" >&5 41197d62b00eSchristossed 's/^/| /' conftest.$ac_ext >&5 41207d62b00eSchristos 41217d62b00eSchristos{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41227d62b00eSchristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41237d62b00eSchristosas_fn_error $? "cannot compute suffix of object files: cannot compile 41247d62b00eSchristosSee \`config.log' for more details" "$LINENO" 5; } 41257d62b00eSchristosfi 41267d62b00eSchristosrm -f conftest.$ac_cv_objext conftest.$ac_ext 41277d62b00eSchristosfi 41287d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 41297d62b00eSchristos$as_echo "$ac_cv_objext" >&6; } 41307d62b00eSchristosOBJEXT=$ac_cv_objext 41317d62b00eSchristosac_objext=$OBJEXT 41327d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 41337d62b00eSchristos$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 41347d62b00eSchristosif ${ac_cv_c_compiler_gnu+:} false; then : 41357d62b00eSchristos $as_echo_n "(cached) " >&6 41367d62b00eSchristoselse 41377d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41387d62b00eSchristos/* end confdefs.h. */ 41397d62b00eSchristos 41407d62b00eSchristosint 41417d62b00eSchristosmain () 41427d62b00eSchristos{ 41437d62b00eSchristos#ifndef __GNUC__ 41447d62b00eSchristos choke me 41457d62b00eSchristos#endif 41467d62b00eSchristos 41477d62b00eSchristos ; 41487d62b00eSchristos return 0; 41497d62b00eSchristos} 41507d62b00eSchristos_ACEOF 41517d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 41527d62b00eSchristos ac_compiler_gnu=yes 41537d62b00eSchristoselse 41547d62b00eSchristos ac_compiler_gnu=no 41557d62b00eSchristosfi 41567d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41577d62b00eSchristosac_cv_c_compiler_gnu=$ac_compiler_gnu 41587d62b00eSchristos 41597d62b00eSchristosfi 41607d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 41617d62b00eSchristos$as_echo "$ac_cv_c_compiler_gnu" >&6; } 41627d62b00eSchristosif test $ac_compiler_gnu = yes; then 41637d62b00eSchristos GCC=yes 41647d62b00eSchristoselse 41657d62b00eSchristos GCC= 41667d62b00eSchristosfi 41677d62b00eSchristosac_test_CFLAGS=${CFLAGS+set} 41687d62b00eSchristosac_save_CFLAGS=$CFLAGS 41697d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 41707d62b00eSchristos$as_echo_n "checking whether $CC accepts -g... " >&6; } 41717d62b00eSchristosif ${ac_cv_prog_cc_g+:} false; then : 41727d62b00eSchristos $as_echo_n "(cached) " >&6 41737d62b00eSchristoselse 41747d62b00eSchristos ac_save_c_werror_flag=$ac_c_werror_flag 41757d62b00eSchristos ac_c_werror_flag=yes 41767d62b00eSchristos ac_cv_prog_cc_g=no 41777d62b00eSchristos CFLAGS="-g" 41787d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41797d62b00eSchristos/* end confdefs.h. */ 41807d62b00eSchristos 41817d62b00eSchristosint 41827d62b00eSchristosmain () 41837d62b00eSchristos{ 41847d62b00eSchristos 41857d62b00eSchristos ; 41867d62b00eSchristos return 0; 41877d62b00eSchristos} 41887d62b00eSchristos_ACEOF 41897d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 41907d62b00eSchristos ac_cv_prog_cc_g=yes 41917d62b00eSchristoselse 41927d62b00eSchristos CFLAGS="" 41937d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41947d62b00eSchristos/* end confdefs.h. */ 41957d62b00eSchristos 41967d62b00eSchristosint 41977d62b00eSchristosmain () 41987d62b00eSchristos{ 41997d62b00eSchristos 42007d62b00eSchristos ; 42017d62b00eSchristos return 0; 42027d62b00eSchristos} 42037d62b00eSchristos_ACEOF 42047d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 42057d62b00eSchristos 42067d62b00eSchristoselse 42077d62b00eSchristos ac_c_werror_flag=$ac_save_c_werror_flag 42087d62b00eSchristos CFLAGS="-g" 42097d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42107d62b00eSchristos/* end confdefs.h. */ 42117d62b00eSchristos 42127d62b00eSchristosint 42137d62b00eSchristosmain () 42147d62b00eSchristos{ 42157d62b00eSchristos 42167d62b00eSchristos ; 42177d62b00eSchristos return 0; 42187d62b00eSchristos} 42197d62b00eSchristos_ACEOF 42207d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 42217d62b00eSchristos ac_cv_prog_cc_g=yes 42227d62b00eSchristosfi 42237d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42247d62b00eSchristosfi 42257d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42267d62b00eSchristosfi 42277d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42287d62b00eSchristos ac_c_werror_flag=$ac_save_c_werror_flag 42297d62b00eSchristosfi 42307d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 42317d62b00eSchristos$as_echo "$ac_cv_prog_cc_g" >&6; } 42327d62b00eSchristosif test "$ac_test_CFLAGS" = set; then 42337d62b00eSchristos CFLAGS=$ac_save_CFLAGS 42347d62b00eSchristoselif test $ac_cv_prog_cc_g = yes; then 42357d62b00eSchristos if test "$GCC" = yes; then 42367d62b00eSchristos CFLAGS="-g -O2" 42377d62b00eSchristos else 42387d62b00eSchristos CFLAGS="-g" 42397d62b00eSchristos fi 42407d62b00eSchristoselse 42417d62b00eSchristos if test "$GCC" = yes; then 42427d62b00eSchristos CFLAGS="-O2" 42437d62b00eSchristos else 42447d62b00eSchristos CFLAGS= 42457d62b00eSchristos fi 42467d62b00eSchristosfi 42477d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 42487d62b00eSchristos$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 42497d62b00eSchristosif ${ac_cv_prog_cc_c89+:} false; then : 42507d62b00eSchristos $as_echo_n "(cached) " >&6 42517d62b00eSchristoselse 42527d62b00eSchristos ac_cv_prog_cc_c89=no 42537d62b00eSchristosac_save_CC=$CC 42547d62b00eSchristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext 42557d62b00eSchristos/* end confdefs.h. */ 42567d62b00eSchristos#include <stdarg.h> 42577d62b00eSchristos#include <stdio.h> 42587d62b00eSchristosstruct stat; 42597d62b00eSchristos/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 42607d62b00eSchristosstruct buf { int x; }; 42617d62b00eSchristosFILE * (*rcsopen) (struct buf *, struct stat *, int); 42627d62b00eSchristosstatic char *e (p, i) 42637d62b00eSchristos char **p; 42647d62b00eSchristos int i; 42657d62b00eSchristos{ 42667d62b00eSchristos return p[i]; 42677d62b00eSchristos} 42687d62b00eSchristosstatic char *f (char * (*g) (char **, int), char **p, ...) 42697d62b00eSchristos{ 42707d62b00eSchristos char *s; 42717d62b00eSchristos va_list v; 42727d62b00eSchristos va_start (v,p); 42737d62b00eSchristos s = g (p, va_arg (v,int)); 42747d62b00eSchristos va_end (v); 42757d62b00eSchristos return s; 42767d62b00eSchristos} 42777d62b00eSchristos 42787d62b00eSchristos/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 42797d62b00eSchristos function prototypes and stuff, but not '\xHH' hex character constants. 42807d62b00eSchristos These don't provoke an error unfortunately, instead are silently treated 42817d62b00eSchristos as 'x'. The following induces an error, until -std is added to get 42827d62b00eSchristos proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 42837d62b00eSchristos array size at least. It's necessary to write '\x00'==0 to get something 42847d62b00eSchristos that's true only with -std. */ 42857d62b00eSchristosint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 42867d62b00eSchristos 42877d62b00eSchristos/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 42887d62b00eSchristos inside strings and character constants. */ 42897d62b00eSchristos#define FOO(x) 'x' 42907d62b00eSchristosint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 42917d62b00eSchristos 42927d62b00eSchristosint test (int i, double x); 42937d62b00eSchristosstruct s1 {int (*f) (int a);}; 42947d62b00eSchristosstruct s2 {int (*f) (double a);}; 42957d62b00eSchristosint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 42967d62b00eSchristosint argc; 42977d62b00eSchristoschar **argv; 42987d62b00eSchristosint 42997d62b00eSchristosmain () 43007d62b00eSchristos{ 43017d62b00eSchristosreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 43027d62b00eSchristos ; 43037d62b00eSchristos return 0; 43047d62b00eSchristos} 43057d62b00eSchristos_ACEOF 43067d62b00eSchristosfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 43077d62b00eSchristos -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 43087d62b00eSchristosdo 43097d62b00eSchristos CC="$ac_save_CC $ac_arg" 43107d62b00eSchristos if ac_fn_c_try_compile "$LINENO"; then : 43117d62b00eSchristos ac_cv_prog_cc_c89=$ac_arg 43127d62b00eSchristosfi 43137d62b00eSchristosrm -f core conftest.err conftest.$ac_objext 43147d62b00eSchristos test "x$ac_cv_prog_cc_c89" != "xno" && break 43157d62b00eSchristosdone 43167d62b00eSchristosrm -f conftest.$ac_ext 43177d62b00eSchristosCC=$ac_save_CC 43187d62b00eSchristos 43197d62b00eSchristosfi 43207d62b00eSchristos# AC_CACHE_VAL 43217d62b00eSchristoscase "x$ac_cv_prog_cc_c89" in 43227d62b00eSchristos x) 43237d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 43247d62b00eSchristos$as_echo "none needed" >&6; } ;; 43257d62b00eSchristos xno) 43267d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 43277d62b00eSchristos$as_echo "unsupported" >&6; } ;; 43287d62b00eSchristos *) 43297d62b00eSchristos CC="$CC $ac_cv_prog_cc_c89" 43307d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 43317d62b00eSchristos$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 43327d62b00eSchristosesac 43337d62b00eSchristosif test "x$ac_cv_prog_cc_c89" != xno; then : 43347d62b00eSchristos 43357d62b00eSchristosfi 43367d62b00eSchristos 43377d62b00eSchristosac_ext=c 43387d62b00eSchristosac_cpp='$CPP $CPPFLAGS' 43397d62b00eSchristosac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43407d62b00eSchristosac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43417d62b00eSchristosac_compiler_gnu=$ac_cv_c_compiler_gnu 43427d62b00eSchristos 43437d62b00eSchristosac_ext=c 43447d62b00eSchristosac_cpp='$CPP $CPPFLAGS' 43457d62b00eSchristosac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43467d62b00eSchristosac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43477d62b00eSchristosac_compiler_gnu=$ac_cv_c_compiler_gnu 43487d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 43497d62b00eSchristos$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 43507d62b00eSchristosif ${am_cv_prog_cc_c_o+:} false; then : 43517d62b00eSchristos $as_echo_n "(cached) " >&6 43527d62b00eSchristoselse 43537d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43547d62b00eSchristos/* end confdefs.h. */ 43557d62b00eSchristos 43567d62b00eSchristosint 43577d62b00eSchristosmain () 43587d62b00eSchristos{ 43597d62b00eSchristos 43607d62b00eSchristos ; 43617d62b00eSchristos return 0; 43627d62b00eSchristos} 43637d62b00eSchristos_ACEOF 43647d62b00eSchristos # Make sure it works both with $CC and with simple cc. 43657d62b00eSchristos # Following AC_PROG_CC_C_O, we do the test twice because some 43667d62b00eSchristos # compilers refuse to overwrite an existing .o file with -o, 43677d62b00eSchristos # though they will create one. 43687d62b00eSchristos am_cv_prog_cc_c_o=yes 43697d62b00eSchristos for am_i in 1 2; do 43707d62b00eSchristos if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 43717d62b00eSchristos ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 43727d62b00eSchristos ac_status=$? 43737d62b00eSchristos echo "$as_me:$LINENO: \$? = $ac_status" >&5 43747d62b00eSchristos (exit $ac_status); } \ 43757d62b00eSchristos && test -f conftest2.$ac_objext; then 43767d62b00eSchristos : OK 43777d62b00eSchristos else 43787d62b00eSchristos am_cv_prog_cc_c_o=no 43797d62b00eSchristos break 43807d62b00eSchristos fi 43817d62b00eSchristos done 43827d62b00eSchristos rm -f core conftest* 43837d62b00eSchristos unset am_i 43847d62b00eSchristosfi 43857d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 43867d62b00eSchristos$as_echo "$am_cv_prog_cc_c_o" >&6; } 43877d62b00eSchristosif test "$am_cv_prog_cc_c_o" != yes; then 43887d62b00eSchristos # Losing compiler, so override with the script. 43897d62b00eSchristos # FIXME: It is wrong to rewrite CC. 43907d62b00eSchristos # But if we don't then we get into trouble of one sort or another. 43917d62b00eSchristos # A longer-term fix would be to have automake use am__CC in this case, 43927d62b00eSchristos # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 43937d62b00eSchristos CC="$am_aux_dir/compile $CC" 43947d62b00eSchristosfi 43957d62b00eSchristosac_ext=c 43967d62b00eSchristosac_cpp='$CPP $CPPFLAGS' 43977d62b00eSchristosac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43987d62b00eSchristosac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43997d62b00eSchristosac_compiler_gnu=$ac_cv_c_compiler_gnu 44007d62b00eSchristos 44017d62b00eSchristosDEPDIR="${am__leading_dot}deps" 44027d62b00eSchristos 44037d62b00eSchristosac_config_commands="$ac_config_commands depfiles" 44047d62b00eSchristos 44057d62b00eSchristos 44067d62b00eSchristosam_make=${MAKE-make} 44077d62b00eSchristoscat > confinc << 'END' 44087d62b00eSchristosam__doit: 44097d62b00eSchristos @echo this is the am__doit target 44107d62b00eSchristos.PHONY: am__doit 44117d62b00eSchristosEND 44127d62b00eSchristos# If we don't find an include directive, just comment out the code. 44137d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 44147d62b00eSchristos$as_echo_n "checking for style of include used by $am_make... " >&6; } 44157d62b00eSchristosam__include="#" 44167d62b00eSchristosam__quote= 44177d62b00eSchristos_am_result=none 44187d62b00eSchristos# First try GNU make style include. 44197d62b00eSchristosecho "include confinc" > confmf 44207d62b00eSchristos# Ignore all kinds of additional output from 'make'. 44217d62b00eSchristoscase `$am_make -s -f confmf 2> /dev/null` in #( 44227d62b00eSchristos*the\ am__doit\ target*) 44237d62b00eSchristos am__include=include 44247d62b00eSchristos am__quote= 44257d62b00eSchristos _am_result=GNU 44267d62b00eSchristos ;; 44277d62b00eSchristosesac 44287d62b00eSchristos# Now try BSD make style include. 44297d62b00eSchristosif test "$am__include" = "#"; then 44307d62b00eSchristos echo '.include "confinc"' > confmf 44317d62b00eSchristos case `$am_make -s -f confmf 2> /dev/null` in #( 44327d62b00eSchristos *the\ am__doit\ target*) 44337d62b00eSchristos am__include=.include 44347d62b00eSchristos am__quote="\"" 44357d62b00eSchristos _am_result=BSD 44367d62b00eSchristos ;; 44377d62b00eSchristos esac 44387d62b00eSchristosfi 44397d62b00eSchristos 44407d62b00eSchristos 44417d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 44427d62b00eSchristos$as_echo "$_am_result" >&6; } 44437d62b00eSchristosrm -f confinc confmf 44447d62b00eSchristos 44457d62b00eSchristos# Check whether --enable-dependency-tracking was given. 44467d62b00eSchristosif test "${enable_dependency_tracking+set}" = set; then : 44477d62b00eSchristos enableval=$enable_dependency_tracking; 44487d62b00eSchristosfi 44497d62b00eSchristos 44507d62b00eSchristosif test "x$enable_dependency_tracking" != xno; then 44517d62b00eSchristos am_depcomp="$ac_aux_dir/depcomp" 44527d62b00eSchristos AMDEPBACKSLASH='\' 44537d62b00eSchristos am__nodep='_no' 44547d62b00eSchristosfi 44557d62b00eSchristos if test "x$enable_dependency_tracking" != xno; then 44567d62b00eSchristos AMDEP_TRUE= 44577d62b00eSchristos AMDEP_FALSE='#' 44587d62b00eSchristoselse 44597d62b00eSchristos AMDEP_TRUE='#' 44607d62b00eSchristos AMDEP_FALSE= 44617d62b00eSchristosfi 44627d62b00eSchristos 44637d62b00eSchristos 44647d62b00eSchristos 44657d62b00eSchristosdepcc="$CC" am_compiler_list= 44667d62b00eSchristos 44677d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 44687d62b00eSchristos$as_echo_n "checking dependency style of $depcc... " >&6; } 44697d62b00eSchristosif ${am_cv_CC_dependencies_compiler_type+:} false; then : 44707d62b00eSchristos $as_echo_n "(cached) " >&6 44717d62b00eSchristoselse 44727d62b00eSchristos if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 44737d62b00eSchristos # We make a subdir and do the tests there. Otherwise we can end up 44747d62b00eSchristos # making bogus files that we don't know about and never remove. For 44757d62b00eSchristos # instance it was reported that on HP-UX the gcc test will end up 44767d62b00eSchristos # making a dummy file named 'D' -- because '-MD' means "put the output 44777d62b00eSchristos # in D". 44787d62b00eSchristos rm -rf conftest.dir 44797d62b00eSchristos mkdir conftest.dir 44807d62b00eSchristos # Copy depcomp to subdir because otherwise we won't find it if we're 44817d62b00eSchristos # using a relative directory. 44827d62b00eSchristos cp "$am_depcomp" conftest.dir 44837d62b00eSchristos cd conftest.dir 44847d62b00eSchristos # We will build objects and dependencies in a subdirectory because 44857d62b00eSchristos # it helps to detect inapplicable dependency modes. For instance 44867d62b00eSchristos # both Tru64's cc and ICC support -MD to output dependencies as a 44877d62b00eSchristos # side effect of compilation, but ICC will put the dependencies in 44887d62b00eSchristos # the current directory while Tru64 will put them in the object 44897d62b00eSchristos # directory. 44907d62b00eSchristos mkdir sub 44917d62b00eSchristos 44927d62b00eSchristos am_cv_CC_dependencies_compiler_type=none 44937d62b00eSchristos if test "$am_compiler_list" = ""; then 44947d62b00eSchristos am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 44957d62b00eSchristos fi 44967d62b00eSchristos am__universal=false 44977d62b00eSchristos case " $depcc " in #( 44987d62b00eSchristos *\ -arch\ *\ -arch\ *) am__universal=true ;; 44997d62b00eSchristos esac 45007d62b00eSchristos 45017d62b00eSchristos for depmode in $am_compiler_list; do 45027d62b00eSchristos # Setup a source with many dependencies, because some compilers 45037d62b00eSchristos # like to wrap large dependency lists on column 80 (with \), and 45047d62b00eSchristos # we should not choose a depcomp mode which is confused by this. 45057d62b00eSchristos # 45067d62b00eSchristos # We need to recreate these files for each test, as the compiler may 45077d62b00eSchristos # overwrite some of them when testing with obscure command lines. 45087d62b00eSchristos # This happens at least with the AIX C compiler. 45097d62b00eSchristos : > sub/conftest.c 45107d62b00eSchristos for i in 1 2 3 4 5 6; do 45117d62b00eSchristos echo '#include "conftst'$i'.h"' >> sub/conftest.c 45127d62b00eSchristos # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 45137d62b00eSchristos # Solaris 10 /bin/sh. 45147d62b00eSchristos echo '/* dummy */' > sub/conftst$i.h 45157d62b00eSchristos done 45167d62b00eSchristos echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 45177d62b00eSchristos 45187d62b00eSchristos # We check with '-c' and '-o' for the sake of the "dashmstdout" 45197d62b00eSchristos # mode. It turns out that the SunPro C++ compiler does not properly 45207d62b00eSchristos # handle '-M -o', and we need to detect this. Also, some Intel 45217d62b00eSchristos # versions had trouble with output in subdirs. 45227d62b00eSchristos am__obj=sub/conftest.${OBJEXT-o} 45237d62b00eSchristos am__minus_obj="-o $am__obj" 45247d62b00eSchristos case $depmode in 45257d62b00eSchristos gcc) 45267d62b00eSchristos # This depmode causes a compiler race in universal mode. 45277d62b00eSchristos test "$am__universal" = false || continue 45287d62b00eSchristos ;; 45297d62b00eSchristos nosideeffect) 45307d62b00eSchristos # After this tag, mechanisms are not by side-effect, so they'll 45317d62b00eSchristos # only be used when explicitly requested. 45327d62b00eSchristos if test "x$enable_dependency_tracking" = xyes; then 45337d62b00eSchristos continue 45347d62b00eSchristos else 45357d62b00eSchristos break 45367d62b00eSchristos fi 45377d62b00eSchristos ;; 45387d62b00eSchristos msvc7 | msvc7msys | msvisualcpp | msvcmsys) 45397d62b00eSchristos # This compiler won't grok '-c -o', but also, the minuso test has 45407d62b00eSchristos # not run yet. These depmodes are late enough in the game, and 45417d62b00eSchristos # so weak that their functioning should not be impacted. 45427d62b00eSchristos am__obj=conftest.${OBJEXT-o} 45437d62b00eSchristos am__minus_obj= 45447d62b00eSchristos ;; 45457d62b00eSchristos none) break ;; 45467d62b00eSchristos esac 45477d62b00eSchristos if depmode=$depmode \ 45487d62b00eSchristos source=sub/conftest.c object=$am__obj \ 45497d62b00eSchristos depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 45507d62b00eSchristos $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 45517d62b00eSchristos >/dev/null 2>conftest.err && 45527d62b00eSchristos grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 45537d62b00eSchristos grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 45547d62b00eSchristos grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 45557d62b00eSchristos ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 45567d62b00eSchristos # icc doesn't choke on unknown options, it will just issue warnings 45577d62b00eSchristos # or remarks (even with -Werror). So we grep stderr for any message 45587d62b00eSchristos # that says an option was ignored or not supported. 45597d62b00eSchristos # When given -MP, icc 7.0 and 7.1 complain thusly: 45607d62b00eSchristos # icc: Command line warning: ignoring option '-M'; no argument required 45617d62b00eSchristos # The diagnosis changed in icc 8.0: 45627d62b00eSchristos # icc: Command line remark: option '-MP' not supported 45637d62b00eSchristos if (grep 'ignoring option' conftest.err || 45647d62b00eSchristos grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 45657d62b00eSchristos am_cv_CC_dependencies_compiler_type=$depmode 45667d62b00eSchristos break 45677d62b00eSchristos fi 45687d62b00eSchristos fi 45697d62b00eSchristos done 45707d62b00eSchristos 45717d62b00eSchristos cd .. 45727d62b00eSchristos rm -rf conftest.dir 45737d62b00eSchristoselse 45747d62b00eSchristos am_cv_CC_dependencies_compiler_type=none 45757d62b00eSchristosfi 45767d62b00eSchristos 45777d62b00eSchristosfi 45787d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 45797d62b00eSchristos$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 45807d62b00eSchristosCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 45817d62b00eSchristos 45827d62b00eSchristos if 45837d62b00eSchristos test "x$enable_dependency_tracking" != xno \ 45847d62b00eSchristos && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 45857d62b00eSchristos am__fastdepCC_TRUE= 45867d62b00eSchristos am__fastdepCC_FALSE='#' 45877d62b00eSchristoselse 45887d62b00eSchristos am__fastdepCC_TRUE='#' 45897d62b00eSchristos am__fastdepCC_FALSE= 45907d62b00eSchristosfi 45917d62b00eSchristos 45927d62b00eSchristos 45937d62b00eSchristosac_ext=cpp 45947d62b00eSchristosac_cpp='$CXXCPP $CPPFLAGS' 45957d62b00eSchristosac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 45967d62b00eSchristosac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 45977d62b00eSchristosac_compiler_gnu=$ac_cv_cxx_compiler_gnu 45987d62b00eSchristosif test -z "$CXX"; then 45997d62b00eSchristos if test -n "$CCC"; then 46007d62b00eSchristos CXX=$CCC 46017d62b00eSchristos else 46027d62b00eSchristos if test -n "$ac_tool_prefix"; then 46037d62b00eSchristos for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 46047d62b00eSchristos do 46057d62b00eSchristos # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 46067d62b00eSchristosset dummy $ac_tool_prefix$ac_prog; ac_word=$2 46077d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46087d62b00eSchristos$as_echo_n "checking for $ac_word... " >&6; } 46097d62b00eSchristosif ${ac_cv_prog_CXX+:} false; then : 46107d62b00eSchristos $as_echo_n "(cached) " >&6 46117d62b00eSchristoselse 46127d62b00eSchristos if test -n "$CXX"; then 46137d62b00eSchristos ac_cv_prog_CXX="$CXX" # Let the user override the test. 46147d62b00eSchristoselse 46157d62b00eSchristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46167d62b00eSchristosfor as_dir in $PATH 46177d62b00eSchristosdo 46187d62b00eSchristos IFS=$as_save_IFS 46197d62b00eSchristos test -z "$as_dir" && as_dir=. 46207d62b00eSchristos for ac_exec_ext in '' $ac_executable_extensions; do 46217d62b00eSchristos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46227d62b00eSchristos ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 46237d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46247d62b00eSchristos break 2 46257d62b00eSchristos fi 46267d62b00eSchristosdone 46277d62b00eSchristos done 46287d62b00eSchristosIFS=$as_save_IFS 46297d62b00eSchristos 46307d62b00eSchristosfi 46317d62b00eSchristosfi 46327d62b00eSchristosCXX=$ac_cv_prog_CXX 46337d62b00eSchristosif test -n "$CXX"; then 46347d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 46357d62b00eSchristos$as_echo "$CXX" >&6; } 46367d62b00eSchristoselse 46377d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46387d62b00eSchristos$as_echo "no" >&6; } 46397d62b00eSchristosfi 46407d62b00eSchristos 46417d62b00eSchristos 46427d62b00eSchristos test -n "$CXX" && break 46437d62b00eSchristos done 46447d62b00eSchristosfi 46457d62b00eSchristosif test -z "$CXX"; then 46467d62b00eSchristos ac_ct_CXX=$CXX 46477d62b00eSchristos for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 46487d62b00eSchristosdo 46497d62b00eSchristos # Extract the first word of "$ac_prog", so it can be a program name with args. 46507d62b00eSchristosset dummy $ac_prog; ac_word=$2 46517d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46527d62b00eSchristos$as_echo_n "checking for $ac_word... " >&6; } 46537d62b00eSchristosif ${ac_cv_prog_ac_ct_CXX+:} false; then : 46547d62b00eSchristos $as_echo_n "(cached) " >&6 46557d62b00eSchristoselse 46567d62b00eSchristos if test -n "$ac_ct_CXX"; then 46577d62b00eSchristos ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 46587d62b00eSchristoselse 46597d62b00eSchristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46607d62b00eSchristosfor as_dir in $PATH 46617d62b00eSchristosdo 46627d62b00eSchristos IFS=$as_save_IFS 46637d62b00eSchristos test -z "$as_dir" && as_dir=. 46647d62b00eSchristos for ac_exec_ext in '' $ac_executable_extensions; do 46657d62b00eSchristos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46667d62b00eSchristos ac_cv_prog_ac_ct_CXX="$ac_prog" 46677d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46687d62b00eSchristos break 2 46697d62b00eSchristos fi 46707d62b00eSchristosdone 46717d62b00eSchristos done 46727d62b00eSchristosIFS=$as_save_IFS 46737d62b00eSchristos 46747d62b00eSchristosfi 46757d62b00eSchristosfi 46767d62b00eSchristosac_ct_CXX=$ac_cv_prog_ac_ct_CXX 46777d62b00eSchristosif test -n "$ac_ct_CXX"; then 46787d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 46797d62b00eSchristos$as_echo "$ac_ct_CXX" >&6; } 46807d62b00eSchristoselse 46817d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46827d62b00eSchristos$as_echo "no" >&6; } 46837d62b00eSchristosfi 46847d62b00eSchristos 46857d62b00eSchristos 46867d62b00eSchristos test -n "$ac_ct_CXX" && break 46877d62b00eSchristosdone 46887d62b00eSchristos 46897d62b00eSchristos if test "x$ac_ct_CXX" = x; then 46907d62b00eSchristos CXX="g++" 46917d62b00eSchristos else 46927d62b00eSchristos case $cross_compiling:$ac_tool_warned in 46937d62b00eSchristosyes:) 46947d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 46957d62b00eSchristos$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 46967d62b00eSchristosac_tool_warned=yes ;; 46977d62b00eSchristosesac 46987d62b00eSchristos CXX=$ac_ct_CXX 46997d62b00eSchristos fi 47007d62b00eSchristosfi 47017d62b00eSchristos 47027d62b00eSchristos fi 47037d62b00eSchristosfi 47047d62b00eSchristos# Provide some information about the compiler. 47057d62b00eSchristos$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 47067d62b00eSchristosset X $ac_compile 47077d62b00eSchristosac_compiler=$2 47087d62b00eSchristosfor ac_option in --version -v -V -qversion; do 47097d62b00eSchristos { { ac_try="$ac_compiler $ac_option >&5" 47107d62b00eSchristoscase "(($ac_try" in 47117d62b00eSchristos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 47127d62b00eSchristos *) ac_try_echo=$ac_try;; 47137d62b00eSchristosesac 47147d62b00eSchristoseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 47157d62b00eSchristos$as_echo "$ac_try_echo"; } >&5 47167d62b00eSchristos (eval "$ac_compiler $ac_option >&5") 2>conftest.err 47177d62b00eSchristos ac_status=$? 47187d62b00eSchristos if test -s conftest.err; then 47197d62b00eSchristos sed '10a\ 47207d62b00eSchristos... rest of stderr output deleted ... 47217d62b00eSchristos 10q' conftest.err >conftest.er1 47227d62b00eSchristos cat conftest.er1 >&5 47237d62b00eSchristos fi 47247d62b00eSchristos rm -f conftest.er1 conftest.err 47257d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47267d62b00eSchristos test $ac_status = 0; } 47277d62b00eSchristosdone 47287d62b00eSchristos 47297d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 47307d62b00eSchristos$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 47317d62b00eSchristosif ${ac_cv_cxx_compiler_gnu+:} false; then : 47327d62b00eSchristos $as_echo_n "(cached) " >&6 47337d62b00eSchristoselse 47347d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47357d62b00eSchristos/* end confdefs.h. */ 47367d62b00eSchristos 47377d62b00eSchristosint 47387d62b00eSchristosmain () 47397d62b00eSchristos{ 47407d62b00eSchristos#ifndef __GNUC__ 47417d62b00eSchristos choke me 47427d62b00eSchristos#endif 47437d62b00eSchristos 47447d62b00eSchristos ; 47457d62b00eSchristos return 0; 47467d62b00eSchristos} 47477d62b00eSchristos_ACEOF 47487d62b00eSchristosif ac_fn_cxx_try_compile "$LINENO"; then : 47497d62b00eSchristos ac_compiler_gnu=yes 47507d62b00eSchristoselse 47517d62b00eSchristos ac_compiler_gnu=no 47527d62b00eSchristosfi 47537d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47547d62b00eSchristosac_cv_cxx_compiler_gnu=$ac_compiler_gnu 47557d62b00eSchristos 47567d62b00eSchristosfi 47577d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 47587d62b00eSchristos$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 47597d62b00eSchristosif test $ac_compiler_gnu = yes; then 47607d62b00eSchristos GXX=yes 47617d62b00eSchristoselse 47627d62b00eSchristos GXX= 47637d62b00eSchristosfi 47647d62b00eSchristosac_test_CXXFLAGS=${CXXFLAGS+set} 47657d62b00eSchristosac_save_CXXFLAGS=$CXXFLAGS 47667d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 47677d62b00eSchristos$as_echo_n "checking whether $CXX accepts -g... " >&6; } 47687d62b00eSchristosif ${ac_cv_prog_cxx_g+:} false; then : 47697d62b00eSchristos $as_echo_n "(cached) " >&6 47707d62b00eSchristoselse 47717d62b00eSchristos ac_save_cxx_werror_flag=$ac_cxx_werror_flag 47727d62b00eSchristos ac_cxx_werror_flag=yes 47737d62b00eSchristos ac_cv_prog_cxx_g=no 47747d62b00eSchristos CXXFLAGS="-g" 47757d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47767d62b00eSchristos/* end confdefs.h. */ 47777d62b00eSchristos 47787d62b00eSchristosint 47797d62b00eSchristosmain () 47807d62b00eSchristos{ 47817d62b00eSchristos 47827d62b00eSchristos ; 47837d62b00eSchristos return 0; 47847d62b00eSchristos} 47857d62b00eSchristos_ACEOF 47867d62b00eSchristosif ac_fn_cxx_try_compile "$LINENO"; then : 47877d62b00eSchristos ac_cv_prog_cxx_g=yes 47887d62b00eSchristoselse 47897d62b00eSchristos CXXFLAGS="" 47907d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47917d62b00eSchristos/* end confdefs.h. */ 47927d62b00eSchristos 47937d62b00eSchristosint 47947d62b00eSchristosmain () 47957d62b00eSchristos{ 47967d62b00eSchristos 47977d62b00eSchristos ; 47987d62b00eSchristos return 0; 47997d62b00eSchristos} 48007d62b00eSchristos_ACEOF 48017d62b00eSchristosif ac_fn_cxx_try_compile "$LINENO"; then : 48027d62b00eSchristos 48037d62b00eSchristoselse 48047d62b00eSchristos ac_cxx_werror_flag=$ac_save_cxx_werror_flag 48057d62b00eSchristos CXXFLAGS="-g" 48067d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48077d62b00eSchristos/* end confdefs.h. */ 48087d62b00eSchristos 48097d62b00eSchristosint 48107d62b00eSchristosmain () 48117d62b00eSchristos{ 48127d62b00eSchristos 48137d62b00eSchristos ; 48147d62b00eSchristos return 0; 48157d62b00eSchristos} 48167d62b00eSchristos_ACEOF 48177d62b00eSchristosif ac_fn_cxx_try_compile "$LINENO"; then : 48187d62b00eSchristos ac_cv_prog_cxx_g=yes 48197d62b00eSchristosfi 48207d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48217d62b00eSchristosfi 48227d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48237d62b00eSchristosfi 48247d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48257d62b00eSchristos ac_cxx_werror_flag=$ac_save_cxx_werror_flag 48267d62b00eSchristosfi 48277d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 48287d62b00eSchristos$as_echo "$ac_cv_prog_cxx_g" >&6; } 48297d62b00eSchristosif test "$ac_test_CXXFLAGS" = set; then 48307d62b00eSchristos CXXFLAGS=$ac_save_CXXFLAGS 48317d62b00eSchristoselif test $ac_cv_prog_cxx_g = yes; then 48327d62b00eSchristos if test "$GXX" = yes; then 48337d62b00eSchristos CXXFLAGS="-g -O2" 48347d62b00eSchristos else 48357d62b00eSchristos CXXFLAGS="-g" 48367d62b00eSchristos fi 48377d62b00eSchristoselse 48387d62b00eSchristos if test "$GXX" = yes; then 48397d62b00eSchristos CXXFLAGS="-O2" 48407d62b00eSchristos else 48417d62b00eSchristos CXXFLAGS= 48427d62b00eSchristos fi 48437d62b00eSchristosfi 48447d62b00eSchristosac_ext=c 48457d62b00eSchristosac_cpp='$CPP $CPPFLAGS' 48467d62b00eSchristosac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48477d62b00eSchristosac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48487d62b00eSchristosac_compiler_gnu=$ac_cv_c_compiler_gnu 48497d62b00eSchristos 48507d62b00eSchristosdepcc="$CXX" am_compiler_list= 48517d62b00eSchristos 48527d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 48537d62b00eSchristos$as_echo_n "checking dependency style of $depcc... " >&6; } 48547d62b00eSchristosif ${am_cv_CXX_dependencies_compiler_type+:} false; then : 48557d62b00eSchristos $as_echo_n "(cached) " >&6 48567d62b00eSchristoselse 48577d62b00eSchristos if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 48587d62b00eSchristos # We make a subdir and do the tests there. Otherwise we can end up 48597d62b00eSchristos # making bogus files that we don't know about and never remove. For 48607d62b00eSchristos # instance it was reported that on HP-UX the gcc test will end up 48617d62b00eSchristos # making a dummy file named 'D' -- because '-MD' means "put the output 48627d62b00eSchristos # in D". 48637d62b00eSchristos rm -rf conftest.dir 48647d62b00eSchristos mkdir conftest.dir 48657d62b00eSchristos # Copy depcomp to subdir because otherwise we won't find it if we're 48667d62b00eSchristos # using a relative directory. 48677d62b00eSchristos cp "$am_depcomp" conftest.dir 48687d62b00eSchristos cd conftest.dir 48697d62b00eSchristos # We will build objects and dependencies in a subdirectory because 48707d62b00eSchristos # it helps to detect inapplicable dependency modes. For instance 48717d62b00eSchristos # both Tru64's cc and ICC support -MD to output dependencies as a 48727d62b00eSchristos # side effect of compilation, but ICC will put the dependencies in 48737d62b00eSchristos # the current directory while Tru64 will put them in the object 48747d62b00eSchristos # directory. 48757d62b00eSchristos mkdir sub 48767d62b00eSchristos 48777d62b00eSchristos am_cv_CXX_dependencies_compiler_type=none 48787d62b00eSchristos if test "$am_compiler_list" = ""; then 48797d62b00eSchristos am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 48807d62b00eSchristos fi 48817d62b00eSchristos am__universal=false 48827d62b00eSchristos case " $depcc " in #( 48837d62b00eSchristos *\ -arch\ *\ -arch\ *) am__universal=true ;; 48847d62b00eSchristos esac 48857d62b00eSchristos 48867d62b00eSchristos for depmode in $am_compiler_list; do 48877d62b00eSchristos # Setup a source with many dependencies, because some compilers 48887d62b00eSchristos # like to wrap large dependency lists on column 80 (with \), and 48897d62b00eSchristos # we should not choose a depcomp mode which is confused by this. 48907d62b00eSchristos # 48917d62b00eSchristos # We need to recreate these files for each test, as the compiler may 48927d62b00eSchristos # overwrite some of them when testing with obscure command lines. 48937d62b00eSchristos # This happens at least with the AIX C compiler. 48947d62b00eSchristos : > sub/conftest.c 48957d62b00eSchristos for i in 1 2 3 4 5 6; do 48967d62b00eSchristos echo '#include "conftst'$i'.h"' >> sub/conftest.c 48977d62b00eSchristos # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 48987d62b00eSchristos # Solaris 10 /bin/sh. 48997d62b00eSchristos echo '/* dummy */' > sub/conftst$i.h 49007d62b00eSchristos done 49017d62b00eSchristos echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 49027d62b00eSchristos 49037d62b00eSchristos # We check with '-c' and '-o' for the sake of the "dashmstdout" 49047d62b00eSchristos # mode. It turns out that the SunPro C++ compiler does not properly 49057d62b00eSchristos # handle '-M -o', and we need to detect this. Also, some Intel 49067d62b00eSchristos # versions had trouble with output in subdirs. 49077d62b00eSchristos am__obj=sub/conftest.${OBJEXT-o} 49087d62b00eSchristos am__minus_obj="-o $am__obj" 49097d62b00eSchristos case $depmode in 49107d62b00eSchristos gcc) 49117d62b00eSchristos # This depmode causes a compiler race in universal mode. 49127d62b00eSchristos test "$am__universal" = false || continue 49137d62b00eSchristos ;; 49147d62b00eSchristos nosideeffect) 49157d62b00eSchristos # After this tag, mechanisms are not by side-effect, so they'll 49167d62b00eSchristos # only be used when explicitly requested. 49177d62b00eSchristos if test "x$enable_dependency_tracking" = xyes; then 49187d62b00eSchristos continue 49197d62b00eSchristos else 49207d62b00eSchristos break 49217d62b00eSchristos fi 49227d62b00eSchristos ;; 49237d62b00eSchristos msvc7 | msvc7msys | msvisualcpp | msvcmsys) 49247d62b00eSchristos # This compiler won't grok '-c -o', but also, the minuso test has 49257d62b00eSchristos # not run yet. These depmodes are late enough in the game, and 49267d62b00eSchristos # so weak that their functioning should not be impacted. 49277d62b00eSchristos am__obj=conftest.${OBJEXT-o} 49287d62b00eSchristos am__minus_obj= 49297d62b00eSchristos ;; 49307d62b00eSchristos none) break ;; 49317d62b00eSchristos esac 49327d62b00eSchristos if depmode=$depmode \ 49337d62b00eSchristos source=sub/conftest.c object=$am__obj \ 49347d62b00eSchristos depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 49357d62b00eSchristos $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 49367d62b00eSchristos >/dev/null 2>conftest.err && 49377d62b00eSchristos grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 49387d62b00eSchristos grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 49397d62b00eSchristos grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 49407d62b00eSchristos ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 49417d62b00eSchristos # icc doesn't choke on unknown options, it will just issue warnings 49427d62b00eSchristos # or remarks (even with -Werror). So we grep stderr for any message 49437d62b00eSchristos # that says an option was ignored or not supported. 49447d62b00eSchristos # When given -MP, icc 7.0 and 7.1 complain thusly: 49457d62b00eSchristos # icc: Command line warning: ignoring option '-M'; no argument required 49467d62b00eSchristos # The diagnosis changed in icc 8.0: 49477d62b00eSchristos # icc: Command line remark: option '-MP' not supported 49487d62b00eSchristos if (grep 'ignoring option' conftest.err || 49497d62b00eSchristos grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 49507d62b00eSchristos am_cv_CXX_dependencies_compiler_type=$depmode 49517d62b00eSchristos break 49527d62b00eSchristos fi 49537d62b00eSchristos fi 49547d62b00eSchristos done 49557d62b00eSchristos 49567d62b00eSchristos cd .. 49577d62b00eSchristos rm -rf conftest.dir 49587d62b00eSchristoselse 49597d62b00eSchristos am_cv_CXX_dependencies_compiler_type=none 49607d62b00eSchristosfi 49617d62b00eSchristos 49627d62b00eSchristosfi 49637d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 49647d62b00eSchristos$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 49657d62b00eSchristosCXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 49667d62b00eSchristos 49677d62b00eSchristos if 49687d62b00eSchristos test "x$enable_dependency_tracking" != xno \ 49697d62b00eSchristos && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 49707d62b00eSchristos am__fastdepCXX_TRUE= 49717d62b00eSchristos am__fastdepCXX_FALSE='#' 49727d62b00eSchristoselse 49737d62b00eSchristos am__fastdepCXX_TRUE='#' 49747d62b00eSchristos am__fastdepCXX_FALSE= 49757d62b00eSchristosfi 49767d62b00eSchristos 49777d62b00eSchristos 49787d62b00eSchristosif test -n "$ac_tool_prefix"; then 49797d62b00eSchristos # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 49807d62b00eSchristosset dummy ${ac_tool_prefix}ranlib; ac_word=$2 49817d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49827d62b00eSchristos$as_echo_n "checking for $ac_word... " >&6; } 49837d62b00eSchristosif ${ac_cv_prog_RANLIB+:} false; then : 49847d62b00eSchristos $as_echo_n "(cached) " >&6 49857d62b00eSchristoselse 49867d62b00eSchristos if test -n "$RANLIB"; then 49877d62b00eSchristos ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 49887d62b00eSchristoselse 49897d62b00eSchristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49907d62b00eSchristosfor as_dir in $PATH 49917d62b00eSchristosdo 49927d62b00eSchristos IFS=$as_save_IFS 49937d62b00eSchristos test -z "$as_dir" && as_dir=. 49947d62b00eSchristos for ac_exec_ext in '' $ac_executable_extensions; do 49957d62b00eSchristos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49967d62b00eSchristos ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 49977d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49987d62b00eSchristos break 2 49997d62b00eSchristos fi 50007d62b00eSchristosdone 50017d62b00eSchristos done 50027d62b00eSchristosIFS=$as_save_IFS 50037d62b00eSchristos 50047d62b00eSchristosfi 50057d62b00eSchristosfi 50067d62b00eSchristosRANLIB=$ac_cv_prog_RANLIB 50077d62b00eSchristosif test -n "$RANLIB"; then 50087d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 50097d62b00eSchristos$as_echo "$RANLIB" >&6; } 50107d62b00eSchristoselse 50117d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50127d62b00eSchristos$as_echo "no" >&6; } 50137d62b00eSchristosfi 50147d62b00eSchristos 50157d62b00eSchristos 50167d62b00eSchristosfi 50177d62b00eSchristosif test -z "$ac_cv_prog_RANLIB"; then 50187d62b00eSchristos ac_ct_RANLIB=$RANLIB 50197d62b00eSchristos # Extract the first word of "ranlib", so it can be a program name with args. 50207d62b00eSchristosset dummy ranlib; ac_word=$2 50217d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50227d62b00eSchristos$as_echo_n "checking for $ac_word... " >&6; } 50237d62b00eSchristosif ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 50247d62b00eSchristos $as_echo_n "(cached) " >&6 50257d62b00eSchristoselse 50267d62b00eSchristos if test -n "$ac_ct_RANLIB"; then 50277d62b00eSchristos ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 50287d62b00eSchristoselse 50297d62b00eSchristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50307d62b00eSchristosfor as_dir in $PATH 50317d62b00eSchristosdo 50327d62b00eSchristos IFS=$as_save_IFS 50337d62b00eSchristos test -z "$as_dir" && as_dir=. 50347d62b00eSchristos for ac_exec_ext in '' $ac_executable_extensions; do 50357d62b00eSchristos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50367d62b00eSchristos ac_cv_prog_ac_ct_RANLIB="ranlib" 50377d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50387d62b00eSchristos break 2 50397d62b00eSchristos fi 50407d62b00eSchristosdone 50417d62b00eSchristos done 50427d62b00eSchristosIFS=$as_save_IFS 50437d62b00eSchristos 50447d62b00eSchristosfi 50457d62b00eSchristosfi 50467d62b00eSchristosac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 50477d62b00eSchristosif test -n "$ac_ct_RANLIB"; then 50487d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 50497d62b00eSchristos$as_echo "$ac_ct_RANLIB" >&6; } 50507d62b00eSchristoselse 50517d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50527d62b00eSchristos$as_echo "no" >&6; } 50537d62b00eSchristosfi 50547d62b00eSchristos 50557d62b00eSchristos if test "x$ac_ct_RANLIB" = x; then 50567d62b00eSchristos RANLIB=":" 50577d62b00eSchristos else 50587d62b00eSchristos case $cross_compiling:$ac_tool_warned in 50597d62b00eSchristosyes:) 50607d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 50617d62b00eSchristos$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 50627d62b00eSchristosac_tool_warned=yes ;; 50637d62b00eSchristosesac 50647d62b00eSchristos RANLIB=$ac_ct_RANLIB 50657d62b00eSchristos fi 50667d62b00eSchristoselse 50677d62b00eSchristos RANLIB="$ac_cv_prog_RANLIB" 50687d62b00eSchristosfi 50697d62b00eSchristos 50707d62b00eSchristos 50717d62b00eSchristos 50727d62b00eSchristosac_ext=c 50737d62b00eSchristosac_cpp='$CPP $CPPFLAGS' 50747d62b00eSchristosac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50757d62b00eSchristosac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50767d62b00eSchristosac_compiler_gnu=$ac_cv_c_compiler_gnu 50777d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 50787d62b00eSchristos$as_echo_n "checking how to run the C preprocessor... " >&6; } 50797d62b00eSchristos# On Suns, sometimes $CPP names a directory. 50807d62b00eSchristosif test -n "$CPP" && test -d "$CPP"; then 50817d62b00eSchristos CPP= 50827d62b00eSchristosfi 50837d62b00eSchristosif test -z "$CPP"; then 50847d62b00eSchristos if ${ac_cv_prog_CPP+:} false; then : 50857d62b00eSchristos $as_echo_n "(cached) " >&6 50867d62b00eSchristoselse 50877d62b00eSchristos # Double quotes because CPP needs to be expanded 50887d62b00eSchristos for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 50897d62b00eSchristos do 50907d62b00eSchristos ac_preproc_ok=false 50917d62b00eSchristosfor ac_c_preproc_warn_flag in '' yes 50927d62b00eSchristosdo 50937d62b00eSchristos # Use a header file that comes with gcc, so configuring glibc 50947d62b00eSchristos # with a fresh cross-compiler works. 50957d62b00eSchristos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 50967d62b00eSchristos # <limits.h> exists even on freestanding compilers. 50977d62b00eSchristos # On the NeXT, cc -E runs the code through the compiler's parser, 50987d62b00eSchristos # not just through cpp. "Syntax error" is here to catch this case. 50997d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51007d62b00eSchristos/* end confdefs.h. */ 51017d62b00eSchristos#ifdef __STDC__ 51027d62b00eSchristos# include <limits.h> 51037d62b00eSchristos#else 51047d62b00eSchristos# include <assert.h> 51057d62b00eSchristos#endif 51067d62b00eSchristos Syntax error 51077d62b00eSchristos_ACEOF 51087d62b00eSchristosif ac_fn_c_try_cpp "$LINENO"; then : 51097d62b00eSchristos 51107d62b00eSchristoselse 51117d62b00eSchristos # Broken: fails on valid input. 51127d62b00eSchristoscontinue 51137d62b00eSchristosfi 51147d62b00eSchristosrm -f conftest.err conftest.i conftest.$ac_ext 51157d62b00eSchristos 51167d62b00eSchristos # OK, works on sane cases. Now check whether nonexistent headers 51177d62b00eSchristos # can be detected and how. 51187d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51197d62b00eSchristos/* end confdefs.h. */ 51207d62b00eSchristos#include <ac_nonexistent.h> 51217d62b00eSchristos_ACEOF 51227d62b00eSchristosif ac_fn_c_try_cpp "$LINENO"; then : 51237d62b00eSchristos # Broken: success on invalid input. 51247d62b00eSchristoscontinue 51257d62b00eSchristoselse 51267d62b00eSchristos # Passes both tests. 51277d62b00eSchristosac_preproc_ok=: 51287d62b00eSchristosbreak 51297d62b00eSchristosfi 51307d62b00eSchristosrm -f conftest.err conftest.i conftest.$ac_ext 51317d62b00eSchristos 51327d62b00eSchristosdone 51337d62b00eSchristos# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 51347d62b00eSchristosrm -f conftest.i conftest.err conftest.$ac_ext 51357d62b00eSchristosif $ac_preproc_ok; then : 51367d62b00eSchristos break 51377d62b00eSchristosfi 51387d62b00eSchristos 51397d62b00eSchristos done 51407d62b00eSchristos ac_cv_prog_CPP=$CPP 51417d62b00eSchristos 51427d62b00eSchristosfi 51437d62b00eSchristos CPP=$ac_cv_prog_CPP 51447d62b00eSchristoselse 51457d62b00eSchristos ac_cv_prog_CPP=$CPP 51467d62b00eSchristosfi 51477d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 51487d62b00eSchristos$as_echo "$CPP" >&6; } 51497d62b00eSchristosac_preproc_ok=false 51507d62b00eSchristosfor ac_c_preproc_warn_flag in '' yes 51517d62b00eSchristosdo 51527d62b00eSchristos # Use a header file that comes with gcc, so configuring glibc 51537d62b00eSchristos # with a fresh cross-compiler works. 51547d62b00eSchristos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 51557d62b00eSchristos # <limits.h> exists even on freestanding compilers. 51567d62b00eSchristos # On the NeXT, cc -E runs the code through the compiler's parser, 51577d62b00eSchristos # not just through cpp. "Syntax error" is here to catch this case. 51587d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51597d62b00eSchristos/* end confdefs.h. */ 51607d62b00eSchristos#ifdef __STDC__ 51617d62b00eSchristos# include <limits.h> 51627d62b00eSchristos#else 51637d62b00eSchristos# include <assert.h> 51647d62b00eSchristos#endif 51657d62b00eSchristos Syntax error 51667d62b00eSchristos_ACEOF 51677d62b00eSchristosif ac_fn_c_try_cpp "$LINENO"; then : 51687d62b00eSchristos 51697d62b00eSchristoselse 51707d62b00eSchristos # Broken: fails on valid input. 51717d62b00eSchristoscontinue 51727d62b00eSchristosfi 51737d62b00eSchristosrm -f conftest.err conftest.i conftest.$ac_ext 51747d62b00eSchristos 51757d62b00eSchristos # OK, works on sane cases. Now check whether nonexistent headers 51767d62b00eSchristos # can be detected and how. 51777d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51787d62b00eSchristos/* end confdefs.h. */ 51797d62b00eSchristos#include <ac_nonexistent.h> 51807d62b00eSchristos_ACEOF 51817d62b00eSchristosif ac_fn_c_try_cpp "$LINENO"; then : 51827d62b00eSchristos # Broken: success on invalid input. 51837d62b00eSchristoscontinue 51847d62b00eSchristoselse 51857d62b00eSchristos # Passes both tests. 51867d62b00eSchristosac_preproc_ok=: 51877d62b00eSchristosbreak 51887d62b00eSchristosfi 51897d62b00eSchristosrm -f conftest.err conftest.i conftest.$ac_ext 51907d62b00eSchristos 51917d62b00eSchristosdone 51927d62b00eSchristos# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 51937d62b00eSchristosrm -f conftest.i conftest.err conftest.$ac_ext 51947d62b00eSchristosif $ac_preproc_ok; then : 51957d62b00eSchristos 51967d62b00eSchristoselse 51977d62b00eSchristos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 51987d62b00eSchristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 51997d62b00eSchristosas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 52007d62b00eSchristosSee \`config.log' for more details" "$LINENO" 5; } 52017d62b00eSchristosfi 52027d62b00eSchristos 52037d62b00eSchristosac_ext=c 52047d62b00eSchristosac_cpp='$CPP $CPPFLAGS' 52057d62b00eSchristosac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52067d62b00eSchristosac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52077d62b00eSchristosac_compiler_gnu=$ac_cv_c_compiler_gnu 52087d62b00eSchristos 52097d62b00eSchristos 52107d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 52117d62b00eSchristos$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 52127d62b00eSchristosif ${ac_cv_path_GREP+:} false; then : 52137d62b00eSchristos $as_echo_n "(cached) " >&6 52147d62b00eSchristoselse 52157d62b00eSchristos if test -z "$GREP"; then 52167d62b00eSchristos ac_path_GREP_found=false 52177d62b00eSchristos # Loop through the user's path and test for each of PROGNAME-LIST 52187d62b00eSchristos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 52197d62b00eSchristosfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 52207d62b00eSchristosdo 52217d62b00eSchristos IFS=$as_save_IFS 52227d62b00eSchristos test -z "$as_dir" && as_dir=. 52237d62b00eSchristos for ac_prog in grep ggrep; do 52247d62b00eSchristos for ac_exec_ext in '' $ac_executable_extensions; do 52257d62b00eSchristos ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 52267d62b00eSchristos as_fn_executable_p "$ac_path_GREP" || continue 52277d62b00eSchristos# Check for GNU ac_path_GREP and select it if it is found. 52287d62b00eSchristos # Check for GNU $ac_path_GREP 52297d62b00eSchristoscase `"$ac_path_GREP" --version 2>&1` in 52307d62b00eSchristos*GNU*) 52317d62b00eSchristos ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 52327d62b00eSchristos*) 52337d62b00eSchristos ac_count=0 52347d62b00eSchristos $as_echo_n 0123456789 >"conftest.in" 52357d62b00eSchristos while : 52367d62b00eSchristos do 52377d62b00eSchristos cat "conftest.in" "conftest.in" >"conftest.tmp" 52387d62b00eSchristos mv "conftest.tmp" "conftest.in" 52397d62b00eSchristos cp "conftest.in" "conftest.nl" 52407d62b00eSchristos $as_echo 'GREP' >> "conftest.nl" 52417d62b00eSchristos "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 52427d62b00eSchristos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 52437d62b00eSchristos as_fn_arith $ac_count + 1 && ac_count=$as_val 52447d62b00eSchristos if test $ac_count -gt ${ac_path_GREP_max-0}; then 52457d62b00eSchristos # Best one so far, save it but keep looking for a better one 52467d62b00eSchristos ac_cv_path_GREP="$ac_path_GREP" 52477d62b00eSchristos ac_path_GREP_max=$ac_count 52487d62b00eSchristos fi 52497d62b00eSchristos # 10*(2^10) chars as input seems more than enough 52507d62b00eSchristos test $ac_count -gt 10 && break 52517d62b00eSchristos done 52527d62b00eSchristos rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 52537d62b00eSchristosesac 52547d62b00eSchristos 52557d62b00eSchristos $ac_path_GREP_found && break 3 52567d62b00eSchristos done 52577d62b00eSchristos done 52587d62b00eSchristos done 52597d62b00eSchristosIFS=$as_save_IFS 52607d62b00eSchristos if test -z "$ac_cv_path_GREP"; then 52617d62b00eSchristos as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 52627d62b00eSchristos fi 52637d62b00eSchristoselse 52647d62b00eSchristos ac_cv_path_GREP=$GREP 52657d62b00eSchristosfi 52667d62b00eSchristos 52677d62b00eSchristosfi 52687d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 52697d62b00eSchristos$as_echo "$ac_cv_path_GREP" >&6; } 52707d62b00eSchristos GREP="$ac_cv_path_GREP" 52717d62b00eSchristos 52727d62b00eSchristos 52737d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 52747d62b00eSchristos$as_echo_n "checking for egrep... " >&6; } 52757d62b00eSchristosif ${ac_cv_path_EGREP+:} false; then : 52767d62b00eSchristos $as_echo_n "(cached) " >&6 52777d62b00eSchristoselse 52787d62b00eSchristos if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 52797d62b00eSchristos then ac_cv_path_EGREP="$GREP -E" 52807d62b00eSchristos else 52817d62b00eSchristos if test -z "$EGREP"; then 52827d62b00eSchristos ac_path_EGREP_found=false 52837d62b00eSchristos # Loop through the user's path and test for each of PROGNAME-LIST 52847d62b00eSchristos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 52857d62b00eSchristosfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 52867d62b00eSchristosdo 52877d62b00eSchristos IFS=$as_save_IFS 52887d62b00eSchristos test -z "$as_dir" && as_dir=. 52897d62b00eSchristos for ac_prog in egrep; do 52907d62b00eSchristos for ac_exec_ext in '' $ac_executable_extensions; do 52917d62b00eSchristos ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 52927d62b00eSchristos as_fn_executable_p "$ac_path_EGREP" || continue 52937d62b00eSchristos# Check for GNU ac_path_EGREP and select it if it is found. 52947d62b00eSchristos # Check for GNU $ac_path_EGREP 52957d62b00eSchristoscase `"$ac_path_EGREP" --version 2>&1` in 52967d62b00eSchristos*GNU*) 52977d62b00eSchristos ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 52987d62b00eSchristos*) 52997d62b00eSchristos ac_count=0 53007d62b00eSchristos $as_echo_n 0123456789 >"conftest.in" 53017d62b00eSchristos while : 53027d62b00eSchristos do 53037d62b00eSchristos cat "conftest.in" "conftest.in" >"conftest.tmp" 53047d62b00eSchristos mv "conftest.tmp" "conftest.in" 53057d62b00eSchristos cp "conftest.in" "conftest.nl" 53067d62b00eSchristos $as_echo 'EGREP' >> "conftest.nl" 53077d62b00eSchristos "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 53087d62b00eSchristos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 53097d62b00eSchristos as_fn_arith $ac_count + 1 && ac_count=$as_val 53107d62b00eSchristos if test $ac_count -gt ${ac_path_EGREP_max-0}; then 53117d62b00eSchristos # Best one so far, save it but keep looking for a better one 53127d62b00eSchristos ac_cv_path_EGREP="$ac_path_EGREP" 53137d62b00eSchristos ac_path_EGREP_max=$ac_count 53147d62b00eSchristos fi 53157d62b00eSchristos # 10*(2^10) chars as input seems more than enough 53167d62b00eSchristos test $ac_count -gt 10 && break 53177d62b00eSchristos done 53187d62b00eSchristos rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 53197d62b00eSchristosesac 53207d62b00eSchristos 53217d62b00eSchristos $ac_path_EGREP_found && break 3 53227d62b00eSchristos done 53237d62b00eSchristos done 53247d62b00eSchristos done 53257d62b00eSchristosIFS=$as_save_IFS 53267d62b00eSchristos if test -z "$ac_cv_path_EGREP"; then 53277d62b00eSchristos as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 53287d62b00eSchristos fi 53297d62b00eSchristoselse 53307d62b00eSchristos ac_cv_path_EGREP=$EGREP 53317d62b00eSchristosfi 53327d62b00eSchristos 53337d62b00eSchristos fi 53347d62b00eSchristosfi 53357d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 53367d62b00eSchristos$as_echo "$ac_cv_path_EGREP" >&6; } 53377d62b00eSchristos EGREP="$ac_cv_path_EGREP" 53387d62b00eSchristos 53397d62b00eSchristos 53407d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 53417d62b00eSchristos$as_echo_n "checking for ANSI C header files... " >&6; } 53427d62b00eSchristosif ${ac_cv_header_stdc+:} false; then : 53437d62b00eSchristos $as_echo_n "(cached) " >&6 53447d62b00eSchristoselse 53457d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53467d62b00eSchristos/* end confdefs.h. */ 53477d62b00eSchristos#include <stdlib.h> 53487d62b00eSchristos#include <stdarg.h> 53497d62b00eSchristos#include <string.h> 53507d62b00eSchristos#include <float.h> 53517d62b00eSchristos 53527d62b00eSchristosint 53537d62b00eSchristosmain () 53547d62b00eSchristos{ 53557d62b00eSchristos 53567d62b00eSchristos ; 53577d62b00eSchristos return 0; 53587d62b00eSchristos} 53597d62b00eSchristos_ACEOF 53607d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 53617d62b00eSchristos ac_cv_header_stdc=yes 53627d62b00eSchristoselse 53637d62b00eSchristos ac_cv_header_stdc=no 53647d62b00eSchristosfi 53657d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53667d62b00eSchristos 53677d62b00eSchristosif test $ac_cv_header_stdc = yes; then 53687d62b00eSchristos # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 53697d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53707d62b00eSchristos/* end confdefs.h. */ 53717d62b00eSchristos#include <string.h> 53727d62b00eSchristos 53737d62b00eSchristos_ACEOF 53747d62b00eSchristosif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 53757d62b00eSchristos $EGREP "memchr" >/dev/null 2>&1; then : 53767d62b00eSchristos 53777d62b00eSchristoselse 53787d62b00eSchristos ac_cv_header_stdc=no 53797d62b00eSchristosfi 53807d62b00eSchristosrm -f conftest* 53817d62b00eSchristos 53827d62b00eSchristosfi 53837d62b00eSchristos 53847d62b00eSchristosif test $ac_cv_header_stdc = yes; then 53857d62b00eSchristos # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 53867d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53877d62b00eSchristos/* end confdefs.h. */ 53887d62b00eSchristos#include <stdlib.h> 53897d62b00eSchristos 53907d62b00eSchristos_ACEOF 53917d62b00eSchristosif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 53927d62b00eSchristos $EGREP "free" >/dev/null 2>&1; then : 53937d62b00eSchristos 53947d62b00eSchristoselse 53957d62b00eSchristos ac_cv_header_stdc=no 53967d62b00eSchristosfi 53977d62b00eSchristosrm -f conftest* 53987d62b00eSchristos 53997d62b00eSchristosfi 54007d62b00eSchristos 54017d62b00eSchristosif test $ac_cv_header_stdc = yes; then 54027d62b00eSchristos # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 54037d62b00eSchristos if test "$cross_compiling" = yes; then : 54047d62b00eSchristos : 54057d62b00eSchristoselse 54067d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54077d62b00eSchristos/* end confdefs.h. */ 54087d62b00eSchristos#include <ctype.h> 54097d62b00eSchristos#include <stdlib.h> 54107d62b00eSchristos#if ((' ' & 0x0FF) == 0x020) 54117d62b00eSchristos# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 54127d62b00eSchristos# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 54137d62b00eSchristos#else 54147d62b00eSchristos# define ISLOWER(c) \ 54157d62b00eSchristos (('a' <= (c) && (c) <= 'i') \ 54167d62b00eSchristos || ('j' <= (c) && (c) <= 'r') \ 54177d62b00eSchristos || ('s' <= (c) && (c) <= 'z')) 54187d62b00eSchristos# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 54197d62b00eSchristos#endif 54207d62b00eSchristos 54217d62b00eSchristos#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 54227d62b00eSchristosint 54237d62b00eSchristosmain () 54247d62b00eSchristos{ 54257d62b00eSchristos int i; 54267d62b00eSchristos for (i = 0; i < 256; i++) 54277d62b00eSchristos if (XOR (islower (i), ISLOWER (i)) 54287d62b00eSchristos || toupper (i) != TOUPPER (i)) 54297d62b00eSchristos return 2; 54307d62b00eSchristos return 0; 54317d62b00eSchristos} 54327d62b00eSchristos_ACEOF 54337d62b00eSchristosif ac_fn_c_try_run "$LINENO"; then : 54347d62b00eSchristos 54357d62b00eSchristoselse 54367d62b00eSchristos ac_cv_header_stdc=no 54377d62b00eSchristosfi 54387d62b00eSchristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 54397d62b00eSchristos conftest.$ac_objext conftest.beam conftest.$ac_ext 54407d62b00eSchristosfi 54417d62b00eSchristos 54427d62b00eSchristosfi 54437d62b00eSchristosfi 54447d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 54457d62b00eSchristos$as_echo "$ac_cv_header_stdc" >&6; } 54467d62b00eSchristosif test $ac_cv_header_stdc = yes; then 54477d62b00eSchristos 54487d62b00eSchristos$as_echo "#define STDC_HEADERS 1" >>confdefs.h 54497d62b00eSchristos 54507d62b00eSchristosfi 54517d62b00eSchristos 54527d62b00eSchristos# On IRIX 5.3, sys/types and inttypes.h are conflicting. 54537d62b00eSchristosfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 54547d62b00eSchristos inttypes.h stdint.h unistd.h 54557d62b00eSchristosdo : 54567d62b00eSchristos as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 54577d62b00eSchristosac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 54587d62b00eSchristos" 54597d62b00eSchristosif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 54607d62b00eSchristos cat >>confdefs.h <<_ACEOF 54617d62b00eSchristos#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 54627d62b00eSchristos_ACEOF 54637d62b00eSchristos 54647d62b00eSchristosfi 54657d62b00eSchristos 54667d62b00eSchristosdone 54677d62b00eSchristos 54687d62b00eSchristos 54697d62b00eSchristos 54707d62b00eSchristos ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 54717d62b00eSchristosif test "x$ac_cv_header_minix_config_h" = xyes; then : 54727d62b00eSchristos MINIX=yes 54737d62b00eSchristoselse 54747d62b00eSchristos MINIX= 54757d62b00eSchristosfi 54767d62b00eSchristos 54777d62b00eSchristos 54787d62b00eSchristos if test "$MINIX" = yes; then 54797d62b00eSchristos 54807d62b00eSchristos$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 54817d62b00eSchristos 54827d62b00eSchristos 54837d62b00eSchristos$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 54847d62b00eSchristos 54857d62b00eSchristos 54867d62b00eSchristos$as_echo "#define _MINIX 1" >>confdefs.h 54877d62b00eSchristos 54887d62b00eSchristos fi 54897d62b00eSchristos 54907d62b00eSchristos 54917d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 54927d62b00eSchristos$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 54937d62b00eSchristosif ${ac_cv_safe_to_define___extensions__+:} false; then : 54947d62b00eSchristos $as_echo_n "(cached) " >&6 54957d62b00eSchristoselse 54967d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54977d62b00eSchristos/* end confdefs.h. */ 54987d62b00eSchristos 54997d62b00eSchristos# define __EXTENSIONS__ 1 55007d62b00eSchristos $ac_includes_default 55017d62b00eSchristosint 55027d62b00eSchristosmain () 55037d62b00eSchristos{ 55047d62b00eSchristos 55057d62b00eSchristos ; 55067d62b00eSchristos return 0; 55077d62b00eSchristos} 55087d62b00eSchristos_ACEOF 55097d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 55107d62b00eSchristos ac_cv_safe_to_define___extensions__=yes 55117d62b00eSchristoselse 55127d62b00eSchristos ac_cv_safe_to_define___extensions__=no 55137d62b00eSchristosfi 55147d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 55157d62b00eSchristosfi 55167d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 55177d62b00eSchristos$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 55187d62b00eSchristos test $ac_cv_safe_to_define___extensions__ = yes && 55197d62b00eSchristos $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 55207d62b00eSchristos 55217d62b00eSchristos $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 55227d62b00eSchristos 55237d62b00eSchristos $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 55247d62b00eSchristos 55257d62b00eSchristos $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 55267d62b00eSchristos 55277d62b00eSchristos $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 55287d62b00eSchristos 55297d62b00eSchristos 55307d62b00eSchristos 55317d62b00eSchristos# The tests for host and target for $enable_largefile require 55327d62b00eSchristos# canonical names. 55337d62b00eSchristos 55347d62b00eSchristos 55357d62b00eSchristos 55367d62b00eSchristos# As the $enable_largefile decision depends on --enable-plugins we must set it 55377d62b00eSchristos# even in directories otherwise not depending on the $plugins option. 55387d62b00eSchristos 55397d62b00eSchristos 55407d62b00eSchristos maybe_plugins=no 55417d62b00eSchristos for ac_header in dlfcn.h 55427d62b00eSchristosdo : 55437d62b00eSchristos ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 55447d62b00eSchristos" 55457d62b00eSchristosif test "x$ac_cv_header_dlfcn_h" = xyes; then : 55467d62b00eSchristos cat >>confdefs.h <<_ACEOF 55477d62b00eSchristos#define HAVE_DLFCN_H 1 55487d62b00eSchristos_ACEOF 55497d62b00eSchristos maybe_plugins=yes 55507d62b00eSchristosfi 55517d62b00eSchristos 55527d62b00eSchristosdone 55537d62b00eSchristos 55547d62b00eSchristos for ac_header in windows.h 55557d62b00eSchristosdo : 55567d62b00eSchristos ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 55577d62b00eSchristos" 55587d62b00eSchristosif test "x$ac_cv_header_windows_h" = xyes; then : 55597d62b00eSchristos cat >>confdefs.h <<_ACEOF 55607d62b00eSchristos#define HAVE_WINDOWS_H 1 55617d62b00eSchristos_ACEOF 55627d62b00eSchristos maybe_plugins=yes 55637d62b00eSchristosfi 55647d62b00eSchristos 55657d62b00eSchristosdone 55667d62b00eSchristos 55677d62b00eSchristos 55687d62b00eSchristos # Check whether --enable-plugins was given. 55697d62b00eSchristosif test "${enable_plugins+set}" = set; then : 55707d62b00eSchristos enableval=$enable_plugins; case "${enableval}" in 55717d62b00eSchristos no) plugins=no ;; 55727d62b00eSchristos *) plugins=yes 55737d62b00eSchristos if test "$maybe_plugins" != "yes" ; then 55747d62b00eSchristos as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 55757d62b00eSchristos fi ;; 55767d62b00eSchristos esac 55777d62b00eSchristoselse 55787d62b00eSchristos plugins=$maybe_plugins 55797d62b00eSchristos 55807d62b00eSchristosfi 55817d62b00eSchristos 55827d62b00eSchristos if test "$plugins" = "yes"; then 55837d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 55847d62b00eSchristos$as_echo_n "checking for library containing dlsym... " >&6; } 55857d62b00eSchristosif ${ac_cv_search_dlsym+:} false; then : 55867d62b00eSchristos $as_echo_n "(cached) " >&6 55877d62b00eSchristoselse 55887d62b00eSchristos ac_func_search_save_LIBS=$LIBS 55897d62b00eSchristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext 55907d62b00eSchristos/* end confdefs.h. */ 55917d62b00eSchristos 55927d62b00eSchristos/* Override any GCC internal prototype to avoid an error. 55937d62b00eSchristos Use char because int might match the return type of a GCC 55947d62b00eSchristos builtin and then its argument prototype would still apply. */ 55957d62b00eSchristos#ifdef __cplusplus 55967d62b00eSchristosextern "C" 55977d62b00eSchristos#endif 55987d62b00eSchristoschar dlsym (); 55997d62b00eSchristosint 56007d62b00eSchristosmain () 56017d62b00eSchristos{ 56027d62b00eSchristosreturn dlsym (); 56037d62b00eSchristos ; 56047d62b00eSchristos return 0; 56057d62b00eSchristos} 56067d62b00eSchristos_ACEOF 56077d62b00eSchristosfor ac_lib in '' dl; do 56087d62b00eSchristos if test -z "$ac_lib"; then 56097d62b00eSchristos ac_res="none required" 56107d62b00eSchristos else 56117d62b00eSchristos ac_res=-l$ac_lib 56127d62b00eSchristos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 56137d62b00eSchristos fi 56147d62b00eSchristos if ac_fn_c_try_link "$LINENO"; then : 56157d62b00eSchristos ac_cv_search_dlsym=$ac_res 56167d62b00eSchristosfi 56177d62b00eSchristosrm -f core conftest.err conftest.$ac_objext \ 56187d62b00eSchristos conftest$ac_exeext 56197d62b00eSchristos if ${ac_cv_search_dlsym+:} false; then : 56207d62b00eSchristos break 56217d62b00eSchristosfi 56227d62b00eSchristosdone 56237d62b00eSchristosif ${ac_cv_search_dlsym+:} false; then : 56247d62b00eSchristos 56257d62b00eSchristoselse 56267d62b00eSchristos ac_cv_search_dlsym=no 56277d62b00eSchristosfi 56287d62b00eSchristosrm conftest.$ac_ext 56297d62b00eSchristosLIBS=$ac_func_search_save_LIBS 56307d62b00eSchristosfi 56317d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 56327d62b00eSchristos$as_echo "$ac_cv_search_dlsym" >&6; } 56337d62b00eSchristosac_res=$ac_cv_search_dlsym 56347d62b00eSchristosif test "$ac_res" != no; then : 56357d62b00eSchristos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 56367d62b00eSchristos 56377d62b00eSchristosfi 56387d62b00eSchristos 56397d62b00eSchristos fi 56407d62b00eSchristos 56417d62b00eSchristos 56427d62b00eSchristoscase "${host}" in 56437d62b00eSchristos sparc-*-solaris*|i?86-*-solaris*) 56447d62b00eSchristos # On native 32-bit Solaris/SPARC and x86, large-file and procfs support 56457d62b00eSchristos # were mutually exclusive until Solaris 11.3. Without procfs support, 56467d62b00eSchristos # the bfd/ elf module cannot provide certain routines such as 56477d62b00eSchristos # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user 56487d62b00eSchristos # explicitly requested large-file support through the 56497d62b00eSchristos # --enable-largefile switch, disable large-file support in favor of 56507d62b00eSchristos # procfs support. 56517d62b00eSchristos # 56527d62b00eSchristos # Check if <sys/procfs.h> is incompatible with large-file support. 56537d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56547d62b00eSchristos/* end confdefs.h. */ 56557d62b00eSchristos#define _FILE_OFFSET_BITS 64 56567d62b00eSchristos#define _STRUCTURED_PROC 1 56577d62b00eSchristos#include <sys/procfs.h> 56587d62b00eSchristosint 56597d62b00eSchristosmain () 56607d62b00eSchristos{ 56617d62b00eSchristos 56627d62b00eSchristos ; 56637d62b00eSchristos return 0; 56647d62b00eSchristos} 56657d62b00eSchristos_ACEOF 56667d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 56677d62b00eSchristos acx_cv_procfs_lfs=yes 56687d62b00eSchristoselse 56697d62b00eSchristos acx_cv_procfs_lfs=no 56707d62b00eSchristosfi 56717d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 56727d62b00eSchristos # 56737d62b00eSchristos # Forcefully disable large-file support only if necessary, gdb is in 56747d62b00eSchristos # tree and enabled. 56757d62b00eSchristos if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \ 56767d62b00eSchristos -a -d $srcdir/../gdb -a "$enable_gdb" != no; then 56777d62b00eSchristos : ${enable_largefile="no"} 56787d62b00eSchristos if test "$plugins" = yes; then 56797d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 56807d62b00eSchristosplugin support disabled; require large-file support which is incompatible with GDB." >&5 56817d62b00eSchristos$as_echo "$as_me: WARNING: 56827d62b00eSchristosplugin support disabled; require large-file support which is incompatible with GDB." >&2;} 56837d62b00eSchristos plugins=no 56847d62b00eSchristos fi 56857d62b00eSchristos fi 56867d62b00eSchristos # 56877d62b00eSchristos # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the 56887d62b00eSchristos # benefit of g++ 9+ which predefines it on Solaris. 56897d62b00eSchristos if test "$enable_largefile" = no; then 56907d62b00eSchristos LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS" 56917d62b00eSchristos 56927d62b00eSchristos fi 56937d62b00eSchristos ;; 56947d62b00eSchristosesac 56957d62b00eSchristos 56967d62b00eSchristos# Check whether --enable-largefile was given. 56977d62b00eSchristosif test "${enable_largefile+set}" = set; then : 56987d62b00eSchristos enableval=$enable_largefile; 56997d62b00eSchristosfi 57007d62b00eSchristos 57017d62b00eSchristosif test "$enable_largefile" != no; then 57027d62b00eSchristos 57037d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 57047d62b00eSchristos$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 57057d62b00eSchristosif ${ac_cv_sys_largefile_CC+:} false; then : 57067d62b00eSchristos $as_echo_n "(cached) " >&6 57077d62b00eSchristoselse 57087d62b00eSchristos ac_cv_sys_largefile_CC=no 57097d62b00eSchristos if test "$GCC" != yes; then 57107d62b00eSchristos ac_save_CC=$CC 57117d62b00eSchristos while :; do 57127d62b00eSchristos # IRIX 6.2 and later do not support large files by default, 57137d62b00eSchristos # so use the C compiler's -n32 option if that helps. 57147d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57157d62b00eSchristos/* end confdefs.h. */ 57167d62b00eSchristos#include <sys/types.h> 57177d62b00eSchristos /* Check that off_t can represent 2**63 - 1 correctly. 57187d62b00eSchristos We can't simply define LARGE_OFF_T to be 9223372036854775807, 57197d62b00eSchristos since some C++ compilers masquerading as C compilers 57207d62b00eSchristos incorrectly reject 9223372036854775807. */ 57217d62b00eSchristos#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 57227d62b00eSchristos int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 57237d62b00eSchristos && LARGE_OFF_T % 2147483647 == 1) 57247d62b00eSchristos ? 1 : -1]; 57257d62b00eSchristosint 57267d62b00eSchristosmain () 57277d62b00eSchristos{ 57287d62b00eSchristos 57297d62b00eSchristos ; 57307d62b00eSchristos return 0; 57317d62b00eSchristos} 57327d62b00eSchristos_ACEOF 57337d62b00eSchristos if ac_fn_c_try_compile "$LINENO"; then : 57347d62b00eSchristos break 57357d62b00eSchristosfi 57367d62b00eSchristosrm -f core conftest.err conftest.$ac_objext 57377d62b00eSchristos CC="$CC -n32" 57387d62b00eSchristos if ac_fn_c_try_compile "$LINENO"; then : 57397d62b00eSchristos ac_cv_sys_largefile_CC=' -n32'; break 57407d62b00eSchristosfi 57417d62b00eSchristosrm -f core conftest.err conftest.$ac_objext 57427d62b00eSchristos break 57437d62b00eSchristos done 57447d62b00eSchristos CC=$ac_save_CC 57457d62b00eSchristos rm -f conftest.$ac_ext 57467d62b00eSchristos fi 57477d62b00eSchristosfi 57487d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 57497d62b00eSchristos$as_echo "$ac_cv_sys_largefile_CC" >&6; } 57507d62b00eSchristos if test "$ac_cv_sys_largefile_CC" != no; then 57517d62b00eSchristos CC=$CC$ac_cv_sys_largefile_CC 57527d62b00eSchristos fi 57537d62b00eSchristos 57547d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 57557d62b00eSchristos$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 57567d62b00eSchristosif ${ac_cv_sys_file_offset_bits+:} false; then : 57577d62b00eSchristos $as_echo_n "(cached) " >&6 57587d62b00eSchristoselse 57597d62b00eSchristos while :; do 57607d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57617d62b00eSchristos/* end confdefs.h. */ 57627d62b00eSchristos#include <sys/types.h> 57637d62b00eSchristos /* Check that off_t can represent 2**63 - 1 correctly. 57647d62b00eSchristos We can't simply define LARGE_OFF_T to be 9223372036854775807, 57657d62b00eSchristos since some C++ compilers masquerading as C compilers 57667d62b00eSchristos incorrectly reject 9223372036854775807. */ 57677d62b00eSchristos#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 57687d62b00eSchristos int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 57697d62b00eSchristos && LARGE_OFF_T % 2147483647 == 1) 57707d62b00eSchristos ? 1 : -1]; 57717d62b00eSchristosint 57727d62b00eSchristosmain () 57737d62b00eSchristos{ 57747d62b00eSchristos 57757d62b00eSchristos ; 57767d62b00eSchristos return 0; 57777d62b00eSchristos} 57787d62b00eSchristos_ACEOF 57797d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 57807d62b00eSchristos ac_cv_sys_file_offset_bits=no; break 57817d62b00eSchristosfi 57827d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 57837d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57847d62b00eSchristos/* end confdefs.h. */ 57857d62b00eSchristos#define _FILE_OFFSET_BITS 64 57867d62b00eSchristos#include <sys/types.h> 57877d62b00eSchristos /* Check that off_t can represent 2**63 - 1 correctly. 57887d62b00eSchristos We can't simply define LARGE_OFF_T to be 9223372036854775807, 57897d62b00eSchristos since some C++ compilers masquerading as C compilers 57907d62b00eSchristos incorrectly reject 9223372036854775807. */ 57917d62b00eSchristos#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 57927d62b00eSchristos int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 57937d62b00eSchristos && LARGE_OFF_T % 2147483647 == 1) 57947d62b00eSchristos ? 1 : -1]; 57957d62b00eSchristosint 57967d62b00eSchristosmain () 57977d62b00eSchristos{ 57987d62b00eSchristos 57997d62b00eSchristos ; 58007d62b00eSchristos return 0; 58017d62b00eSchristos} 58027d62b00eSchristos_ACEOF 58037d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 58047d62b00eSchristos ac_cv_sys_file_offset_bits=64; break 58057d62b00eSchristosfi 58067d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 58077d62b00eSchristos ac_cv_sys_file_offset_bits=unknown 58087d62b00eSchristos break 58097d62b00eSchristosdone 58107d62b00eSchristosfi 58117d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 58127d62b00eSchristos$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 58137d62b00eSchristoscase $ac_cv_sys_file_offset_bits in #( 58147d62b00eSchristos no | unknown) ;; 58157d62b00eSchristos *) 58167d62b00eSchristoscat >>confdefs.h <<_ACEOF 58177d62b00eSchristos#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 58187d62b00eSchristos_ACEOF 58197d62b00eSchristos;; 58207d62b00eSchristosesac 58217d62b00eSchristosrm -rf conftest* 58227d62b00eSchristos if test $ac_cv_sys_file_offset_bits = unknown; then 58237d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 58247d62b00eSchristos$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 58257d62b00eSchristosif ${ac_cv_sys_large_files+:} false; then : 58267d62b00eSchristos $as_echo_n "(cached) " >&6 58277d62b00eSchristoselse 58287d62b00eSchristos while :; do 58297d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58307d62b00eSchristos/* end confdefs.h. */ 58317d62b00eSchristos#include <sys/types.h> 58327d62b00eSchristos /* Check that off_t can represent 2**63 - 1 correctly. 58337d62b00eSchristos We can't simply define LARGE_OFF_T to be 9223372036854775807, 58347d62b00eSchristos since some C++ compilers masquerading as C compilers 58357d62b00eSchristos incorrectly reject 9223372036854775807. */ 58367d62b00eSchristos#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 58377d62b00eSchristos int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 58387d62b00eSchristos && LARGE_OFF_T % 2147483647 == 1) 58397d62b00eSchristos ? 1 : -1]; 58407d62b00eSchristosint 58417d62b00eSchristosmain () 58427d62b00eSchristos{ 58437d62b00eSchristos 58447d62b00eSchristos ; 58457d62b00eSchristos return 0; 58467d62b00eSchristos} 58477d62b00eSchristos_ACEOF 58487d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 58497d62b00eSchristos ac_cv_sys_large_files=no; break 58507d62b00eSchristosfi 58517d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 58527d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58537d62b00eSchristos/* end confdefs.h. */ 58547d62b00eSchristos#define _LARGE_FILES 1 58557d62b00eSchristos#include <sys/types.h> 58567d62b00eSchristos /* Check that off_t can represent 2**63 - 1 correctly. 58577d62b00eSchristos We can't simply define LARGE_OFF_T to be 9223372036854775807, 58587d62b00eSchristos since some C++ compilers masquerading as C compilers 58597d62b00eSchristos incorrectly reject 9223372036854775807. */ 58607d62b00eSchristos#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 58617d62b00eSchristos int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 58627d62b00eSchristos && LARGE_OFF_T % 2147483647 == 1) 58637d62b00eSchristos ? 1 : -1]; 58647d62b00eSchristosint 58657d62b00eSchristosmain () 58667d62b00eSchristos{ 58677d62b00eSchristos 58687d62b00eSchristos ; 58697d62b00eSchristos return 0; 58707d62b00eSchristos} 58717d62b00eSchristos_ACEOF 58727d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 58737d62b00eSchristos ac_cv_sys_large_files=1; break 58747d62b00eSchristosfi 58757d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 58767d62b00eSchristos ac_cv_sys_large_files=unknown 58777d62b00eSchristos break 58787d62b00eSchristosdone 58797d62b00eSchristosfi 58807d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 58817d62b00eSchristos$as_echo "$ac_cv_sys_large_files" >&6; } 58827d62b00eSchristoscase $ac_cv_sys_large_files in #( 58837d62b00eSchristos no | unknown) ;; 58847d62b00eSchristos *) 58857d62b00eSchristoscat >>confdefs.h <<_ACEOF 58867d62b00eSchristos#define _LARGE_FILES $ac_cv_sys_large_files 58877d62b00eSchristos_ACEOF 58887d62b00eSchristos;; 58897d62b00eSchristosesac 58907d62b00eSchristosrm -rf conftest* 58917d62b00eSchristos fi 58927d62b00eSchristos 58937d62b00eSchristos 58947d62b00eSchristosfi 58957d62b00eSchristos 58967d62b00eSchristos 58977d62b00eSchristos 58987d62b00eSchristos# We require a C++11 compiler. Check if one is available, and if 58997d62b00eSchristos# necessary, set CXX_DIALECT to some -std=xxx switch. 59007d62b00eSchristos 59017d62b00eSchristos ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true 59027d62b00eSchristos ac_ext=cpp 59037d62b00eSchristosac_cpp='$CXXCPP $CPPFLAGS' 59047d62b00eSchristosac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 59057d62b00eSchristosac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 59067d62b00eSchristosac_compiler_gnu=$ac_cv_cxx_compiler_gnu 59077d62b00eSchristos CXX_DIALECT="" 59087d62b00eSchristos ac_success=no 59097d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 59107d62b00eSchristos$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } 59117d62b00eSchristosif ${ax_cv_cxx_compile_cxx11+:} false; then : 59127d62b00eSchristos $as_echo_n "(cached) " >&6 59137d62b00eSchristoselse 59147d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59157d62b00eSchristos/* end confdefs.h. */ 59167d62b00eSchristos 59177d62b00eSchristos 59187d62b00eSchristos// If the compiler admits that it is not ready for C++11, why torture it? 59197d62b00eSchristos// Hopefully, this will speed up the test. 59207d62b00eSchristos 59217d62b00eSchristos#ifndef __cplusplus 59227d62b00eSchristos 59237d62b00eSchristos#error "This is not a C++ compiler" 59247d62b00eSchristos 59257d62b00eSchristos#elif __cplusplus < 201103L 59267d62b00eSchristos 59277d62b00eSchristos#error "This is not a C++11 compiler" 59287d62b00eSchristos 59297d62b00eSchristos#else 59307d62b00eSchristos 59317d62b00eSchristosnamespace cxx11 59327d62b00eSchristos{ 59337d62b00eSchristos 59347d62b00eSchristos namespace test_static_assert 59357d62b00eSchristos { 59367d62b00eSchristos 59377d62b00eSchristos template <typename T> 59387d62b00eSchristos struct check 59397d62b00eSchristos { 59407d62b00eSchristos static_assert(sizeof(int) <= sizeof(T), "not big enough"); 59417d62b00eSchristos }; 59427d62b00eSchristos 59437d62b00eSchristos } 59447d62b00eSchristos 59457d62b00eSchristos namespace test_final_override 59467d62b00eSchristos { 59477d62b00eSchristos 59487d62b00eSchristos struct Base 59497d62b00eSchristos { 59507d62b00eSchristos virtual void f() {} 59517d62b00eSchristos }; 59527d62b00eSchristos 59537d62b00eSchristos struct Derived : public Base 59547d62b00eSchristos { 59557d62b00eSchristos virtual void f() override {} 59567d62b00eSchristos }; 59577d62b00eSchristos 59587d62b00eSchristos } 59597d62b00eSchristos 59607d62b00eSchristos namespace test_double_right_angle_brackets 59617d62b00eSchristos { 59627d62b00eSchristos 59637d62b00eSchristos template < typename T > 59647d62b00eSchristos struct check {}; 59657d62b00eSchristos 59667d62b00eSchristos typedef check<void> single_type; 59677d62b00eSchristos typedef check<check<void>> double_type; 59687d62b00eSchristos typedef check<check<check<void>>> triple_type; 59697d62b00eSchristos typedef check<check<check<check<void>>>> quadruple_type; 59707d62b00eSchristos 59717d62b00eSchristos } 59727d62b00eSchristos 59737d62b00eSchristos namespace test_decltype 59747d62b00eSchristos { 59757d62b00eSchristos 59767d62b00eSchristos int 59777d62b00eSchristos f() 59787d62b00eSchristos { 59797d62b00eSchristos int a = 1; 59807d62b00eSchristos decltype(a) b = 2; 59817d62b00eSchristos return a + b; 59827d62b00eSchristos } 59837d62b00eSchristos 59847d62b00eSchristos } 59857d62b00eSchristos 59867d62b00eSchristos namespace test_type_deduction 59877d62b00eSchristos { 59887d62b00eSchristos 59897d62b00eSchristos template < typename T1, typename T2 > 59907d62b00eSchristos struct is_same 59917d62b00eSchristos { 59927d62b00eSchristos static const bool value = false; 59937d62b00eSchristos }; 59947d62b00eSchristos 59957d62b00eSchristos template < typename T > 59967d62b00eSchristos struct is_same<T, T> 59977d62b00eSchristos { 59987d62b00eSchristos static const bool value = true; 59997d62b00eSchristos }; 60007d62b00eSchristos 60017d62b00eSchristos template < typename T1, typename T2 > 60027d62b00eSchristos auto 60037d62b00eSchristos add(T1 a1, T2 a2) -> decltype(a1 + a2) 60047d62b00eSchristos { 60057d62b00eSchristos return a1 + a2; 60067d62b00eSchristos } 60077d62b00eSchristos 60087d62b00eSchristos int 60097d62b00eSchristos test(const int c, volatile int v) 60107d62b00eSchristos { 60117d62b00eSchristos static_assert(is_same<int, decltype(0)>::value == true, ""); 60127d62b00eSchristos static_assert(is_same<int, decltype(c)>::value == false, ""); 60137d62b00eSchristos static_assert(is_same<int, decltype(v)>::value == false, ""); 60147d62b00eSchristos auto ac = c; 60157d62b00eSchristos auto av = v; 60167d62b00eSchristos auto sumi = ac + av + 'x'; 60177d62b00eSchristos auto sumf = ac + av + 1.0; 60187d62b00eSchristos static_assert(is_same<int, decltype(ac)>::value == true, ""); 60197d62b00eSchristos static_assert(is_same<int, decltype(av)>::value == true, ""); 60207d62b00eSchristos static_assert(is_same<int, decltype(sumi)>::value == true, ""); 60217d62b00eSchristos static_assert(is_same<int, decltype(sumf)>::value == false, ""); 60227d62b00eSchristos static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 60237d62b00eSchristos return (sumf > 0.0) ? sumi : add(c, v); 60247d62b00eSchristos } 60257d62b00eSchristos 60267d62b00eSchristos } 60277d62b00eSchristos 60287d62b00eSchristos namespace test_noexcept 60297d62b00eSchristos { 60307d62b00eSchristos 60317d62b00eSchristos int f() { return 0; } 60327d62b00eSchristos int g() noexcept { return 0; } 60337d62b00eSchristos 60347d62b00eSchristos static_assert(noexcept(f()) == false, ""); 60357d62b00eSchristos static_assert(noexcept(g()) == true, ""); 60367d62b00eSchristos 60377d62b00eSchristos } 60387d62b00eSchristos 60397d62b00eSchristos namespace test_constexpr 60407d62b00eSchristos { 60417d62b00eSchristos 60427d62b00eSchristos template < typename CharT > 60437d62b00eSchristos unsigned long constexpr 60447d62b00eSchristos strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 60457d62b00eSchristos { 60467d62b00eSchristos return *s ? strlen_c_r(s + 1, acc + 1) : acc; 60477d62b00eSchristos } 60487d62b00eSchristos 60497d62b00eSchristos template < typename CharT > 60507d62b00eSchristos unsigned long constexpr 60517d62b00eSchristos strlen_c(const CharT *const s) noexcept 60527d62b00eSchristos { 60537d62b00eSchristos return strlen_c_r(s, 0UL); 60547d62b00eSchristos } 60557d62b00eSchristos 60567d62b00eSchristos static_assert(strlen_c("") == 0UL, ""); 60577d62b00eSchristos static_assert(strlen_c("1") == 1UL, ""); 60587d62b00eSchristos static_assert(strlen_c("example") == 7UL, ""); 60597d62b00eSchristos static_assert(strlen_c("another\0example") == 7UL, ""); 60607d62b00eSchristos 60617d62b00eSchristos } 60627d62b00eSchristos 60637d62b00eSchristos namespace test_rvalue_references 60647d62b00eSchristos { 60657d62b00eSchristos 60667d62b00eSchristos template < int N > 60677d62b00eSchristos struct answer 60687d62b00eSchristos { 60697d62b00eSchristos static constexpr int value = N; 60707d62b00eSchristos }; 60717d62b00eSchristos 60727d62b00eSchristos answer<1> f(int&) { return answer<1>(); } 60737d62b00eSchristos answer<2> f(const int&) { return answer<2>(); } 60747d62b00eSchristos answer<3> f(int&&) { return answer<3>(); } 60757d62b00eSchristos 60767d62b00eSchristos void 60777d62b00eSchristos test() 60787d62b00eSchristos { 60797d62b00eSchristos int i = 0; 60807d62b00eSchristos const int c = 0; 60817d62b00eSchristos static_assert(decltype(f(i))::value == 1, ""); 60827d62b00eSchristos static_assert(decltype(f(c))::value == 2, ""); 60837d62b00eSchristos static_assert(decltype(f(0))::value == 3, ""); 60847d62b00eSchristos } 60857d62b00eSchristos 60867d62b00eSchristos } 60877d62b00eSchristos 60887d62b00eSchristos namespace test_uniform_initialization 60897d62b00eSchristos { 60907d62b00eSchristos 60917d62b00eSchristos struct test 60927d62b00eSchristos { 60937d62b00eSchristos static const int zero {}; 60947d62b00eSchristos static const int one {1}; 60957d62b00eSchristos }; 60967d62b00eSchristos 60977d62b00eSchristos static_assert(test::zero == 0, ""); 60987d62b00eSchristos static_assert(test::one == 1, ""); 60997d62b00eSchristos 61007d62b00eSchristos } 61017d62b00eSchristos 61027d62b00eSchristos namespace test_lambdas 61037d62b00eSchristos { 61047d62b00eSchristos 61057d62b00eSchristos void 61067d62b00eSchristos test1() 61077d62b00eSchristos { 61087d62b00eSchristos auto lambda1 = [](){}; 61097d62b00eSchristos auto lambda2 = lambda1; 61107d62b00eSchristos lambda1(); 61117d62b00eSchristos lambda2(); 61127d62b00eSchristos } 61137d62b00eSchristos 61147d62b00eSchristos int 61157d62b00eSchristos test2() 61167d62b00eSchristos { 61177d62b00eSchristos auto a = [](int i, int j){ return i + j; }(1, 2); 61187d62b00eSchristos auto b = []() -> int { return '0'; }(); 61197d62b00eSchristos auto c = [=](){ return a + b; }(); 61207d62b00eSchristos auto d = [&](){ return c; }(); 61217d62b00eSchristos auto e = [a, &b](int x) mutable { 61227d62b00eSchristos const auto identity = [](int y){ return y; }; 61237d62b00eSchristos for (auto i = 0; i < a; ++i) 61247d62b00eSchristos a += b--; 61257d62b00eSchristos return x + identity(a + b); 61267d62b00eSchristos }(0); 61277d62b00eSchristos return a + b + c + d + e; 61287d62b00eSchristos } 61297d62b00eSchristos 61307d62b00eSchristos int 61317d62b00eSchristos test3() 61327d62b00eSchristos { 61337d62b00eSchristos const auto nullary = [](){ return 0; }; 61347d62b00eSchristos const auto unary = [](int x){ return x; }; 61357d62b00eSchristos using nullary_t = decltype(nullary); 61367d62b00eSchristos using unary_t = decltype(unary); 61377d62b00eSchristos const auto higher1st = [](nullary_t f){ return f(); }; 61387d62b00eSchristos const auto higher2nd = [unary](nullary_t f1){ 61397d62b00eSchristos return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 61407d62b00eSchristos }; 61417d62b00eSchristos return higher1st(nullary) + higher2nd(nullary)(unary); 61427d62b00eSchristos } 61437d62b00eSchristos 61447d62b00eSchristos } 61457d62b00eSchristos 61467d62b00eSchristos namespace test_variadic_templates 61477d62b00eSchristos { 61487d62b00eSchristos 61497d62b00eSchristos template <int...> 61507d62b00eSchristos struct sum; 61517d62b00eSchristos 61527d62b00eSchristos template <int N0, int... N1toN> 61537d62b00eSchristos struct sum<N0, N1toN...> 61547d62b00eSchristos { 61557d62b00eSchristos static constexpr auto value = N0 + sum<N1toN...>::value; 61567d62b00eSchristos }; 61577d62b00eSchristos 61587d62b00eSchristos template <> 61597d62b00eSchristos struct sum<> 61607d62b00eSchristos { 61617d62b00eSchristos static constexpr auto value = 0; 61627d62b00eSchristos }; 61637d62b00eSchristos 61647d62b00eSchristos static_assert(sum<>::value == 0, ""); 61657d62b00eSchristos static_assert(sum<1>::value == 1, ""); 61667d62b00eSchristos static_assert(sum<23>::value == 23, ""); 61677d62b00eSchristos static_assert(sum<1, 2>::value == 3, ""); 61687d62b00eSchristos static_assert(sum<5, 5, 11>::value == 21, ""); 61697d62b00eSchristos static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 61707d62b00eSchristos 61717d62b00eSchristos } 61727d62b00eSchristos 61737d62b00eSchristos // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 61747d62b00eSchristos // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 61757d62b00eSchristos // because of this. 61767d62b00eSchristos namespace test_template_alias_sfinae 61777d62b00eSchristos { 61787d62b00eSchristos 61797d62b00eSchristos struct foo {}; 61807d62b00eSchristos 61817d62b00eSchristos template<typename T> 61827d62b00eSchristos using member = typename T::member_type; 61837d62b00eSchristos 61847d62b00eSchristos template<typename T> 61857d62b00eSchristos void func(...) {} 61867d62b00eSchristos 61877d62b00eSchristos template<typename T> 61887d62b00eSchristos void func(member<T>*) {} 61897d62b00eSchristos 61907d62b00eSchristos void test(); 61917d62b00eSchristos 61927d62b00eSchristos void test() { func<foo>(0); } 61937d62b00eSchristos 61947d62b00eSchristos } 61957d62b00eSchristos 61967d62b00eSchristos} // namespace cxx11 61977d62b00eSchristos 61987d62b00eSchristos#endif // __cplusplus >= 201103L 61997d62b00eSchristos 62007d62b00eSchristos 62017d62b00eSchristos 62027d62b00eSchristos_ACEOF 62037d62b00eSchristosif ac_fn_cxx_try_compile "$LINENO"; then : 62047d62b00eSchristos ax_cv_cxx_compile_cxx11=yes 62057d62b00eSchristoselse 62067d62b00eSchristos ax_cv_cxx_compile_cxx11=no 62077d62b00eSchristosfi 62087d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 62097d62b00eSchristosfi 62107d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 62117d62b00eSchristos$as_echo "$ax_cv_cxx_compile_cxx11" >&6; } 62127d62b00eSchristos if test x$ax_cv_cxx_compile_cxx11 = xyes; then 62137d62b00eSchristos ac_success=yes 62147d62b00eSchristos fi 62157d62b00eSchristos 62167d62b00eSchristos if test x$ac_success = xno; then 62177d62b00eSchristos for alternative in ${ax_cxx_compile_alternatives}; do 62187d62b00eSchristos switch="-std=gnu++${alternative}" 62197d62b00eSchristos cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 62207d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 62217d62b00eSchristos$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 62227d62b00eSchristosif eval \${$cachevar+:} false; then : 62237d62b00eSchristos $as_echo_n "(cached) " >&6 62247d62b00eSchristoselse 62257d62b00eSchristos ac_save_CXX="$CXX" 62267d62b00eSchristos CXX="$CXX $switch" 62277d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62287d62b00eSchristos/* end confdefs.h. */ 62297d62b00eSchristos 62307d62b00eSchristos 62317d62b00eSchristos// If the compiler admits that it is not ready for C++11, why torture it? 62327d62b00eSchristos// Hopefully, this will speed up the test. 62337d62b00eSchristos 62347d62b00eSchristos#ifndef __cplusplus 62357d62b00eSchristos 62367d62b00eSchristos#error "This is not a C++ compiler" 62377d62b00eSchristos 62387d62b00eSchristos#elif __cplusplus < 201103L 62397d62b00eSchristos 62407d62b00eSchristos#error "This is not a C++11 compiler" 62417d62b00eSchristos 62427d62b00eSchristos#else 62437d62b00eSchristos 62447d62b00eSchristosnamespace cxx11 62457d62b00eSchristos{ 62467d62b00eSchristos 62477d62b00eSchristos namespace test_static_assert 62487d62b00eSchristos { 62497d62b00eSchristos 62507d62b00eSchristos template <typename T> 62517d62b00eSchristos struct check 62527d62b00eSchristos { 62537d62b00eSchristos static_assert(sizeof(int) <= sizeof(T), "not big enough"); 62547d62b00eSchristos }; 62557d62b00eSchristos 62567d62b00eSchristos } 62577d62b00eSchristos 62587d62b00eSchristos namespace test_final_override 62597d62b00eSchristos { 62607d62b00eSchristos 62617d62b00eSchristos struct Base 62627d62b00eSchristos { 62637d62b00eSchristos virtual void f() {} 62647d62b00eSchristos }; 62657d62b00eSchristos 62667d62b00eSchristos struct Derived : public Base 62677d62b00eSchristos { 62687d62b00eSchristos virtual void f() override {} 62697d62b00eSchristos }; 62707d62b00eSchristos 62717d62b00eSchristos } 62727d62b00eSchristos 62737d62b00eSchristos namespace test_double_right_angle_brackets 62747d62b00eSchristos { 62757d62b00eSchristos 62767d62b00eSchristos template < typename T > 62777d62b00eSchristos struct check {}; 62787d62b00eSchristos 62797d62b00eSchristos typedef check<void> single_type; 62807d62b00eSchristos typedef check<check<void>> double_type; 62817d62b00eSchristos typedef check<check<check<void>>> triple_type; 62827d62b00eSchristos typedef check<check<check<check<void>>>> quadruple_type; 62837d62b00eSchristos 62847d62b00eSchristos } 62857d62b00eSchristos 62867d62b00eSchristos namespace test_decltype 62877d62b00eSchristos { 62887d62b00eSchristos 62897d62b00eSchristos int 62907d62b00eSchristos f() 62917d62b00eSchristos { 62927d62b00eSchristos int a = 1; 62937d62b00eSchristos decltype(a) b = 2; 62947d62b00eSchristos return a + b; 62957d62b00eSchristos } 62967d62b00eSchristos 62977d62b00eSchristos } 62987d62b00eSchristos 62997d62b00eSchristos namespace test_type_deduction 63007d62b00eSchristos { 63017d62b00eSchristos 63027d62b00eSchristos template < typename T1, typename T2 > 63037d62b00eSchristos struct is_same 63047d62b00eSchristos { 63057d62b00eSchristos static const bool value = false; 63067d62b00eSchristos }; 63077d62b00eSchristos 63087d62b00eSchristos template < typename T > 63097d62b00eSchristos struct is_same<T, T> 63107d62b00eSchristos { 63117d62b00eSchristos static const bool value = true; 63127d62b00eSchristos }; 63137d62b00eSchristos 63147d62b00eSchristos template < typename T1, typename T2 > 63157d62b00eSchristos auto 63167d62b00eSchristos add(T1 a1, T2 a2) -> decltype(a1 + a2) 63177d62b00eSchristos { 63187d62b00eSchristos return a1 + a2; 63197d62b00eSchristos } 63207d62b00eSchristos 63217d62b00eSchristos int 63227d62b00eSchristos test(const int c, volatile int v) 63237d62b00eSchristos { 63247d62b00eSchristos static_assert(is_same<int, decltype(0)>::value == true, ""); 63257d62b00eSchristos static_assert(is_same<int, decltype(c)>::value == false, ""); 63267d62b00eSchristos static_assert(is_same<int, decltype(v)>::value == false, ""); 63277d62b00eSchristos auto ac = c; 63287d62b00eSchristos auto av = v; 63297d62b00eSchristos auto sumi = ac + av + 'x'; 63307d62b00eSchristos auto sumf = ac + av + 1.0; 63317d62b00eSchristos static_assert(is_same<int, decltype(ac)>::value == true, ""); 63327d62b00eSchristos static_assert(is_same<int, decltype(av)>::value == true, ""); 63337d62b00eSchristos static_assert(is_same<int, decltype(sumi)>::value == true, ""); 63347d62b00eSchristos static_assert(is_same<int, decltype(sumf)>::value == false, ""); 63357d62b00eSchristos static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 63367d62b00eSchristos return (sumf > 0.0) ? sumi : add(c, v); 63377d62b00eSchristos } 63387d62b00eSchristos 63397d62b00eSchristos } 63407d62b00eSchristos 63417d62b00eSchristos namespace test_noexcept 63427d62b00eSchristos { 63437d62b00eSchristos 63447d62b00eSchristos int f() { return 0; } 63457d62b00eSchristos int g() noexcept { return 0; } 63467d62b00eSchristos 63477d62b00eSchristos static_assert(noexcept(f()) == false, ""); 63487d62b00eSchristos static_assert(noexcept(g()) == true, ""); 63497d62b00eSchristos 63507d62b00eSchristos } 63517d62b00eSchristos 63527d62b00eSchristos namespace test_constexpr 63537d62b00eSchristos { 63547d62b00eSchristos 63557d62b00eSchristos template < typename CharT > 63567d62b00eSchristos unsigned long constexpr 63577d62b00eSchristos strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 63587d62b00eSchristos { 63597d62b00eSchristos return *s ? strlen_c_r(s + 1, acc + 1) : acc; 63607d62b00eSchristos } 63617d62b00eSchristos 63627d62b00eSchristos template < typename CharT > 63637d62b00eSchristos unsigned long constexpr 63647d62b00eSchristos strlen_c(const CharT *const s) noexcept 63657d62b00eSchristos { 63667d62b00eSchristos return strlen_c_r(s, 0UL); 63677d62b00eSchristos } 63687d62b00eSchristos 63697d62b00eSchristos static_assert(strlen_c("") == 0UL, ""); 63707d62b00eSchristos static_assert(strlen_c("1") == 1UL, ""); 63717d62b00eSchristos static_assert(strlen_c("example") == 7UL, ""); 63727d62b00eSchristos static_assert(strlen_c("another\0example") == 7UL, ""); 63737d62b00eSchristos 63747d62b00eSchristos } 63757d62b00eSchristos 63767d62b00eSchristos namespace test_rvalue_references 63777d62b00eSchristos { 63787d62b00eSchristos 63797d62b00eSchristos template < int N > 63807d62b00eSchristos struct answer 63817d62b00eSchristos { 63827d62b00eSchristos static constexpr int value = N; 63837d62b00eSchristos }; 63847d62b00eSchristos 63857d62b00eSchristos answer<1> f(int&) { return answer<1>(); } 63867d62b00eSchristos answer<2> f(const int&) { return answer<2>(); } 63877d62b00eSchristos answer<3> f(int&&) { return answer<3>(); } 63887d62b00eSchristos 63897d62b00eSchristos void 63907d62b00eSchristos test() 63917d62b00eSchristos { 63927d62b00eSchristos int i = 0; 63937d62b00eSchristos const int c = 0; 63947d62b00eSchristos static_assert(decltype(f(i))::value == 1, ""); 63957d62b00eSchristos static_assert(decltype(f(c))::value == 2, ""); 63967d62b00eSchristos static_assert(decltype(f(0))::value == 3, ""); 63977d62b00eSchristos } 63987d62b00eSchristos 63997d62b00eSchristos } 64007d62b00eSchristos 64017d62b00eSchristos namespace test_uniform_initialization 64027d62b00eSchristos { 64037d62b00eSchristos 64047d62b00eSchristos struct test 64057d62b00eSchristos { 64067d62b00eSchristos static const int zero {}; 64077d62b00eSchristos static const int one {1}; 64087d62b00eSchristos }; 64097d62b00eSchristos 64107d62b00eSchristos static_assert(test::zero == 0, ""); 64117d62b00eSchristos static_assert(test::one == 1, ""); 64127d62b00eSchristos 64137d62b00eSchristos } 64147d62b00eSchristos 64157d62b00eSchristos namespace test_lambdas 64167d62b00eSchristos { 64177d62b00eSchristos 64187d62b00eSchristos void 64197d62b00eSchristos test1() 64207d62b00eSchristos { 64217d62b00eSchristos auto lambda1 = [](){}; 64227d62b00eSchristos auto lambda2 = lambda1; 64237d62b00eSchristos lambda1(); 64247d62b00eSchristos lambda2(); 64257d62b00eSchristos } 64267d62b00eSchristos 64277d62b00eSchristos int 64287d62b00eSchristos test2() 64297d62b00eSchristos { 64307d62b00eSchristos auto a = [](int i, int j){ return i + j; }(1, 2); 64317d62b00eSchristos auto b = []() -> int { return '0'; }(); 64327d62b00eSchristos auto c = [=](){ return a + b; }(); 64337d62b00eSchristos auto d = [&](){ return c; }(); 64347d62b00eSchristos auto e = [a, &b](int x) mutable { 64357d62b00eSchristos const auto identity = [](int y){ return y; }; 64367d62b00eSchristos for (auto i = 0; i < a; ++i) 64377d62b00eSchristos a += b--; 64387d62b00eSchristos return x + identity(a + b); 64397d62b00eSchristos }(0); 64407d62b00eSchristos return a + b + c + d + e; 64417d62b00eSchristos } 64427d62b00eSchristos 64437d62b00eSchristos int 64447d62b00eSchristos test3() 64457d62b00eSchristos { 64467d62b00eSchristos const auto nullary = [](){ return 0; }; 64477d62b00eSchristos const auto unary = [](int x){ return x; }; 64487d62b00eSchristos using nullary_t = decltype(nullary); 64497d62b00eSchristos using unary_t = decltype(unary); 64507d62b00eSchristos const auto higher1st = [](nullary_t f){ return f(); }; 64517d62b00eSchristos const auto higher2nd = [unary](nullary_t f1){ 64527d62b00eSchristos return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 64537d62b00eSchristos }; 64547d62b00eSchristos return higher1st(nullary) + higher2nd(nullary)(unary); 64557d62b00eSchristos } 64567d62b00eSchristos 64577d62b00eSchristos } 64587d62b00eSchristos 64597d62b00eSchristos namespace test_variadic_templates 64607d62b00eSchristos { 64617d62b00eSchristos 64627d62b00eSchristos template <int...> 64637d62b00eSchristos struct sum; 64647d62b00eSchristos 64657d62b00eSchristos template <int N0, int... N1toN> 64667d62b00eSchristos struct sum<N0, N1toN...> 64677d62b00eSchristos { 64687d62b00eSchristos static constexpr auto value = N0 + sum<N1toN...>::value; 64697d62b00eSchristos }; 64707d62b00eSchristos 64717d62b00eSchristos template <> 64727d62b00eSchristos struct sum<> 64737d62b00eSchristos { 64747d62b00eSchristos static constexpr auto value = 0; 64757d62b00eSchristos }; 64767d62b00eSchristos 64777d62b00eSchristos static_assert(sum<>::value == 0, ""); 64787d62b00eSchristos static_assert(sum<1>::value == 1, ""); 64797d62b00eSchristos static_assert(sum<23>::value == 23, ""); 64807d62b00eSchristos static_assert(sum<1, 2>::value == 3, ""); 64817d62b00eSchristos static_assert(sum<5, 5, 11>::value == 21, ""); 64827d62b00eSchristos static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 64837d62b00eSchristos 64847d62b00eSchristos } 64857d62b00eSchristos 64867d62b00eSchristos // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 64877d62b00eSchristos // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 64887d62b00eSchristos // because of this. 64897d62b00eSchristos namespace test_template_alias_sfinae 64907d62b00eSchristos { 64917d62b00eSchristos 64927d62b00eSchristos struct foo {}; 64937d62b00eSchristos 64947d62b00eSchristos template<typename T> 64957d62b00eSchristos using member = typename T::member_type; 64967d62b00eSchristos 64977d62b00eSchristos template<typename T> 64987d62b00eSchristos void func(...) {} 64997d62b00eSchristos 65007d62b00eSchristos template<typename T> 65017d62b00eSchristos void func(member<T>*) {} 65027d62b00eSchristos 65037d62b00eSchristos void test(); 65047d62b00eSchristos 65057d62b00eSchristos void test() { func<foo>(0); } 65067d62b00eSchristos 65077d62b00eSchristos } 65087d62b00eSchristos 65097d62b00eSchristos} // namespace cxx11 65107d62b00eSchristos 65117d62b00eSchristos#endif // __cplusplus >= 201103L 65127d62b00eSchristos 65137d62b00eSchristos 65147d62b00eSchristos 65157d62b00eSchristos_ACEOF 65167d62b00eSchristosif ac_fn_cxx_try_compile "$LINENO"; then : 65177d62b00eSchristos eval $cachevar=yes 65187d62b00eSchristoselse 65197d62b00eSchristos eval $cachevar=no 65207d62b00eSchristosfi 65217d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 65227d62b00eSchristos CXX="$ac_save_CXX" 65237d62b00eSchristosfi 65247d62b00eSchristoseval ac_res=\$$cachevar 65257d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 65267d62b00eSchristos$as_echo "$ac_res" >&6; } 65277d62b00eSchristos if eval test x\$$cachevar = xyes; then 65287d62b00eSchristos CXX_DIALECT="$switch" 6529*6881a400Schristos CXX="$CXX $switch" 6530*6881a400Schristos if test -n "$CXXCPP" ; then 6531*6881a400Schristos CXXCPP="$CXXCPP $switch" 6532*6881a400Schristos fi 65337d62b00eSchristos ac_success=yes 65347d62b00eSchristos break 65357d62b00eSchristos fi 65367d62b00eSchristos done 65377d62b00eSchristos fi 65387d62b00eSchristos 65397d62b00eSchristos if test x$ac_success = xno; then 65407d62b00eSchristos for alternative in ${ax_cxx_compile_alternatives}; do 65417d62b00eSchristos for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do 65427d62b00eSchristos cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 65437d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 65447d62b00eSchristos$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 65457d62b00eSchristosif eval \${$cachevar+:} false; then : 65467d62b00eSchristos $as_echo_n "(cached) " >&6 65477d62b00eSchristoselse 65487d62b00eSchristos ac_save_CXX="$CXX" 65497d62b00eSchristos CXX="$CXX $switch" 65507d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65517d62b00eSchristos/* end confdefs.h. */ 65527d62b00eSchristos 65537d62b00eSchristos 65547d62b00eSchristos// If the compiler admits that it is not ready for C++11, why torture it? 65557d62b00eSchristos// Hopefully, this will speed up the test. 65567d62b00eSchristos 65577d62b00eSchristos#ifndef __cplusplus 65587d62b00eSchristos 65597d62b00eSchristos#error "This is not a C++ compiler" 65607d62b00eSchristos 65617d62b00eSchristos#elif __cplusplus < 201103L 65627d62b00eSchristos 65637d62b00eSchristos#error "This is not a C++11 compiler" 65647d62b00eSchristos 65657d62b00eSchristos#else 65667d62b00eSchristos 65677d62b00eSchristosnamespace cxx11 65687d62b00eSchristos{ 65697d62b00eSchristos 65707d62b00eSchristos namespace test_static_assert 65717d62b00eSchristos { 65727d62b00eSchristos 65737d62b00eSchristos template <typename T> 65747d62b00eSchristos struct check 65757d62b00eSchristos { 65767d62b00eSchristos static_assert(sizeof(int) <= sizeof(T), "not big enough"); 65777d62b00eSchristos }; 65787d62b00eSchristos 65797d62b00eSchristos } 65807d62b00eSchristos 65817d62b00eSchristos namespace test_final_override 65827d62b00eSchristos { 65837d62b00eSchristos 65847d62b00eSchristos struct Base 65857d62b00eSchristos { 65867d62b00eSchristos virtual void f() {} 65877d62b00eSchristos }; 65887d62b00eSchristos 65897d62b00eSchristos struct Derived : public Base 65907d62b00eSchristos { 65917d62b00eSchristos virtual void f() override {} 65927d62b00eSchristos }; 65937d62b00eSchristos 65947d62b00eSchristos } 65957d62b00eSchristos 65967d62b00eSchristos namespace test_double_right_angle_brackets 65977d62b00eSchristos { 65987d62b00eSchristos 65997d62b00eSchristos template < typename T > 66007d62b00eSchristos struct check {}; 66017d62b00eSchristos 66027d62b00eSchristos typedef check<void> single_type; 66037d62b00eSchristos typedef check<check<void>> double_type; 66047d62b00eSchristos typedef check<check<check<void>>> triple_type; 66057d62b00eSchristos typedef check<check<check<check<void>>>> quadruple_type; 66067d62b00eSchristos 66077d62b00eSchristos } 66087d62b00eSchristos 66097d62b00eSchristos namespace test_decltype 66107d62b00eSchristos { 66117d62b00eSchristos 66127d62b00eSchristos int 66137d62b00eSchristos f() 66147d62b00eSchristos { 66157d62b00eSchristos int a = 1; 66167d62b00eSchristos decltype(a) b = 2; 66177d62b00eSchristos return a + b; 66187d62b00eSchristos } 66197d62b00eSchristos 66207d62b00eSchristos } 66217d62b00eSchristos 66227d62b00eSchristos namespace test_type_deduction 66237d62b00eSchristos { 66247d62b00eSchristos 66257d62b00eSchristos template < typename T1, typename T2 > 66267d62b00eSchristos struct is_same 66277d62b00eSchristos { 66287d62b00eSchristos static const bool value = false; 66297d62b00eSchristos }; 66307d62b00eSchristos 66317d62b00eSchristos template < typename T > 66327d62b00eSchristos struct is_same<T, T> 66337d62b00eSchristos { 66347d62b00eSchristos static const bool value = true; 66357d62b00eSchristos }; 66367d62b00eSchristos 66377d62b00eSchristos template < typename T1, typename T2 > 66387d62b00eSchristos auto 66397d62b00eSchristos add(T1 a1, T2 a2) -> decltype(a1 + a2) 66407d62b00eSchristos { 66417d62b00eSchristos return a1 + a2; 66427d62b00eSchristos } 66437d62b00eSchristos 66447d62b00eSchristos int 66457d62b00eSchristos test(const int c, volatile int v) 66467d62b00eSchristos { 66477d62b00eSchristos static_assert(is_same<int, decltype(0)>::value == true, ""); 66487d62b00eSchristos static_assert(is_same<int, decltype(c)>::value == false, ""); 66497d62b00eSchristos static_assert(is_same<int, decltype(v)>::value == false, ""); 66507d62b00eSchristos auto ac = c; 66517d62b00eSchristos auto av = v; 66527d62b00eSchristos auto sumi = ac + av + 'x'; 66537d62b00eSchristos auto sumf = ac + av + 1.0; 66547d62b00eSchristos static_assert(is_same<int, decltype(ac)>::value == true, ""); 66557d62b00eSchristos static_assert(is_same<int, decltype(av)>::value == true, ""); 66567d62b00eSchristos static_assert(is_same<int, decltype(sumi)>::value == true, ""); 66577d62b00eSchristos static_assert(is_same<int, decltype(sumf)>::value == false, ""); 66587d62b00eSchristos static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 66597d62b00eSchristos return (sumf > 0.0) ? sumi : add(c, v); 66607d62b00eSchristos } 66617d62b00eSchristos 66627d62b00eSchristos } 66637d62b00eSchristos 66647d62b00eSchristos namespace test_noexcept 66657d62b00eSchristos { 66667d62b00eSchristos 66677d62b00eSchristos int f() { return 0; } 66687d62b00eSchristos int g() noexcept { return 0; } 66697d62b00eSchristos 66707d62b00eSchristos static_assert(noexcept(f()) == false, ""); 66717d62b00eSchristos static_assert(noexcept(g()) == true, ""); 66727d62b00eSchristos 66737d62b00eSchristos } 66747d62b00eSchristos 66757d62b00eSchristos namespace test_constexpr 66767d62b00eSchristos { 66777d62b00eSchristos 66787d62b00eSchristos template < typename CharT > 66797d62b00eSchristos unsigned long constexpr 66807d62b00eSchristos strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 66817d62b00eSchristos { 66827d62b00eSchristos return *s ? strlen_c_r(s + 1, acc + 1) : acc; 66837d62b00eSchristos } 66847d62b00eSchristos 66857d62b00eSchristos template < typename CharT > 66867d62b00eSchristos unsigned long constexpr 66877d62b00eSchristos strlen_c(const CharT *const s) noexcept 66887d62b00eSchristos { 66897d62b00eSchristos return strlen_c_r(s, 0UL); 66907d62b00eSchristos } 66917d62b00eSchristos 66927d62b00eSchristos static_assert(strlen_c("") == 0UL, ""); 66937d62b00eSchristos static_assert(strlen_c("1") == 1UL, ""); 66947d62b00eSchristos static_assert(strlen_c("example") == 7UL, ""); 66957d62b00eSchristos static_assert(strlen_c("another\0example") == 7UL, ""); 66967d62b00eSchristos 66977d62b00eSchristos } 66987d62b00eSchristos 66997d62b00eSchristos namespace test_rvalue_references 67007d62b00eSchristos { 67017d62b00eSchristos 67027d62b00eSchristos template < int N > 67037d62b00eSchristos struct answer 67047d62b00eSchristos { 67057d62b00eSchristos static constexpr int value = N; 67067d62b00eSchristos }; 67077d62b00eSchristos 67087d62b00eSchristos answer<1> f(int&) { return answer<1>(); } 67097d62b00eSchristos answer<2> f(const int&) { return answer<2>(); } 67107d62b00eSchristos answer<3> f(int&&) { return answer<3>(); } 67117d62b00eSchristos 67127d62b00eSchristos void 67137d62b00eSchristos test() 67147d62b00eSchristos { 67157d62b00eSchristos int i = 0; 67167d62b00eSchristos const int c = 0; 67177d62b00eSchristos static_assert(decltype(f(i))::value == 1, ""); 67187d62b00eSchristos static_assert(decltype(f(c))::value == 2, ""); 67197d62b00eSchristos static_assert(decltype(f(0))::value == 3, ""); 67207d62b00eSchristos } 67217d62b00eSchristos 67227d62b00eSchristos } 67237d62b00eSchristos 67247d62b00eSchristos namespace test_uniform_initialization 67257d62b00eSchristos { 67267d62b00eSchristos 67277d62b00eSchristos struct test 67287d62b00eSchristos { 67297d62b00eSchristos static const int zero {}; 67307d62b00eSchristos static const int one {1}; 67317d62b00eSchristos }; 67327d62b00eSchristos 67337d62b00eSchristos static_assert(test::zero == 0, ""); 67347d62b00eSchristos static_assert(test::one == 1, ""); 67357d62b00eSchristos 67367d62b00eSchristos } 67377d62b00eSchristos 67387d62b00eSchristos namespace test_lambdas 67397d62b00eSchristos { 67407d62b00eSchristos 67417d62b00eSchristos void 67427d62b00eSchristos test1() 67437d62b00eSchristos { 67447d62b00eSchristos auto lambda1 = [](){}; 67457d62b00eSchristos auto lambda2 = lambda1; 67467d62b00eSchristos lambda1(); 67477d62b00eSchristos lambda2(); 67487d62b00eSchristos } 67497d62b00eSchristos 67507d62b00eSchristos int 67517d62b00eSchristos test2() 67527d62b00eSchristos { 67537d62b00eSchristos auto a = [](int i, int j){ return i + j; }(1, 2); 67547d62b00eSchristos auto b = []() -> int { return '0'; }(); 67557d62b00eSchristos auto c = [=](){ return a + b; }(); 67567d62b00eSchristos auto d = [&](){ return c; }(); 67577d62b00eSchristos auto e = [a, &b](int x) mutable { 67587d62b00eSchristos const auto identity = [](int y){ return y; }; 67597d62b00eSchristos for (auto i = 0; i < a; ++i) 67607d62b00eSchristos a += b--; 67617d62b00eSchristos return x + identity(a + b); 67627d62b00eSchristos }(0); 67637d62b00eSchristos return a + b + c + d + e; 67647d62b00eSchristos } 67657d62b00eSchristos 67667d62b00eSchristos int 67677d62b00eSchristos test3() 67687d62b00eSchristos { 67697d62b00eSchristos const auto nullary = [](){ return 0; }; 67707d62b00eSchristos const auto unary = [](int x){ return x; }; 67717d62b00eSchristos using nullary_t = decltype(nullary); 67727d62b00eSchristos using unary_t = decltype(unary); 67737d62b00eSchristos const auto higher1st = [](nullary_t f){ return f(); }; 67747d62b00eSchristos const auto higher2nd = [unary](nullary_t f1){ 67757d62b00eSchristos return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 67767d62b00eSchristos }; 67777d62b00eSchristos return higher1st(nullary) + higher2nd(nullary)(unary); 67787d62b00eSchristos } 67797d62b00eSchristos 67807d62b00eSchristos } 67817d62b00eSchristos 67827d62b00eSchristos namespace test_variadic_templates 67837d62b00eSchristos { 67847d62b00eSchristos 67857d62b00eSchristos template <int...> 67867d62b00eSchristos struct sum; 67877d62b00eSchristos 67887d62b00eSchristos template <int N0, int... N1toN> 67897d62b00eSchristos struct sum<N0, N1toN...> 67907d62b00eSchristos { 67917d62b00eSchristos static constexpr auto value = N0 + sum<N1toN...>::value; 67927d62b00eSchristos }; 67937d62b00eSchristos 67947d62b00eSchristos template <> 67957d62b00eSchristos struct sum<> 67967d62b00eSchristos { 67977d62b00eSchristos static constexpr auto value = 0; 67987d62b00eSchristos }; 67997d62b00eSchristos 68007d62b00eSchristos static_assert(sum<>::value == 0, ""); 68017d62b00eSchristos static_assert(sum<1>::value == 1, ""); 68027d62b00eSchristos static_assert(sum<23>::value == 23, ""); 68037d62b00eSchristos static_assert(sum<1, 2>::value == 3, ""); 68047d62b00eSchristos static_assert(sum<5, 5, 11>::value == 21, ""); 68057d62b00eSchristos static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 68067d62b00eSchristos 68077d62b00eSchristos } 68087d62b00eSchristos 68097d62b00eSchristos // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 68107d62b00eSchristos // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 68117d62b00eSchristos // because of this. 68127d62b00eSchristos namespace test_template_alias_sfinae 68137d62b00eSchristos { 68147d62b00eSchristos 68157d62b00eSchristos struct foo {}; 68167d62b00eSchristos 68177d62b00eSchristos template<typename T> 68187d62b00eSchristos using member = typename T::member_type; 68197d62b00eSchristos 68207d62b00eSchristos template<typename T> 68217d62b00eSchristos void func(...) {} 68227d62b00eSchristos 68237d62b00eSchristos template<typename T> 68247d62b00eSchristos void func(member<T>*) {} 68257d62b00eSchristos 68267d62b00eSchristos void test(); 68277d62b00eSchristos 68287d62b00eSchristos void test() { func<foo>(0); } 68297d62b00eSchristos 68307d62b00eSchristos } 68317d62b00eSchristos 68327d62b00eSchristos} // namespace cxx11 68337d62b00eSchristos 68347d62b00eSchristos#endif // __cplusplus >= 201103L 68357d62b00eSchristos 68367d62b00eSchristos 68377d62b00eSchristos 68387d62b00eSchristos_ACEOF 68397d62b00eSchristosif ac_fn_cxx_try_compile "$LINENO"; then : 68407d62b00eSchristos eval $cachevar=yes 68417d62b00eSchristoselse 68427d62b00eSchristos eval $cachevar=no 68437d62b00eSchristosfi 68447d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 68457d62b00eSchristos CXX="$ac_save_CXX" 68467d62b00eSchristosfi 68477d62b00eSchristoseval ac_res=\$$cachevar 68487d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 68497d62b00eSchristos$as_echo "$ac_res" >&6; } 68507d62b00eSchristos if eval test x\$$cachevar = xyes; then 68517d62b00eSchristos CXX_DIALECT="$switch" 6852*6881a400Schristos CXX="$CXX $switch" 6853*6881a400Schristos if test -n "$CXXCPP" ; then 6854*6881a400Schristos CXXCPP="$CXXCPP $switch" 6855*6881a400Schristos fi 68567d62b00eSchristos ac_success=yes 68577d62b00eSchristos break 68587d62b00eSchristos fi 68597d62b00eSchristos done 68607d62b00eSchristos if test x$ac_success = xyes; then 68617d62b00eSchristos break 68627d62b00eSchristos fi 68637d62b00eSchristos done 68647d62b00eSchristos fi 68657d62b00eSchristos ac_ext=c 68667d62b00eSchristosac_cpp='$CPP $CPPFLAGS' 68677d62b00eSchristosac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 68687d62b00eSchristosac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 68697d62b00eSchristosac_compiler_gnu=$ac_cv_c_compiler_gnu 68707d62b00eSchristos 68717d62b00eSchristos if test x$ax_cxx_compile_cxx11_required = xtrue; then 68727d62b00eSchristos if test x$ac_success = xno; then 68737d62b00eSchristos as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 68747d62b00eSchristos fi 68757d62b00eSchristos fi 68767d62b00eSchristos if test x$ac_success = xno; then 68777d62b00eSchristos HAVE_CXX11=0 68787d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 68797d62b00eSchristos$as_echo "$as_me: No compiler with C++11 support was found" >&6;} 68807d62b00eSchristos else 68817d62b00eSchristos HAVE_CXX11=1 68827d62b00eSchristos 68837d62b00eSchristos$as_echo "#define HAVE_CXX11 1" >>confdefs.h 68847d62b00eSchristos 68857d62b00eSchristos fi 68867d62b00eSchristos 68877d62b00eSchristos 68887d62b00eSchristos 68897d62b00eSchristos 68907d62b00eSchristos# If we haven't got the data from the intl directory, 68917d62b00eSchristos# assume NLS is disabled. 68927d62b00eSchristosUSE_NLS=no 68937d62b00eSchristosLIBINTL= 68947d62b00eSchristosLIBINTL_DEP= 68957d62b00eSchristosINCINTL= 68967d62b00eSchristosXGETTEXT= 68977d62b00eSchristosGMSGFMT= 68987d62b00eSchristosPOSUB= 68997d62b00eSchristos 69007d62b00eSchristosif test -f ../intl/config.intl; then 69017d62b00eSchristos . ../intl/config.intl 69027d62b00eSchristosfi 69037d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 69047d62b00eSchristos$as_echo_n "checking whether NLS is requested... " >&6; } 69057d62b00eSchristosif test x"$USE_NLS" != xyes; then 69067d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 69077d62b00eSchristos$as_echo "no" >&6; } 69087d62b00eSchristoselse 69097d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 69107d62b00eSchristos$as_echo "yes" >&6; } 69117d62b00eSchristos 69127d62b00eSchristos$as_echo "#define ENABLE_NLS 1" >>confdefs.h 69137d62b00eSchristos 69147d62b00eSchristos 69157d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 69167d62b00eSchristos$as_echo_n "checking for catalogs to be installed... " >&6; } 69177d62b00eSchristos # Look for .po and .gmo files in the source directory. 69187d62b00eSchristos CATALOGS= 69197d62b00eSchristos XLINGUAS= 69207d62b00eSchristos for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 69217d62b00eSchristos # If there aren't any .gmo files the shell will give us the 69227d62b00eSchristos # literal string "../path/to/srcdir/po/*.gmo" which has to be 69237d62b00eSchristos # weeded out. 69247d62b00eSchristos case "$cat" in *\**) 69257d62b00eSchristos continue;; 69267d62b00eSchristos esac 69277d62b00eSchristos # The quadruple backslash is collapsed to a double backslash 69287d62b00eSchristos # by the backticks, then collapsed again by the double quotes, 69297d62b00eSchristos # leaving us with one backslash in the sed expression (right 69307d62b00eSchristos # before the dot that mustn't act as a wildcard). 69317d62b00eSchristos cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 69327d62b00eSchristos lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 69337d62b00eSchristos # The user is allowed to set LINGUAS to a list of languages to 69347d62b00eSchristos # install catalogs for. If it's empty that means "all of them." 69357d62b00eSchristos if test "x$LINGUAS" = x; then 69367d62b00eSchristos CATALOGS="$CATALOGS $cat" 69377d62b00eSchristos XLINGUAS="$XLINGUAS $lang" 69387d62b00eSchristos else 69397d62b00eSchristos case "$LINGUAS" in *$lang*) 69407d62b00eSchristos CATALOGS="$CATALOGS $cat" 69417d62b00eSchristos XLINGUAS="$XLINGUAS $lang" 69427d62b00eSchristos ;; 69437d62b00eSchristos esac 69447d62b00eSchristos fi 69457d62b00eSchristos done 69467d62b00eSchristos LINGUAS="$XLINGUAS" 69477d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 69487d62b00eSchristos$as_echo "$LINGUAS" >&6; } 69497d62b00eSchristos 69507d62b00eSchristos 69517d62b00eSchristos DATADIRNAME=share 69527d62b00eSchristos 69537d62b00eSchristos INSTOBJEXT=.mo 69547d62b00eSchristos 69557d62b00eSchristos GENCAT=gencat 69567d62b00eSchristos 69577d62b00eSchristos CATOBJEXT=.gmo 69587d62b00eSchristos 69597d62b00eSchristosfi 69607d62b00eSchristos 69617d62b00eSchristos 69627d62b00eSchristos # Check for presence and size of long long. 69637d62b00eSchristos ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 69647d62b00eSchristosif test "x$ac_cv_type_long_long" = xyes; then : 69657d62b00eSchristos 69667d62b00eSchristoscat >>confdefs.h <<_ACEOF 69677d62b00eSchristos#define HAVE_LONG_LONG 1 69687d62b00eSchristos_ACEOF 69697d62b00eSchristos 69707d62b00eSchristos# The cast to long int works around a bug in the HP C Compiler 69717d62b00eSchristos# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 69727d62b00eSchristos# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 69737d62b00eSchristos# This bug is HP SR number 8606223364. 69747d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 69757d62b00eSchristos$as_echo_n "checking size of long long... " >&6; } 69767d62b00eSchristosif ${ac_cv_sizeof_long_long+:} false; then : 69777d62b00eSchristos $as_echo_n "(cached) " >&6 69787d62b00eSchristoselse 69797d62b00eSchristos if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 69807d62b00eSchristos 69817d62b00eSchristoselse 69827d62b00eSchristos if test "$ac_cv_type_long_long" = yes; then 69837d62b00eSchristos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 69847d62b00eSchristos$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 69857d62b00eSchristosas_fn_error 77 "cannot compute sizeof (long long) 69867d62b00eSchristosSee \`config.log' for more details" "$LINENO" 5; } 69877d62b00eSchristos else 69887d62b00eSchristos ac_cv_sizeof_long_long=0 69897d62b00eSchristos fi 69907d62b00eSchristosfi 69917d62b00eSchristos 69927d62b00eSchristosfi 69937d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 69947d62b00eSchristos$as_echo "$ac_cv_sizeof_long_long" >&6; } 69957d62b00eSchristos 69967d62b00eSchristos 69977d62b00eSchristos 69987d62b00eSchristoscat >>confdefs.h <<_ACEOF 69997d62b00eSchristos#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 70007d62b00eSchristos_ACEOF 70017d62b00eSchristos 70027d62b00eSchristos 70037d62b00eSchristosfi 70047d62b00eSchristos 70057d62b00eSchristos 70067d62b00eSchristos as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh` 70077d62b00eSchristosac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default" 70087d62b00eSchristosif eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : 70097d62b00eSchristos ac_have_decl=1 70107d62b00eSchristoselse 70117d62b00eSchristos ac_have_decl=0 70127d62b00eSchristosfi 70137d62b00eSchristos 70147d62b00eSchristoscat >>confdefs.h <<_ACEOF 70157d62b00eSchristos#define HAVE_DECL_BASENAME $ac_have_decl 70167d62b00eSchristos_ACEOF 70177d62b00eSchristosac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" 70187d62b00eSchristosif test "x$ac_cv_have_decl_ffs" = xyes; then : 70197d62b00eSchristos ac_have_decl=1 70207d62b00eSchristoselse 70217d62b00eSchristos ac_have_decl=0 70227d62b00eSchristosfi 70237d62b00eSchristos 70247d62b00eSchristoscat >>confdefs.h <<_ACEOF 70257d62b00eSchristos#define HAVE_DECL_FFS $ac_have_decl 70267d62b00eSchristos_ACEOF 70277d62b00eSchristosac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" 70287d62b00eSchristosif test "x$ac_cv_have_decl_asprintf" = xyes; then : 70297d62b00eSchristos ac_have_decl=1 70307d62b00eSchristoselse 70317d62b00eSchristos ac_have_decl=0 70327d62b00eSchristosfi 70337d62b00eSchristos 70347d62b00eSchristoscat >>confdefs.h <<_ACEOF 70357d62b00eSchristos#define HAVE_DECL_ASPRINTF $ac_have_decl 70367d62b00eSchristos_ACEOF 70377d62b00eSchristosac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" 70387d62b00eSchristosif test "x$ac_cv_have_decl_vasprintf" = xyes; then : 70397d62b00eSchristos ac_have_decl=1 70407d62b00eSchristoselse 70417d62b00eSchristos ac_have_decl=0 70427d62b00eSchristosfi 70437d62b00eSchristos 70447d62b00eSchristoscat >>confdefs.h <<_ACEOF 70457d62b00eSchristos#define HAVE_DECL_VASPRINTF $ac_have_decl 70467d62b00eSchristos_ACEOF 70477d62b00eSchristosac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" 70487d62b00eSchristosif test "x$ac_cv_have_decl_snprintf" = xyes; then : 70497d62b00eSchristos ac_have_decl=1 70507d62b00eSchristoselse 70517d62b00eSchristos ac_have_decl=0 70527d62b00eSchristosfi 70537d62b00eSchristos 70547d62b00eSchristoscat >>confdefs.h <<_ACEOF 70557d62b00eSchristos#define HAVE_DECL_SNPRINTF $ac_have_decl 70567d62b00eSchristos_ACEOF 70577d62b00eSchristosac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" 70587d62b00eSchristosif test "x$ac_cv_have_decl_vsnprintf" = xyes; then : 70597d62b00eSchristos ac_have_decl=1 70607d62b00eSchristoselse 70617d62b00eSchristos ac_have_decl=0 70627d62b00eSchristosfi 70637d62b00eSchristos 70647d62b00eSchristoscat >>confdefs.h <<_ACEOF 70657d62b00eSchristos#define HAVE_DECL_VSNPRINTF $ac_have_decl 70667d62b00eSchristos_ACEOF 70677d62b00eSchristos 70687d62b00eSchristos ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default" 70697d62b00eSchristosif test "x$ac_cv_have_decl_strtol" = xyes; then : 70707d62b00eSchristos ac_have_decl=1 70717d62b00eSchristoselse 70727d62b00eSchristos ac_have_decl=0 70737d62b00eSchristosfi 70747d62b00eSchristos 70757d62b00eSchristoscat >>confdefs.h <<_ACEOF 70767d62b00eSchristos#define HAVE_DECL_STRTOL $ac_have_decl 70777d62b00eSchristos_ACEOF 70787d62b00eSchristosac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default" 70797d62b00eSchristosif test "x$ac_cv_have_decl_strtoul" = xyes; then : 70807d62b00eSchristos ac_have_decl=1 70817d62b00eSchristoselse 70827d62b00eSchristos ac_have_decl=0 70837d62b00eSchristosfi 70847d62b00eSchristos 70857d62b00eSchristoscat >>confdefs.h <<_ACEOF 70867d62b00eSchristos#define HAVE_DECL_STRTOUL $ac_have_decl 70877d62b00eSchristos_ACEOF 70887d62b00eSchristosac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default" 70897d62b00eSchristosif test "x$ac_cv_have_decl_strtoll" = xyes; then : 70907d62b00eSchristos ac_have_decl=1 70917d62b00eSchristoselse 70927d62b00eSchristos ac_have_decl=0 70937d62b00eSchristosfi 70947d62b00eSchristos 70957d62b00eSchristoscat >>confdefs.h <<_ACEOF 70967d62b00eSchristos#define HAVE_DECL_STRTOLL $ac_have_decl 70977d62b00eSchristos_ACEOF 70987d62b00eSchristosac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default" 70997d62b00eSchristosif test "x$ac_cv_have_decl_strtoull" = xyes; then : 71007d62b00eSchristos ac_have_decl=1 71017d62b00eSchristoselse 71027d62b00eSchristos ac_have_decl=0 71037d62b00eSchristosfi 71047d62b00eSchristos 71057d62b00eSchristoscat >>confdefs.h <<_ACEOF 71067d62b00eSchristos#define HAVE_DECL_STRTOULL $ac_have_decl 71077d62b00eSchristos_ACEOF 71087d62b00eSchristos 71097d62b00eSchristos ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" 71107d62b00eSchristosif test "x$ac_cv_have_decl_strverscmp" = xyes; then : 71117d62b00eSchristos ac_have_decl=1 71127d62b00eSchristoselse 71137d62b00eSchristos ac_have_decl=0 71147d62b00eSchristosfi 71157d62b00eSchristos 71167d62b00eSchristoscat >>confdefs.h <<_ACEOF 71177d62b00eSchristos#define HAVE_DECL_STRVERSCMP $ac_have_decl 71187d62b00eSchristos_ACEOF 71197d62b00eSchristos 71207d62b00eSchristos 71217d62b00eSchristosac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 71227d62b00eSchristosif test "x$ac_cv_type_size_t" = xyes; then : 71237d62b00eSchristos 71247d62b00eSchristoselse 71257d62b00eSchristos 71267d62b00eSchristoscat >>confdefs.h <<_ACEOF 71277d62b00eSchristos#define size_t unsigned int 71287d62b00eSchristos_ACEOF 71297d62b00eSchristos 71307d62b00eSchristosfi 71317d62b00eSchristos 71327d62b00eSchristos 71337d62b00eSchristos 71347d62b00eSchristos 71357d62b00eSchristos for ac_header in $ac_header_list 71367d62b00eSchristosdo : 71377d62b00eSchristos as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 71387d62b00eSchristosac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 71397d62b00eSchristos" 71407d62b00eSchristosif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 71417d62b00eSchristos cat >>confdefs.h <<_ACEOF 71427d62b00eSchristos#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 71437d62b00eSchristos_ACEOF 71447d62b00eSchristos 71457d62b00eSchristosfi 71467d62b00eSchristos 71477d62b00eSchristosdone 71487d62b00eSchristos 71497d62b00eSchristos 71507d62b00eSchristos 71517d62b00eSchristos 71527d62b00eSchristos 71537d62b00eSchristos 71547d62b00eSchristos 71557d62b00eSchristosac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 71567d62b00eSchristosif test "x$ac_cv_type_pid_t" = xyes; then : 71577d62b00eSchristos 71587d62b00eSchristoselse 71597d62b00eSchristos 71607d62b00eSchristoscat >>confdefs.h <<_ACEOF 71617d62b00eSchristos#define pid_t int 71627d62b00eSchristos_ACEOF 71637d62b00eSchristos 71647d62b00eSchristosfi 71657d62b00eSchristos 71667d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 71677d62b00eSchristos$as_echo_n "checking for a sed that does not truncate output... " >&6; } 71687d62b00eSchristosif ${ac_cv_path_SED+:} false; then : 71697d62b00eSchristos $as_echo_n "(cached) " >&6 71707d62b00eSchristoselse 71717d62b00eSchristos ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 71727d62b00eSchristos for ac_i in 1 2 3 4 5 6 7; do 71737d62b00eSchristos ac_script="$ac_script$as_nl$ac_script" 71747d62b00eSchristos done 71757d62b00eSchristos echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 71767d62b00eSchristos { ac_script=; unset ac_script;} 71777d62b00eSchristos if test -z "$SED"; then 71787d62b00eSchristos ac_path_SED_found=false 71797d62b00eSchristos # Loop through the user's path and test for each of PROGNAME-LIST 71807d62b00eSchristos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 71817d62b00eSchristosfor as_dir in $PATH 71827d62b00eSchristosdo 71837d62b00eSchristos IFS=$as_save_IFS 71847d62b00eSchristos test -z "$as_dir" && as_dir=. 71857d62b00eSchristos for ac_prog in sed gsed; do 71867d62b00eSchristos for ac_exec_ext in '' $ac_executable_extensions; do 71877d62b00eSchristos ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 71887d62b00eSchristos as_fn_executable_p "$ac_path_SED" || continue 71897d62b00eSchristos# Check for GNU ac_path_SED and select it if it is found. 71907d62b00eSchristos # Check for GNU $ac_path_SED 71917d62b00eSchristoscase `"$ac_path_SED" --version 2>&1` in 71927d62b00eSchristos*GNU*) 71937d62b00eSchristos ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 71947d62b00eSchristos*) 71957d62b00eSchristos ac_count=0 71967d62b00eSchristos $as_echo_n 0123456789 >"conftest.in" 71977d62b00eSchristos while : 71987d62b00eSchristos do 71997d62b00eSchristos cat "conftest.in" "conftest.in" >"conftest.tmp" 72007d62b00eSchristos mv "conftest.tmp" "conftest.in" 72017d62b00eSchristos cp "conftest.in" "conftest.nl" 72027d62b00eSchristos $as_echo '' >> "conftest.nl" 72037d62b00eSchristos "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 72047d62b00eSchristos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 72057d62b00eSchristos as_fn_arith $ac_count + 1 && ac_count=$as_val 72067d62b00eSchristos if test $ac_count -gt ${ac_path_SED_max-0}; then 72077d62b00eSchristos # Best one so far, save it but keep looking for a better one 72087d62b00eSchristos ac_cv_path_SED="$ac_path_SED" 72097d62b00eSchristos ac_path_SED_max=$ac_count 72107d62b00eSchristos fi 72117d62b00eSchristos # 10*(2^10) chars as input seems more than enough 72127d62b00eSchristos test $ac_count -gt 10 && break 72137d62b00eSchristos done 72147d62b00eSchristos rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 72157d62b00eSchristosesac 72167d62b00eSchristos 72177d62b00eSchristos $ac_path_SED_found && break 3 72187d62b00eSchristos done 72197d62b00eSchristos done 72207d62b00eSchristos done 72217d62b00eSchristosIFS=$as_save_IFS 72227d62b00eSchristos if test -z "$ac_cv_path_SED"; then 72237d62b00eSchristos as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 72247d62b00eSchristos fi 72257d62b00eSchristoselse 72267d62b00eSchristos ac_cv_path_SED=$SED 72277d62b00eSchristosfi 72287d62b00eSchristos 72297d62b00eSchristosfi 72307d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 72317d62b00eSchristos$as_echo "$ac_cv_path_SED" >&6; } 72327d62b00eSchristos SED="$ac_cv_path_SED" 72337d62b00eSchristos rm -f conftest.sed 72347d62b00eSchristos 72357d62b00eSchristos 72367d62b00eSchristos if test "X$prefix" = "XNONE"; then 72377d62b00eSchristos acl_final_prefix="$ac_default_prefix" 72387d62b00eSchristos else 72397d62b00eSchristos acl_final_prefix="$prefix" 72407d62b00eSchristos fi 72417d62b00eSchristos if test "X$exec_prefix" = "XNONE"; then 72427d62b00eSchristos acl_final_exec_prefix='${prefix}' 72437d62b00eSchristos else 72447d62b00eSchristos acl_final_exec_prefix="$exec_prefix" 72457d62b00eSchristos fi 72467d62b00eSchristos acl_save_prefix="$prefix" 72477d62b00eSchristos prefix="$acl_final_prefix" 72487d62b00eSchristos eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 72497d62b00eSchristos prefix="$acl_save_prefix" 72507d62b00eSchristos 72517d62b00eSchristos 72527d62b00eSchristos# Check whether --with-gnu-ld was given. 72537d62b00eSchristosif test "${with_gnu_ld+set}" = set; then : 72547d62b00eSchristos withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 72557d62b00eSchristoselse 72567d62b00eSchristos with_gnu_ld=no 72577d62b00eSchristosfi 72587d62b00eSchristos 72597d62b00eSchristos# Prepare PATH_SEPARATOR. 72607d62b00eSchristos# The user is always right. 72617d62b00eSchristosif test "${PATH_SEPARATOR+set}" != set; then 72627d62b00eSchristos echo "#! /bin/sh" >conf$$.sh 72637d62b00eSchristos echo "exit 0" >>conf$$.sh 72647d62b00eSchristos chmod +x conf$$.sh 72657d62b00eSchristos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 72667d62b00eSchristos PATH_SEPARATOR=';' 72677d62b00eSchristos else 72687d62b00eSchristos PATH_SEPARATOR=: 72697d62b00eSchristos fi 72707d62b00eSchristos rm -f conf$$.sh 72717d62b00eSchristosfi 72727d62b00eSchristosac_prog=ld 72737d62b00eSchristosif test "$GCC" = yes; then 72747d62b00eSchristos # Check if gcc -print-prog-name=ld gives a path. 72757d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 72767d62b00eSchristos$as_echo_n "checking for ld used by GCC... " >&6; } 72777d62b00eSchristos case $host in 72787d62b00eSchristos *-*-mingw*) 72797d62b00eSchristos # gcc leaves a trailing carriage return which upsets mingw 72807d62b00eSchristos ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 72817d62b00eSchristos *) 72827d62b00eSchristos ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 72837d62b00eSchristos esac 72847d62b00eSchristos case $ac_prog in 72857d62b00eSchristos # Accept absolute paths. 72867d62b00eSchristos [\\/]* | [A-Za-z]:[\\/]*) 72877d62b00eSchristos re_direlt='/[^/][^/]*/\.\./' 72887d62b00eSchristos # Canonicalize the path of ld 72897d62b00eSchristos ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 72907d62b00eSchristos while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 72917d62b00eSchristos ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 72927d62b00eSchristos done 72937d62b00eSchristos test -z "$LD" && LD="$ac_prog" 72947d62b00eSchristos ;; 72957d62b00eSchristos "") 72967d62b00eSchristos # If it fails, then pretend we aren't using GCC. 72977d62b00eSchristos ac_prog=ld 72987d62b00eSchristos ;; 72997d62b00eSchristos *) 73007d62b00eSchristos # If it is relative, then search for the first ld in PATH. 73017d62b00eSchristos with_gnu_ld=unknown 73027d62b00eSchristos ;; 73037d62b00eSchristos esac 73047d62b00eSchristoselif test "$with_gnu_ld" = yes; then 73057d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 73067d62b00eSchristos$as_echo_n "checking for GNU ld... " >&6; } 73077d62b00eSchristoselse 73087d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 73097d62b00eSchristos$as_echo_n "checking for non-GNU ld... " >&6; } 73107d62b00eSchristosfi 73117d62b00eSchristosif ${acl_cv_path_LD+:} false; then : 73127d62b00eSchristos $as_echo_n "(cached) " >&6 73137d62b00eSchristoselse 73147d62b00eSchristos if test -z "$LD"; then 73157d62b00eSchristos IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 73167d62b00eSchristos for ac_dir in $PATH; do 73177d62b00eSchristos test -z "$ac_dir" && ac_dir=. 73187d62b00eSchristos if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 73197d62b00eSchristos acl_cv_path_LD="$ac_dir/$ac_prog" 73207d62b00eSchristos # Check to see if the program is GNU ld. I'd rather use --version, 73217d62b00eSchristos # but apparently some GNU ld's only accept -v. 73227d62b00eSchristos # Break only if it was the GNU/non-GNU ld that we prefer. 7323*6881a400Schristos if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then 73247d62b00eSchristos test "$with_gnu_ld" != no && break 73257d62b00eSchristos else 73267d62b00eSchristos test "$with_gnu_ld" != yes && break 73277d62b00eSchristos fi 73287d62b00eSchristos fi 73297d62b00eSchristos done 73307d62b00eSchristos IFS="$ac_save_ifs" 73317d62b00eSchristoselse 73327d62b00eSchristos acl_cv_path_LD="$LD" # Let the user override the test with a path. 73337d62b00eSchristosfi 73347d62b00eSchristosfi 73357d62b00eSchristos 73367d62b00eSchristosLD="$acl_cv_path_LD" 73377d62b00eSchristosif test -n "$LD"; then 73387d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 73397d62b00eSchristos$as_echo "$LD" >&6; } 73407d62b00eSchristoselse 73417d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 73427d62b00eSchristos$as_echo "no" >&6; } 73437d62b00eSchristosfi 73447d62b00eSchristostest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 73457d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 73467d62b00eSchristos$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 73477d62b00eSchristosif ${acl_cv_prog_gnu_ld+:} false; then : 73487d62b00eSchristos $as_echo_n "(cached) " >&6 73497d62b00eSchristoselse 73507d62b00eSchristos # I'd rather use --version here, but apparently some GNU ld's only accept -v. 7351*6881a400Schristosif $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then 73527d62b00eSchristos acl_cv_prog_gnu_ld=yes 73537d62b00eSchristoselse 73547d62b00eSchristos acl_cv_prog_gnu_ld=no 73557d62b00eSchristosfi 73567d62b00eSchristosfi 73577d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 73587d62b00eSchristos$as_echo "$acl_cv_prog_gnu_ld" >&6; } 73597d62b00eSchristoswith_gnu_ld=$acl_cv_prog_gnu_ld 73607d62b00eSchristos 73617d62b00eSchristos 73627d62b00eSchristos 73637d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 73647d62b00eSchristos$as_echo_n "checking for shared library run path origin... " >&6; } 73657d62b00eSchristosif ${acl_cv_rpath+:} false; then : 73667d62b00eSchristos $as_echo_n "(cached) " >&6 73677d62b00eSchristoselse 73687d62b00eSchristos 73697d62b00eSchristos CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 73707d62b00eSchristos ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 73717d62b00eSchristos . ./conftest.sh 73727d62b00eSchristos rm -f ./conftest.sh 73737d62b00eSchristos acl_cv_rpath=done 73747d62b00eSchristos 73757d62b00eSchristosfi 73767d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 73777d62b00eSchristos$as_echo "$acl_cv_rpath" >&6; } 73787d62b00eSchristos wl="$acl_cv_wl" 73797d62b00eSchristos libext="$acl_cv_libext" 73807d62b00eSchristos shlibext="$acl_cv_shlibext" 73817d62b00eSchristos hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 73827d62b00eSchristos hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 73837d62b00eSchristos hardcode_direct="$acl_cv_hardcode_direct" 73847d62b00eSchristos hardcode_minus_L="$acl_cv_hardcode_minus_L" 73857d62b00eSchristos # Check whether --enable-rpath was given. 73867d62b00eSchristosif test "${enable_rpath+set}" = set; then : 73877d62b00eSchristos enableval=$enable_rpath; : 73887d62b00eSchristoselse 73897d62b00eSchristos enable_rpath=yes 73907d62b00eSchristosfi 73917d62b00eSchristos 73927d62b00eSchristos 73937d62b00eSchristos 73947d62b00eSchristos # Set the 'development' global. 73957d62b00eSchristos . $srcdir/../bfd/development.sh 73967d62b00eSchristos 73977d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 73987d62b00eSchristos$as_echo_n "checking for ANSI C header files... " >&6; } 73997d62b00eSchristosif ${ac_cv_header_stdc+:} false; then : 74007d62b00eSchristos $as_echo_n "(cached) " >&6 74017d62b00eSchristoselse 74027d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 74037d62b00eSchristos/* end confdefs.h. */ 74047d62b00eSchristos#include <stdlib.h> 74057d62b00eSchristos#include <stdarg.h> 74067d62b00eSchristos#include <string.h> 74077d62b00eSchristos#include <float.h> 74087d62b00eSchristos 74097d62b00eSchristosint 74107d62b00eSchristosmain () 74117d62b00eSchristos{ 74127d62b00eSchristos 74137d62b00eSchristos ; 74147d62b00eSchristos return 0; 74157d62b00eSchristos} 74167d62b00eSchristos_ACEOF 74177d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 74187d62b00eSchristos ac_cv_header_stdc=yes 74197d62b00eSchristoselse 74207d62b00eSchristos ac_cv_header_stdc=no 74217d62b00eSchristosfi 74227d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 74237d62b00eSchristos 74247d62b00eSchristosif test $ac_cv_header_stdc = yes; then 74257d62b00eSchristos # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 74267d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 74277d62b00eSchristos/* end confdefs.h. */ 74287d62b00eSchristos#include <string.h> 74297d62b00eSchristos 74307d62b00eSchristos_ACEOF 74317d62b00eSchristosif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 74327d62b00eSchristos $EGREP "memchr" >/dev/null 2>&1; then : 74337d62b00eSchristos 74347d62b00eSchristoselse 74357d62b00eSchristos ac_cv_header_stdc=no 74367d62b00eSchristosfi 74377d62b00eSchristosrm -f conftest* 74387d62b00eSchristos 74397d62b00eSchristosfi 74407d62b00eSchristos 74417d62b00eSchristosif test $ac_cv_header_stdc = yes; then 74427d62b00eSchristos # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 74437d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 74447d62b00eSchristos/* end confdefs.h. */ 74457d62b00eSchristos#include <stdlib.h> 74467d62b00eSchristos 74477d62b00eSchristos_ACEOF 74487d62b00eSchristosif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 74497d62b00eSchristos $EGREP "free" >/dev/null 2>&1; then : 74507d62b00eSchristos 74517d62b00eSchristoselse 74527d62b00eSchristos ac_cv_header_stdc=no 74537d62b00eSchristosfi 74547d62b00eSchristosrm -f conftest* 74557d62b00eSchristos 74567d62b00eSchristosfi 74577d62b00eSchristos 74587d62b00eSchristosif test $ac_cv_header_stdc = yes; then 74597d62b00eSchristos # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 74607d62b00eSchristos if test "$cross_compiling" = yes; then : 74617d62b00eSchristos : 74627d62b00eSchristoselse 74637d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 74647d62b00eSchristos/* end confdefs.h. */ 74657d62b00eSchristos#include <ctype.h> 74667d62b00eSchristos#include <stdlib.h> 74677d62b00eSchristos#if ((' ' & 0x0FF) == 0x020) 74687d62b00eSchristos# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 74697d62b00eSchristos# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 74707d62b00eSchristos#else 74717d62b00eSchristos# define ISLOWER(c) \ 74727d62b00eSchristos (('a' <= (c) && (c) <= 'i') \ 74737d62b00eSchristos || ('j' <= (c) && (c) <= 'r') \ 74747d62b00eSchristos || ('s' <= (c) && (c) <= 'z')) 74757d62b00eSchristos# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 74767d62b00eSchristos#endif 74777d62b00eSchristos 74787d62b00eSchristos#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 74797d62b00eSchristosint 74807d62b00eSchristosmain () 74817d62b00eSchristos{ 74827d62b00eSchristos int i; 74837d62b00eSchristos for (i = 0; i < 256; i++) 74847d62b00eSchristos if (XOR (islower (i), ISLOWER (i)) 74857d62b00eSchristos || toupper (i) != TOUPPER (i)) 74867d62b00eSchristos return 2; 74877d62b00eSchristos return 0; 74887d62b00eSchristos} 74897d62b00eSchristos_ACEOF 74907d62b00eSchristosif ac_fn_c_try_run "$LINENO"; then : 74917d62b00eSchristos 74927d62b00eSchristoselse 74937d62b00eSchristos ac_cv_header_stdc=no 74947d62b00eSchristosfi 74957d62b00eSchristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 74967d62b00eSchristos conftest.$ac_objext conftest.beam conftest.$ac_ext 74977d62b00eSchristosfi 74987d62b00eSchristos 74997d62b00eSchristosfi 75007d62b00eSchristosfi 75017d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 75027d62b00eSchristos$as_echo "$ac_cv_header_stdc" >&6; } 75037d62b00eSchristosif test $ac_cv_header_stdc = yes; then 75047d62b00eSchristos 75057d62b00eSchristos$as_echo "#define STDC_HEADERS 1" >>confdefs.h 75067d62b00eSchristos 75077d62b00eSchristosfi 75087d62b00eSchristos 75097d62b00eSchristos # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 75107d62b00eSchristos# for constant arguments. Useless! 75117d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 75127d62b00eSchristos$as_echo_n "checking for working alloca.h... " >&6; } 75137d62b00eSchristosif ${ac_cv_working_alloca_h+:} false; then : 75147d62b00eSchristos $as_echo_n "(cached) " >&6 75157d62b00eSchristoselse 75167d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75177d62b00eSchristos/* end confdefs.h. */ 75187d62b00eSchristos#include <alloca.h> 75197d62b00eSchristosint 75207d62b00eSchristosmain () 75217d62b00eSchristos{ 75227d62b00eSchristoschar *p = (char *) alloca (2 * sizeof (int)); 75237d62b00eSchristos if (p) return 0; 75247d62b00eSchristos ; 75257d62b00eSchristos return 0; 75267d62b00eSchristos} 75277d62b00eSchristos_ACEOF 75287d62b00eSchristosif ac_fn_c_try_link "$LINENO"; then : 75297d62b00eSchristos ac_cv_working_alloca_h=yes 75307d62b00eSchristoselse 75317d62b00eSchristos ac_cv_working_alloca_h=no 75327d62b00eSchristosfi 75337d62b00eSchristosrm -f core conftest.err conftest.$ac_objext \ 75347d62b00eSchristos conftest$ac_exeext conftest.$ac_ext 75357d62b00eSchristosfi 75367d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 75377d62b00eSchristos$as_echo "$ac_cv_working_alloca_h" >&6; } 75387d62b00eSchristosif test $ac_cv_working_alloca_h = yes; then 75397d62b00eSchristos 75407d62b00eSchristos$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 75417d62b00eSchristos 75427d62b00eSchristosfi 75437d62b00eSchristos 75447d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 75457d62b00eSchristos$as_echo_n "checking for alloca... " >&6; } 75467d62b00eSchristosif ${ac_cv_func_alloca_works+:} false; then : 75477d62b00eSchristos $as_echo_n "(cached) " >&6 75487d62b00eSchristoselse 75497d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75507d62b00eSchristos/* end confdefs.h. */ 75517d62b00eSchristos#ifdef __GNUC__ 75527d62b00eSchristos# define alloca __builtin_alloca 75537d62b00eSchristos#else 75547d62b00eSchristos# ifdef _MSC_VER 75557d62b00eSchristos# include <malloc.h> 75567d62b00eSchristos# define alloca _alloca 75577d62b00eSchristos# else 75587d62b00eSchristos# ifdef HAVE_ALLOCA_H 75597d62b00eSchristos# include <alloca.h> 75607d62b00eSchristos# else 75617d62b00eSchristos# ifdef _AIX 75627d62b00eSchristos #pragma alloca 75637d62b00eSchristos# else 75647d62b00eSchristos# ifndef alloca /* predefined by HP cc +Olibcalls */ 75657d62b00eSchristosvoid *alloca (size_t); 75667d62b00eSchristos# endif 75677d62b00eSchristos# endif 75687d62b00eSchristos# endif 75697d62b00eSchristos# endif 75707d62b00eSchristos#endif 75717d62b00eSchristos 75727d62b00eSchristosint 75737d62b00eSchristosmain () 75747d62b00eSchristos{ 75757d62b00eSchristoschar *p = (char *) alloca (1); 75767d62b00eSchristos if (p) return 0; 75777d62b00eSchristos ; 75787d62b00eSchristos return 0; 75797d62b00eSchristos} 75807d62b00eSchristos_ACEOF 75817d62b00eSchristosif ac_fn_c_try_link "$LINENO"; then : 75827d62b00eSchristos ac_cv_func_alloca_works=yes 75837d62b00eSchristoselse 75847d62b00eSchristos ac_cv_func_alloca_works=no 75857d62b00eSchristosfi 75867d62b00eSchristosrm -f core conftest.err conftest.$ac_objext \ 75877d62b00eSchristos conftest$ac_exeext conftest.$ac_ext 75887d62b00eSchristosfi 75897d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 75907d62b00eSchristos$as_echo "$ac_cv_func_alloca_works" >&6; } 75917d62b00eSchristos 75927d62b00eSchristosif test $ac_cv_func_alloca_works = yes; then 75937d62b00eSchristos 75947d62b00eSchristos$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 75957d62b00eSchristos 75967d62b00eSchristoselse 75977d62b00eSchristos # The SVR3 libPW and SVR4 libucb both contain incompatible functions 75987d62b00eSchristos# that cause trouble. Some versions do not even contain alloca or 75997d62b00eSchristos# contain a buggy version. If you still want to use their alloca, 76007d62b00eSchristos# use ar to extract alloca.o from them instead of compiling alloca.c. 76017d62b00eSchristos 76027d62b00eSchristosALLOCA=\${LIBOBJDIR}alloca.$ac_objext 76037d62b00eSchristos 76047d62b00eSchristos$as_echo "#define C_ALLOCA 1" >>confdefs.h 76057d62b00eSchristos 76067d62b00eSchristos 76077d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 76087d62b00eSchristos$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 76097d62b00eSchristosif ${ac_cv_os_cray+:} false; then : 76107d62b00eSchristos $as_echo_n "(cached) " >&6 76117d62b00eSchristoselse 76127d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 76137d62b00eSchristos/* end confdefs.h. */ 76147d62b00eSchristos#if defined CRAY && ! defined CRAY2 76157d62b00eSchristoswebecray 76167d62b00eSchristos#else 76177d62b00eSchristoswenotbecray 76187d62b00eSchristos#endif 76197d62b00eSchristos 76207d62b00eSchristos_ACEOF 76217d62b00eSchristosif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 76227d62b00eSchristos $EGREP "webecray" >/dev/null 2>&1; then : 76237d62b00eSchristos ac_cv_os_cray=yes 76247d62b00eSchristoselse 76257d62b00eSchristos ac_cv_os_cray=no 76267d62b00eSchristosfi 76277d62b00eSchristosrm -f conftest* 76287d62b00eSchristos 76297d62b00eSchristosfi 76307d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 76317d62b00eSchristos$as_echo "$ac_cv_os_cray" >&6; } 76327d62b00eSchristosif test $ac_cv_os_cray = yes; then 76337d62b00eSchristos for ac_func in _getb67 GETB67 getb67; do 76347d62b00eSchristos as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 76357d62b00eSchristosac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 76367d62b00eSchristosif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 76377d62b00eSchristos 76387d62b00eSchristoscat >>confdefs.h <<_ACEOF 76397d62b00eSchristos#define CRAY_STACKSEG_END $ac_func 76407d62b00eSchristos_ACEOF 76417d62b00eSchristos 76427d62b00eSchristos break 76437d62b00eSchristosfi 76447d62b00eSchristos 76457d62b00eSchristos done 76467d62b00eSchristosfi 76477d62b00eSchristos 76487d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 76497d62b00eSchristos$as_echo_n "checking stack direction for C alloca... " >&6; } 76507d62b00eSchristosif ${ac_cv_c_stack_direction+:} false; then : 76517d62b00eSchristos $as_echo_n "(cached) " >&6 76527d62b00eSchristoselse 76537d62b00eSchristos if test "$cross_compiling" = yes; then : 76547d62b00eSchristos ac_cv_c_stack_direction=0 76557d62b00eSchristoselse 76567d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 76577d62b00eSchristos/* end confdefs.h. */ 76587d62b00eSchristos$ac_includes_default 76597d62b00eSchristosint 76607d62b00eSchristosfind_stack_direction (int *addr, int depth) 76617d62b00eSchristos{ 76627d62b00eSchristos int dir, dummy = 0; 76637d62b00eSchristos if (! addr) 76647d62b00eSchristos addr = &dummy; 76657d62b00eSchristos *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 76667d62b00eSchristos dir = depth ? find_stack_direction (addr, depth - 1) : 0; 76677d62b00eSchristos return dir + dummy; 76687d62b00eSchristos} 76697d62b00eSchristos 76707d62b00eSchristosint 76717d62b00eSchristosmain (int argc, char **argv) 76727d62b00eSchristos{ 76737d62b00eSchristos return find_stack_direction (0, argc + !argv + 20) < 0; 76747d62b00eSchristos} 76757d62b00eSchristos_ACEOF 76767d62b00eSchristosif ac_fn_c_try_run "$LINENO"; then : 76777d62b00eSchristos ac_cv_c_stack_direction=1 76787d62b00eSchristoselse 76797d62b00eSchristos ac_cv_c_stack_direction=-1 76807d62b00eSchristosfi 76817d62b00eSchristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 76827d62b00eSchristos conftest.$ac_objext conftest.beam conftest.$ac_ext 76837d62b00eSchristosfi 76847d62b00eSchristos 76857d62b00eSchristosfi 76867d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 76877d62b00eSchristos$as_echo "$ac_cv_c_stack_direction" >&6; } 76887d62b00eSchristoscat >>confdefs.h <<_ACEOF 76897d62b00eSchristos#define STACK_DIRECTION $ac_cv_c_stack_direction 76907d62b00eSchristos_ACEOF 76917d62b00eSchristos 76927d62b00eSchristos 76937d62b00eSchristosfi 76947d62b00eSchristos 76957d62b00eSchristos 76967d62b00eSchristos WIN32APILIBS= 76977d62b00eSchristos case ${host} in 76987d62b00eSchristos *mingw32*) 76997d62b00eSchristos 77007d62b00eSchristos$as_echo "#define USE_WIN32API 1" >>confdefs.h 77017d62b00eSchristos 77027d62b00eSchristos WIN32APILIBS="-lws2_32" 77037d62b00eSchristos ;; 77047d62b00eSchristos esac 77057d62b00eSchristos 77067d62b00eSchristos 77077d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 77087d62b00eSchristos$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 77097d62b00eSchristosif ${am_cv_langinfo_codeset+:} false; then : 77107d62b00eSchristos $as_echo_n "(cached) " >&6 77117d62b00eSchristoselse 77127d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 77137d62b00eSchristos/* end confdefs.h. */ 77147d62b00eSchristos#include <langinfo.h> 77157d62b00eSchristosint 77167d62b00eSchristosmain () 77177d62b00eSchristos{ 77187d62b00eSchristoschar* cs = nl_langinfo(CODESET); 77197d62b00eSchristos ; 77207d62b00eSchristos return 0; 77217d62b00eSchristos} 77227d62b00eSchristos_ACEOF 77237d62b00eSchristosif ac_fn_c_try_link "$LINENO"; then : 77247d62b00eSchristos am_cv_langinfo_codeset=yes 77257d62b00eSchristoselse 77267d62b00eSchristos am_cv_langinfo_codeset=no 77277d62b00eSchristosfi 77287d62b00eSchristosrm -f core conftest.err conftest.$ac_objext \ 77297d62b00eSchristos conftest$ac_exeext conftest.$ac_ext 77307d62b00eSchristos 77317d62b00eSchristosfi 77327d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 77337d62b00eSchristos$as_echo "$am_cv_langinfo_codeset" >&6; } 77347d62b00eSchristos if test $am_cv_langinfo_codeset = yes; then 77357d62b00eSchristos 77367d62b00eSchristos$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 77377d62b00eSchristos 77387d62b00eSchristos fi 77397d62b00eSchristos 77407d62b00eSchristos 77417d62b00eSchristos for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h dlfcn.h linux/elf.h proc_service.h poll.h sys/poll.h sys/select.h 77427d62b00eSchristosdo : 77437d62b00eSchristos as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 77447d62b00eSchristosac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 77457d62b00eSchristosif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 77467d62b00eSchristos cat >>confdefs.h <<_ACEOF 77477d62b00eSchristos#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 77487d62b00eSchristos_ACEOF 77497d62b00eSchristos 77507d62b00eSchristosfi 77517d62b00eSchristos 77527d62b00eSchristosdone 77537d62b00eSchristos 77547d62b00eSchristos 77557d62b00eSchristos 77567d62b00eSchristosfor ac_func in getpagesize 77577d62b00eSchristosdo : 77587d62b00eSchristos ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 77597d62b00eSchristosif test "x$ac_cv_func_getpagesize" = xyes; then : 77607d62b00eSchristos cat >>confdefs.h <<_ACEOF 77617d62b00eSchristos#define HAVE_GETPAGESIZE 1 77627d62b00eSchristos_ACEOF 77637d62b00eSchristos 77647d62b00eSchristosfi 77657d62b00eSchristosdone 77667d62b00eSchristos 77677d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 77687d62b00eSchristos$as_echo_n "checking for working mmap... " >&6; } 77697d62b00eSchristosif ${ac_cv_func_mmap_fixed_mapped+:} false; then : 77707d62b00eSchristos $as_echo_n "(cached) " >&6 77717d62b00eSchristoselse 77727d62b00eSchristos if test "$cross_compiling" = yes; then : 77737d62b00eSchristos ac_cv_func_mmap_fixed_mapped=no 77747d62b00eSchristoselse 77757d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 77767d62b00eSchristos/* end confdefs.h. */ 77777d62b00eSchristos$ac_includes_default 77787d62b00eSchristos/* malloc might have been renamed as rpl_malloc. */ 77797d62b00eSchristos#undef malloc 77807d62b00eSchristos 77817d62b00eSchristos/* Thanks to Mike Haertel and Jim Avera for this test. 77827d62b00eSchristos Here is a matrix of mmap possibilities: 77837d62b00eSchristos mmap private not fixed 77847d62b00eSchristos mmap private fixed at somewhere currently unmapped 77857d62b00eSchristos mmap private fixed at somewhere already mapped 77867d62b00eSchristos mmap shared not fixed 77877d62b00eSchristos mmap shared fixed at somewhere currently unmapped 77887d62b00eSchristos mmap shared fixed at somewhere already mapped 77897d62b00eSchristos For private mappings, we should verify that changes cannot be read() 77907d62b00eSchristos back from the file, nor mmap's back from the file at a different 77917d62b00eSchristos address. (There have been systems where private was not correctly 77927d62b00eSchristos implemented like the infamous i386 svr4.0, and systems where the 77937d62b00eSchristos VM page cache was not coherent with the file system buffer cache 77947d62b00eSchristos like early versions of FreeBSD and possibly contemporary NetBSD.) 77957d62b00eSchristos For shared mappings, we should conversely verify that changes get 77967d62b00eSchristos propagated back to all the places they're supposed to be. 77977d62b00eSchristos 77987d62b00eSchristos Grep wants private fixed already mapped. 77997d62b00eSchristos The main things grep needs to know about mmap are: 78007d62b00eSchristos * does it exist and is it safe to write into the mmap'd area 78017d62b00eSchristos * how to use it (BSD variants) */ 78027d62b00eSchristos 78037d62b00eSchristos#include <fcntl.h> 78047d62b00eSchristos#include <sys/mman.h> 78057d62b00eSchristos 78067d62b00eSchristos#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 78077d62b00eSchristoschar *malloc (); 78087d62b00eSchristos#endif 78097d62b00eSchristos 78107d62b00eSchristos/* This mess was copied from the GNU getpagesize.h. */ 78117d62b00eSchristos#ifndef HAVE_GETPAGESIZE 78127d62b00eSchristos# ifdef _SC_PAGESIZE 78137d62b00eSchristos# define getpagesize() sysconf(_SC_PAGESIZE) 78147d62b00eSchristos# else /* no _SC_PAGESIZE */ 78157d62b00eSchristos# ifdef HAVE_SYS_PARAM_H 78167d62b00eSchristos# include <sys/param.h> 78177d62b00eSchristos# ifdef EXEC_PAGESIZE 78187d62b00eSchristos# define getpagesize() EXEC_PAGESIZE 78197d62b00eSchristos# else /* no EXEC_PAGESIZE */ 78207d62b00eSchristos# ifdef NBPG 78217d62b00eSchristos# define getpagesize() NBPG * CLSIZE 78227d62b00eSchristos# ifndef CLSIZE 78237d62b00eSchristos# define CLSIZE 1 78247d62b00eSchristos# endif /* no CLSIZE */ 78257d62b00eSchristos# else /* no NBPG */ 78267d62b00eSchristos# ifdef NBPC 78277d62b00eSchristos# define getpagesize() NBPC 78287d62b00eSchristos# else /* no NBPC */ 78297d62b00eSchristos# ifdef PAGESIZE 78307d62b00eSchristos# define getpagesize() PAGESIZE 78317d62b00eSchristos# endif /* PAGESIZE */ 78327d62b00eSchristos# endif /* no NBPC */ 78337d62b00eSchristos# endif /* no NBPG */ 78347d62b00eSchristos# endif /* no EXEC_PAGESIZE */ 78357d62b00eSchristos# else /* no HAVE_SYS_PARAM_H */ 78367d62b00eSchristos# define getpagesize() 8192 /* punt totally */ 78377d62b00eSchristos# endif /* no HAVE_SYS_PARAM_H */ 78387d62b00eSchristos# endif /* no _SC_PAGESIZE */ 78397d62b00eSchristos 78407d62b00eSchristos#endif /* no HAVE_GETPAGESIZE */ 78417d62b00eSchristos 78427d62b00eSchristosint 78437d62b00eSchristosmain () 78447d62b00eSchristos{ 78457d62b00eSchristos char *data, *data2, *data3; 78467d62b00eSchristos const char *cdata2; 78477d62b00eSchristos int i, pagesize; 78487d62b00eSchristos int fd, fd2; 78497d62b00eSchristos 78507d62b00eSchristos pagesize = getpagesize (); 78517d62b00eSchristos 78527d62b00eSchristos /* First, make a file with some known garbage in it. */ 78537d62b00eSchristos data = (char *) malloc (pagesize); 78547d62b00eSchristos if (!data) 78557d62b00eSchristos return 1; 78567d62b00eSchristos for (i = 0; i < pagesize; ++i) 78577d62b00eSchristos *(data + i) = rand (); 78587d62b00eSchristos umask (0); 78597d62b00eSchristos fd = creat ("conftest.mmap", 0600); 78607d62b00eSchristos if (fd < 0) 78617d62b00eSchristos return 2; 78627d62b00eSchristos if (write (fd, data, pagesize) != pagesize) 78637d62b00eSchristos return 3; 78647d62b00eSchristos close (fd); 78657d62b00eSchristos 78667d62b00eSchristos /* Next, check that the tail of a page is zero-filled. File must have 78677d62b00eSchristos non-zero length, otherwise we risk SIGBUS for entire page. */ 78687d62b00eSchristos fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 78697d62b00eSchristos if (fd2 < 0) 78707d62b00eSchristos return 4; 78717d62b00eSchristos cdata2 = ""; 78727d62b00eSchristos if (write (fd2, cdata2, 1) != 1) 78737d62b00eSchristos return 5; 78747d62b00eSchristos data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 78757d62b00eSchristos if (data2 == MAP_FAILED) 78767d62b00eSchristos return 6; 78777d62b00eSchristos for (i = 0; i < pagesize; ++i) 78787d62b00eSchristos if (*(data2 + i)) 78797d62b00eSchristos return 7; 78807d62b00eSchristos close (fd2); 78817d62b00eSchristos if (munmap (data2, pagesize)) 78827d62b00eSchristos return 8; 78837d62b00eSchristos 78847d62b00eSchristos /* Next, try to mmap the file at a fixed address which already has 78857d62b00eSchristos something else allocated at it. If we can, also make sure that 78867d62b00eSchristos we see the same garbage. */ 78877d62b00eSchristos fd = open ("conftest.mmap", O_RDWR); 78887d62b00eSchristos if (fd < 0) 78897d62b00eSchristos return 9; 78907d62b00eSchristos if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 78917d62b00eSchristos MAP_PRIVATE | MAP_FIXED, fd, 0L)) 78927d62b00eSchristos return 10; 78937d62b00eSchristos for (i = 0; i < pagesize; ++i) 78947d62b00eSchristos if (*(data + i) != *(data2 + i)) 78957d62b00eSchristos return 11; 78967d62b00eSchristos 78977d62b00eSchristos /* Finally, make sure that changes to the mapped area do not 78987d62b00eSchristos percolate back to the file as seen by read(). (This is a bug on 78997d62b00eSchristos some variants of i386 svr4.0.) */ 79007d62b00eSchristos for (i = 0; i < pagesize; ++i) 79017d62b00eSchristos *(data2 + i) = *(data2 + i) + 1; 79027d62b00eSchristos data3 = (char *) malloc (pagesize); 79037d62b00eSchristos if (!data3) 79047d62b00eSchristos return 12; 79057d62b00eSchristos if (read (fd, data3, pagesize) != pagesize) 79067d62b00eSchristos return 13; 79077d62b00eSchristos for (i = 0; i < pagesize; ++i) 79087d62b00eSchristos if (*(data + i) != *(data3 + i)) 79097d62b00eSchristos return 14; 79107d62b00eSchristos close (fd); 79117d62b00eSchristos return 0; 79127d62b00eSchristos} 79137d62b00eSchristos_ACEOF 79147d62b00eSchristosif ac_fn_c_try_run "$LINENO"; then : 79157d62b00eSchristos ac_cv_func_mmap_fixed_mapped=yes 79167d62b00eSchristoselse 79177d62b00eSchristos ac_cv_func_mmap_fixed_mapped=no 79187d62b00eSchristosfi 79197d62b00eSchristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 79207d62b00eSchristos conftest.$ac_objext conftest.beam conftest.$ac_ext 79217d62b00eSchristosfi 79227d62b00eSchristos 79237d62b00eSchristosfi 79247d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 79257d62b00eSchristos$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 79267d62b00eSchristosif test $ac_cv_func_mmap_fixed_mapped = yes; then 79277d62b00eSchristos 79287d62b00eSchristos$as_echo "#define HAVE_MMAP 1" >>confdefs.h 79297d62b00eSchristos 79307d62b00eSchristosfi 79317d62b00eSchristosrm -f conftest.mmap conftest.txt 79327d62b00eSchristos 79337d62b00eSchristos for ac_header in vfork.h 79347d62b00eSchristosdo : 79357d62b00eSchristos ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 79367d62b00eSchristosif test "x$ac_cv_header_vfork_h" = xyes; then : 79377d62b00eSchristos cat >>confdefs.h <<_ACEOF 79387d62b00eSchristos#define HAVE_VFORK_H 1 79397d62b00eSchristos_ACEOF 79407d62b00eSchristos 79417d62b00eSchristosfi 79427d62b00eSchristos 79437d62b00eSchristosdone 79447d62b00eSchristos 79457d62b00eSchristosfor ac_func in fork vfork 79467d62b00eSchristosdo : 79477d62b00eSchristos as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 79487d62b00eSchristosac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 79497d62b00eSchristosif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 79507d62b00eSchristos cat >>confdefs.h <<_ACEOF 79517d62b00eSchristos#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 79527d62b00eSchristos_ACEOF 79537d62b00eSchristos 79547d62b00eSchristosfi 79557d62b00eSchristosdone 79567d62b00eSchristos 79577d62b00eSchristosif test "x$ac_cv_func_fork" = xyes; then 79587d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 79597d62b00eSchristos$as_echo_n "checking for working fork... " >&6; } 79607d62b00eSchristosif ${ac_cv_func_fork_works+:} false; then : 79617d62b00eSchristos $as_echo_n "(cached) " >&6 79627d62b00eSchristoselse 79637d62b00eSchristos if test "$cross_compiling" = yes; then : 79647d62b00eSchristos ac_cv_func_fork_works=cross 79657d62b00eSchristoselse 79667d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 79677d62b00eSchristos/* end confdefs.h. */ 79687d62b00eSchristos$ac_includes_default 79697d62b00eSchristosint 79707d62b00eSchristosmain () 79717d62b00eSchristos{ 79727d62b00eSchristos 79737d62b00eSchristos /* By Ruediger Kuhlmann. */ 79747d62b00eSchristos return fork () < 0; 79757d62b00eSchristos 79767d62b00eSchristos ; 79777d62b00eSchristos return 0; 79787d62b00eSchristos} 79797d62b00eSchristos_ACEOF 79807d62b00eSchristosif ac_fn_c_try_run "$LINENO"; then : 79817d62b00eSchristos ac_cv_func_fork_works=yes 79827d62b00eSchristoselse 79837d62b00eSchristos ac_cv_func_fork_works=no 79847d62b00eSchristosfi 79857d62b00eSchristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 79867d62b00eSchristos conftest.$ac_objext conftest.beam conftest.$ac_ext 79877d62b00eSchristosfi 79887d62b00eSchristos 79897d62b00eSchristosfi 79907d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 79917d62b00eSchristos$as_echo "$ac_cv_func_fork_works" >&6; } 79927d62b00eSchristos 79937d62b00eSchristoselse 79947d62b00eSchristos ac_cv_func_fork_works=$ac_cv_func_fork 79957d62b00eSchristosfi 79967d62b00eSchristosif test "x$ac_cv_func_fork_works" = xcross; then 79977d62b00eSchristos case $host in 79987d62b00eSchristos *-*-amigaos* | *-*-msdosdjgpp*) 79997d62b00eSchristos # Override, as these systems have only a dummy fork() stub 80007d62b00eSchristos ac_cv_func_fork_works=no 80017d62b00eSchristos ;; 80027d62b00eSchristos *) 80037d62b00eSchristos ac_cv_func_fork_works=yes 80047d62b00eSchristos ;; 80057d62b00eSchristos esac 80067d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 80077d62b00eSchristos$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 80087d62b00eSchristosfi 80097d62b00eSchristosac_cv_func_vfork_works=$ac_cv_func_vfork 80107d62b00eSchristosif test "x$ac_cv_func_vfork" = xyes; then 80117d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 80127d62b00eSchristos$as_echo_n "checking for working vfork... " >&6; } 80137d62b00eSchristosif ${ac_cv_func_vfork_works+:} false; then : 80147d62b00eSchristos $as_echo_n "(cached) " >&6 80157d62b00eSchristoselse 80167d62b00eSchristos if test "$cross_compiling" = yes; then : 80177d62b00eSchristos ac_cv_func_vfork_works=cross 80187d62b00eSchristoselse 80197d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 80207d62b00eSchristos/* end confdefs.h. */ 80217d62b00eSchristos/* Thanks to Paul Eggert for this test. */ 80227d62b00eSchristos$ac_includes_default 80237d62b00eSchristos#include <sys/wait.h> 80247d62b00eSchristos#ifdef HAVE_VFORK_H 80257d62b00eSchristos# include <vfork.h> 80267d62b00eSchristos#endif 80277d62b00eSchristos/* On some sparc systems, changes by the child to local and incoming 80287d62b00eSchristos argument registers are propagated back to the parent. The compiler 80297d62b00eSchristos is told about this with #include <vfork.h>, but some compilers 80307d62b00eSchristos (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 80317d62b00eSchristos static variable whose address is put into a register that is 80327d62b00eSchristos clobbered by the vfork. */ 80337d62b00eSchristosstatic void 80347d62b00eSchristos#ifdef __cplusplus 80357d62b00eSchristossparc_address_test (int arg) 80367d62b00eSchristos# else 80377d62b00eSchristossparc_address_test (arg) int arg; 80387d62b00eSchristos#endif 80397d62b00eSchristos{ 80407d62b00eSchristos static pid_t child; 80417d62b00eSchristos if (!child) { 80427d62b00eSchristos child = vfork (); 80437d62b00eSchristos if (child < 0) { 80447d62b00eSchristos perror ("vfork"); 80457d62b00eSchristos _exit(2); 80467d62b00eSchristos } 80477d62b00eSchristos if (!child) { 80487d62b00eSchristos arg = getpid(); 80497d62b00eSchristos write(-1, "", 0); 80507d62b00eSchristos _exit (arg); 80517d62b00eSchristos } 80527d62b00eSchristos } 80537d62b00eSchristos} 80547d62b00eSchristos 80557d62b00eSchristosint 80567d62b00eSchristosmain () 80577d62b00eSchristos{ 80587d62b00eSchristos pid_t parent = getpid (); 80597d62b00eSchristos pid_t child; 80607d62b00eSchristos 80617d62b00eSchristos sparc_address_test (0); 80627d62b00eSchristos 80637d62b00eSchristos child = vfork (); 80647d62b00eSchristos 80657d62b00eSchristos if (child == 0) { 80667d62b00eSchristos /* Here is another test for sparc vfork register problems. This 80677d62b00eSchristos test uses lots of local variables, at least as many local 80687d62b00eSchristos variables as main has allocated so far including compiler 80697d62b00eSchristos temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 80707d62b00eSchristos 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 80717d62b00eSchristos reuse the register of parent for one of the local variables, 80727d62b00eSchristos since it will think that parent can't possibly be used any more 80737d62b00eSchristos in this routine. Assigning to the local variable will thus 80747d62b00eSchristos munge parent in the parent process. */ 80757d62b00eSchristos pid_t 80767d62b00eSchristos p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 80777d62b00eSchristos p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 80787d62b00eSchristos /* Convince the compiler that p..p7 are live; otherwise, it might 80797d62b00eSchristos use the same hardware register for all 8 local variables. */ 80807d62b00eSchristos if (p != p1 || p != p2 || p != p3 || p != p4 80817d62b00eSchristos || p != p5 || p != p6 || p != p7) 80827d62b00eSchristos _exit(1); 80837d62b00eSchristos 80847d62b00eSchristos /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 80857d62b00eSchristos from child file descriptors. If the child closes a descriptor 80867d62b00eSchristos before it execs or exits, this munges the parent's descriptor 80877d62b00eSchristos as well. Test for this by closing stdout in the child. */ 80887d62b00eSchristos _exit(close(fileno(stdout)) != 0); 80897d62b00eSchristos } else { 80907d62b00eSchristos int status; 80917d62b00eSchristos struct stat st; 80927d62b00eSchristos 80937d62b00eSchristos while (wait(&status) != child) 80947d62b00eSchristos ; 80957d62b00eSchristos return ( 80967d62b00eSchristos /* Was there some problem with vforking? */ 80977d62b00eSchristos child < 0 80987d62b00eSchristos 80997d62b00eSchristos /* Did the child fail? (This shouldn't happen.) */ 81007d62b00eSchristos || status 81017d62b00eSchristos 81027d62b00eSchristos /* Did the vfork/compiler bug occur? */ 81037d62b00eSchristos || parent != getpid() 81047d62b00eSchristos 81057d62b00eSchristos /* Did the file descriptor bug occur? */ 81067d62b00eSchristos || fstat(fileno(stdout), &st) != 0 81077d62b00eSchristos ); 81087d62b00eSchristos } 81097d62b00eSchristos} 81107d62b00eSchristos_ACEOF 81117d62b00eSchristosif ac_fn_c_try_run "$LINENO"; then : 81127d62b00eSchristos ac_cv_func_vfork_works=yes 81137d62b00eSchristoselse 81147d62b00eSchristos ac_cv_func_vfork_works=no 81157d62b00eSchristosfi 81167d62b00eSchristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 81177d62b00eSchristos conftest.$ac_objext conftest.beam conftest.$ac_ext 81187d62b00eSchristosfi 81197d62b00eSchristos 81207d62b00eSchristosfi 81217d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 81227d62b00eSchristos$as_echo "$ac_cv_func_vfork_works" >&6; } 81237d62b00eSchristos 81247d62b00eSchristosfi; 81257d62b00eSchristosif test "x$ac_cv_func_fork_works" = xcross; then 81267d62b00eSchristos ac_cv_func_vfork_works=$ac_cv_func_vfork 81277d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 81287d62b00eSchristos$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 81297d62b00eSchristosfi 81307d62b00eSchristos 81317d62b00eSchristosif test "x$ac_cv_func_vfork_works" = xyes; then 81327d62b00eSchristos 81337d62b00eSchristos$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 81347d62b00eSchristos 81357d62b00eSchristoselse 81367d62b00eSchristos 81377d62b00eSchristos$as_echo "#define vfork fork" >>confdefs.h 81387d62b00eSchristos 81397d62b00eSchristosfi 81407d62b00eSchristosif test "x$ac_cv_func_fork_works" = xyes; then 81417d62b00eSchristos 81427d62b00eSchristos$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 81437d62b00eSchristos 81447d62b00eSchristosfi 81457d62b00eSchristos 81467d62b00eSchristos for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \ 81477d62b00eSchristos ptrace64 sbrk setns sigaltstack sigprocmask \ 8148*6881a400Schristos setpgid setpgrp getrusage getauxval sigtimedwait 81497d62b00eSchristosdo : 81507d62b00eSchristos as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 81517d62b00eSchristosac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 81527d62b00eSchristosif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 81537d62b00eSchristos cat >>confdefs.h <<_ACEOF 81547d62b00eSchristos#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 81557d62b00eSchristos_ACEOF 81567d62b00eSchristos 81577d62b00eSchristosfi 81587d62b00eSchristosdone 81597d62b00eSchristos 81607d62b00eSchristos 8161*6881a400Schristos # This is needed for RHEL 5 and uclibc-ng < 1.0.39. 8162*6881a400Schristos # These did not define ADDR_NO_RANDOMIZE in sys/personality.h, 8163*6881a400Schristos # only in linux/personality.h. 81647d62b00eSchristos ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h> 81657d62b00eSchristos" 81667d62b00eSchristosif test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then : 81677d62b00eSchristos ac_have_decl=1 81687d62b00eSchristoselse 81697d62b00eSchristos ac_have_decl=0 81707d62b00eSchristosfi 81717d62b00eSchristos 81727d62b00eSchristoscat >>confdefs.h <<_ACEOF 81737d62b00eSchristos#define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl 81747d62b00eSchristos_ACEOF 81757d62b00eSchristos 81767d62b00eSchristos 81777d62b00eSchristos ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" 81787d62b00eSchristosif test "x$ac_cv_have_decl_strstr" = xyes; then : 81797d62b00eSchristos ac_have_decl=1 81807d62b00eSchristoselse 81817d62b00eSchristos ac_have_decl=0 81827d62b00eSchristosfi 81837d62b00eSchristos 81847d62b00eSchristoscat >>confdefs.h <<_ACEOF 81857d62b00eSchristos#define HAVE_DECL_STRSTR $ac_have_decl 81867d62b00eSchristos_ACEOF 81877d62b00eSchristos 81887d62b00eSchristos 81897d62b00eSchristos # ----------------------- # 81907d62b00eSchristos # Checks for structures. # 81917d62b00eSchristos # ----------------------- # 81927d62b00eSchristos 81937d62b00eSchristos ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" 81947d62b00eSchristosif test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : 81957d62b00eSchristos 81967d62b00eSchristoscat >>confdefs.h <<_ACEOF 81977d62b00eSchristos#define HAVE_STRUCT_STAT_ST_BLOCKS 1 81987d62b00eSchristos_ACEOF 81997d62b00eSchristos 82007d62b00eSchristos 82017d62b00eSchristosfi 82027d62b00eSchristosac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 82037d62b00eSchristosif test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : 82047d62b00eSchristos 82057d62b00eSchristoscat >>confdefs.h <<_ACEOF 82067d62b00eSchristos#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 82077d62b00eSchristos_ACEOF 82087d62b00eSchristos 82097d62b00eSchristos 82107d62b00eSchristosfi 82117d62b00eSchristos 82127d62b00eSchristos 8213*6881a400Schristos # On FreeBSD we need libutil for the kinfo_get* functions. On 8214*6881a400Schristos # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd. 8215*6881a400Schristos # Figure out which one to use. 82167d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5 82177d62b00eSchristos$as_echo_n "checking for library containing kinfo_getfile... " >&6; } 82187d62b00eSchristosif ${ac_cv_search_kinfo_getfile+:} false; then : 82197d62b00eSchristos $as_echo_n "(cached) " >&6 82207d62b00eSchristoselse 82217d62b00eSchristos ac_func_search_save_LIBS=$LIBS 82227d62b00eSchristoscat confdefs.h - <<_ACEOF >conftest.$ac_ext 82237d62b00eSchristos/* end confdefs.h. */ 82247d62b00eSchristos 82257d62b00eSchristos/* Override any GCC internal prototype to avoid an error. 82267d62b00eSchristos Use char because int might match the return type of a GCC 82277d62b00eSchristos builtin and then its argument prototype would still apply. */ 82287d62b00eSchristos#ifdef __cplusplus 82297d62b00eSchristosextern "C" 82307d62b00eSchristos#endif 82317d62b00eSchristoschar kinfo_getfile (); 82327d62b00eSchristosint 82337d62b00eSchristosmain () 82347d62b00eSchristos{ 82357d62b00eSchristosreturn kinfo_getfile (); 82367d62b00eSchristos ; 82377d62b00eSchristos return 0; 82387d62b00eSchristos} 82397d62b00eSchristos_ACEOF 82407d62b00eSchristosfor ac_lib in '' util util-freebsd; do 82417d62b00eSchristos if test -z "$ac_lib"; then 82427d62b00eSchristos ac_res="none required" 82437d62b00eSchristos else 82447d62b00eSchristos ac_res=-l$ac_lib 82457d62b00eSchristos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 82467d62b00eSchristos fi 82477d62b00eSchristos if ac_fn_c_try_link "$LINENO"; then : 82487d62b00eSchristos ac_cv_search_kinfo_getfile=$ac_res 82497d62b00eSchristosfi 82507d62b00eSchristosrm -f core conftest.err conftest.$ac_objext \ 82517d62b00eSchristos conftest$ac_exeext 82527d62b00eSchristos if ${ac_cv_search_kinfo_getfile+:} false; then : 82537d62b00eSchristos break 82547d62b00eSchristosfi 82557d62b00eSchristosdone 82567d62b00eSchristosif ${ac_cv_search_kinfo_getfile+:} false; then : 82577d62b00eSchristos 82587d62b00eSchristoselse 82597d62b00eSchristos ac_cv_search_kinfo_getfile=no 82607d62b00eSchristosfi 82617d62b00eSchristosrm conftest.$ac_ext 82627d62b00eSchristosLIBS=$ac_func_search_save_LIBS 82637d62b00eSchristosfi 82647d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5 82657d62b00eSchristos$as_echo "$ac_cv_search_kinfo_getfile" >&6; } 82667d62b00eSchristosac_res=$ac_cv_search_kinfo_getfile 82677d62b00eSchristosif test "$ac_res" != no; then : 82687d62b00eSchristos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 82697d62b00eSchristos 8270*6881a400Schristosfi 82717d62b00eSchristos 8272*6881a400Schristos 8273*6881a400Schristos # Define HAVE_KINFO_GETFILE if kinfo_getfile is available. 8274*6881a400Schristos for ac_func in kinfo_getfile 8275*6881a400Schristosdo : 8276*6881a400Schristos ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile" 8277*6881a400Schristosif test "x$ac_cv_func_kinfo_getfile" = xyes; then : 8278*6881a400Schristos cat >>confdefs.h <<_ACEOF 8279*6881a400Schristos#define HAVE_KINFO_GETFILE 1 8280*6881a400Schristos_ACEOF 8281*6881a400Schristos 8282*6881a400Schristosfi 8283*6881a400Schristosdone 8284*6881a400Schristos 8285*6881a400Schristos 8286*6881a400Schristos # ----------------------- # 8287*6881a400Schristos # Check for threading. # 8288*6881a400Schristos # ----------------------- # 8289*6881a400Schristos 8290*6881a400Schristos # Check whether --enable-threading was given. 8291*6881a400Schristosif test "${enable_threading+set}" = set; then : 8292*6881a400Schristos enableval=$enable_threading; case "$enableval" in 8293*6881a400Schristos yes) want_threading=yes ;; 8294*6881a400Schristos no) want_threading=no ;; 8295*6881a400Schristos *) as_fn_error $? "bad value $enableval for threading" "$LINENO" 5 ;; 8296*6881a400Schristos esac 8297*6881a400Schristoselse 8298*6881a400Schristos want_threading=yes 82997d62b00eSchristosfi 83007d62b00eSchristos 83017d62b00eSchristos 83027d62b00eSchristos # Check for std::thread. This does not work on some platforms, like 83037d62b00eSchristos # mingw and DJGPP. 83047d62b00eSchristos ac_ext=cpp 83057d62b00eSchristosac_cpp='$CXXCPP $CPPFLAGS' 83067d62b00eSchristosac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 83077d62b00eSchristosac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 83087d62b00eSchristosac_compiler_gnu=$ac_cv_cxx_compiler_gnu 83097d62b00eSchristos 83107d62b00eSchristos 83117d62b00eSchristos 83127d62b00eSchristos 83137d62b00eSchristos 83147d62b00eSchristosac_ext=c 83157d62b00eSchristosac_cpp='$CPP $CPPFLAGS' 83167d62b00eSchristosac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 83177d62b00eSchristosac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 83187d62b00eSchristosac_compiler_gnu=$ac_cv_c_compiler_gnu 83197d62b00eSchristos 83207d62b00eSchristosax_pthread_ok=no 83217d62b00eSchristos 83227d62b00eSchristos# We used to check for pthread.h first, but this fails if pthread.h 83237d62b00eSchristos# requires special compiler flags (e.g. on Tru64 or Sequent). 83247d62b00eSchristos# It gets checked for in the link test anyway. 83257d62b00eSchristos 83267d62b00eSchristos# First of all, check if the user has set any of the PTHREAD_LIBS, 83277d62b00eSchristos# etcetera environment variables, and if threads linking works using 83287d62b00eSchristos# them: 83297d62b00eSchristosif test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 83307d62b00eSchristos ax_pthread_save_CC="$CC" 83317d62b00eSchristos ax_pthread_save_CFLAGS="$CFLAGS" 83327d62b00eSchristos ax_pthread_save_LIBS="$LIBS" 83337d62b00eSchristos if test "x$PTHREAD_CC" != "x"; then : 83347d62b00eSchristos CC="$PTHREAD_CC" 83357d62b00eSchristosfi 83367d62b00eSchristos CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 83377d62b00eSchristos LIBS="$PTHREAD_LIBS $LIBS" 83387d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 83397d62b00eSchristos$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 83407d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 83417d62b00eSchristos/* end confdefs.h. */ 83427d62b00eSchristos 83437d62b00eSchristos/* Override any GCC internal prototype to avoid an error. 83447d62b00eSchristos Use char because int might match the return type of a GCC 83457d62b00eSchristos builtin and then its argument prototype would still apply. */ 83467d62b00eSchristos#ifdef __cplusplus 83477d62b00eSchristosextern "C" 83487d62b00eSchristos#endif 83497d62b00eSchristoschar pthread_join (); 83507d62b00eSchristosint 83517d62b00eSchristosmain () 83527d62b00eSchristos{ 83537d62b00eSchristosreturn pthread_join (); 83547d62b00eSchristos ; 83557d62b00eSchristos return 0; 83567d62b00eSchristos} 83577d62b00eSchristos_ACEOF 83587d62b00eSchristosif ac_fn_c_try_link "$LINENO"; then : 83597d62b00eSchristos ax_pthread_ok=yes 83607d62b00eSchristosfi 83617d62b00eSchristosrm -f core conftest.err conftest.$ac_objext \ 83627d62b00eSchristos conftest$ac_exeext conftest.$ac_ext 83637d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 83647d62b00eSchristos$as_echo "$ax_pthread_ok" >&6; } 83657d62b00eSchristos if test "x$ax_pthread_ok" = "xno"; then 83667d62b00eSchristos PTHREAD_LIBS="" 83677d62b00eSchristos PTHREAD_CFLAGS="" 83687d62b00eSchristos fi 83697d62b00eSchristos CC="$ax_pthread_save_CC" 83707d62b00eSchristos CFLAGS="$ax_pthread_save_CFLAGS" 83717d62b00eSchristos LIBS="$ax_pthread_save_LIBS" 83727d62b00eSchristosfi 83737d62b00eSchristos 83747d62b00eSchristos# We must check for the threads library under a number of different 83757d62b00eSchristos# names; the ordering is very important because some systems 83767d62b00eSchristos# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 83777d62b00eSchristos# libraries is broken (non-POSIX). 83787d62b00eSchristos 83797d62b00eSchristos# Create a list of thread flags to try. Items starting with a "-" are 83807d62b00eSchristos# C compiler flags, and other items are library names, except for "none" 83817d62b00eSchristos# which indicates that we try without any flags at all, and "pthread-config" 83827d62b00eSchristos# which is a program returning the flags for the Pth emulation library. 83837d62b00eSchristos 83847d62b00eSchristosax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 83857d62b00eSchristos 83867d62b00eSchristos# The ordering *is* (sometimes) important. Some notes on the 83877d62b00eSchristos# individual items follow: 83887d62b00eSchristos 83897d62b00eSchristos# pthreads: AIX (must check this before -lpthread) 83907d62b00eSchristos# none: in case threads are in libc; should be tried before -Kthread and 83917d62b00eSchristos# other compiler flags to prevent continual compiler warnings 83927d62b00eSchristos# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 83937d62b00eSchristos# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 83947d62b00eSchristos# (Note: HP C rejects this with "bad form for `-t' option") 83957d62b00eSchristos# -pthreads: Solaris/gcc (Note: HP C also rejects) 83967d62b00eSchristos# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 83977d62b00eSchristos# doesn't hurt to check since this sometimes defines pthreads and 83987d62b00eSchristos# -D_REENTRANT too), HP C (must be checked before -lpthread, which 83997d62b00eSchristos# is present but should not be used directly; and before -mthreads, 84007d62b00eSchristos# because the compiler interprets this as "-mt" + "-hreads") 84017d62b00eSchristos# -mthreads: Mingw32/gcc, Lynx/gcc 84027d62b00eSchristos# pthread: Linux, etcetera 84037d62b00eSchristos# --thread-safe: KAI C++ 84047d62b00eSchristos# pthread-config: use pthread-config program (for GNU Pth library) 84057d62b00eSchristos 84067d62b00eSchristoscase $host_os in 84077d62b00eSchristos 84087d62b00eSchristos freebsd*) 84097d62b00eSchristos 84107d62b00eSchristos # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 84117d62b00eSchristos # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 84127d62b00eSchristos 84137d62b00eSchristos ax_pthread_flags="-kthread lthread $ax_pthread_flags" 84147d62b00eSchristos ;; 84157d62b00eSchristos 84167d62b00eSchristos hpux*) 84177d62b00eSchristos 84187d62b00eSchristos # From the cc(1) man page: "[-mt] Sets various -D flags to enable 84197d62b00eSchristos # multi-threading and also sets -lpthread." 84207d62b00eSchristos 84217d62b00eSchristos ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 84227d62b00eSchristos ;; 84237d62b00eSchristos 84247d62b00eSchristos openedition*) 84257d62b00eSchristos 84267d62b00eSchristos # IBM z/OS requires a feature-test macro to be defined in order to 84277d62b00eSchristos # enable POSIX threads at all, so give the user a hint if this is 84287d62b00eSchristos # not set. (We don't define these ourselves, as they can affect 84297d62b00eSchristos # other portions of the system API in unpredictable ways.) 84307d62b00eSchristos 84317d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 84327d62b00eSchristos/* end confdefs.h. */ 84337d62b00eSchristos 84347d62b00eSchristos# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 84357d62b00eSchristos AX_PTHREAD_ZOS_MISSING 84367d62b00eSchristos# endif 84377d62b00eSchristos 84387d62b00eSchristos_ACEOF 84397d62b00eSchristosif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 84407d62b00eSchristos $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : 84417d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 84427d62b00eSchristos$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 84437d62b00eSchristosfi 84447d62b00eSchristosrm -f conftest* 84457d62b00eSchristos 84467d62b00eSchristos ;; 84477d62b00eSchristos 84487d62b00eSchristos solaris*) 84497d62b00eSchristos 84507d62b00eSchristos # On Solaris (at least, for some versions), libc contains stubbed 84517d62b00eSchristos # (non-functional) versions of the pthreads routines, so link-based 84527d62b00eSchristos # tests will erroneously succeed. (N.B.: The stubs are missing 84537d62b00eSchristos # pthread_cleanup_push, or rather a function called by this macro, 84547d62b00eSchristos # so we could check for that, but who knows whether they'll stub 84557d62b00eSchristos # that too in a future libc.) So we'll check first for the 84567d62b00eSchristos # standard Solaris way of linking pthreads (-mt -lpthread). 84577d62b00eSchristos 84587d62b00eSchristos ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags" 84597d62b00eSchristos ;; 84607d62b00eSchristosesac 84617d62b00eSchristos 84627d62b00eSchristos# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 84637d62b00eSchristos 84647d62b00eSchristosif test "x$GCC" = "xyes"; then : 84657d62b00eSchristos ax_pthread_flags="-pthread -pthreads $ax_pthread_flags" 84667d62b00eSchristosfi 84677d62b00eSchristos 84687d62b00eSchristos# The presence of a feature test macro requesting re-entrant function 84697d62b00eSchristos# definitions is, on some systems, a strong hint that pthreads support is 84707d62b00eSchristos# correctly enabled 84717d62b00eSchristos 84727d62b00eSchristoscase $host_os in 84737d62b00eSchristos darwin* | hpux* | linux* | osf* | solaris*) 84747d62b00eSchristos ax_pthread_check_macro="_REENTRANT" 84757d62b00eSchristos ;; 84767d62b00eSchristos 84777d62b00eSchristos aix*) 84787d62b00eSchristos ax_pthread_check_macro="_THREAD_SAFE" 84797d62b00eSchristos ;; 84807d62b00eSchristos 84817d62b00eSchristos *) 84827d62b00eSchristos ax_pthread_check_macro="--" 84837d62b00eSchristos ;; 84847d62b00eSchristosesac 84857d62b00eSchristosif test "x$ax_pthread_check_macro" = "x--"; then : 84867d62b00eSchristos ax_pthread_check_cond=0 84877d62b00eSchristoselse 84887d62b00eSchristos ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 84897d62b00eSchristosfi 84907d62b00eSchristos 84917d62b00eSchristos# Are we compiling with Clang? 84927d62b00eSchristos 84937d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 84947d62b00eSchristos$as_echo_n "checking whether $CC is Clang... " >&6; } 84957d62b00eSchristosif ${ax_cv_PTHREAD_CLANG+:} false; then : 84967d62b00eSchristos $as_echo_n "(cached) " >&6 84977d62b00eSchristoselse 84987d62b00eSchristos ax_cv_PTHREAD_CLANG=no 84997d62b00eSchristos # Note that Autoconf sets GCC=yes for Clang as well as GCC 85007d62b00eSchristos if test "x$GCC" = "xyes"; then 85017d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 85027d62b00eSchristos/* end confdefs.h. */ 85037d62b00eSchristos/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 85047d62b00eSchristos# if defined(__clang__) && defined(__llvm__) 85057d62b00eSchristos AX_PTHREAD_CC_IS_CLANG 85067d62b00eSchristos# endif 85077d62b00eSchristos 85087d62b00eSchristos_ACEOF 85097d62b00eSchristosif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 85107d62b00eSchristos $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then : 85117d62b00eSchristos ax_cv_PTHREAD_CLANG=yes 85127d62b00eSchristosfi 85137d62b00eSchristosrm -f conftest* 85147d62b00eSchristos 85157d62b00eSchristos fi 85167d62b00eSchristos 85177d62b00eSchristosfi 85187d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 85197d62b00eSchristos$as_echo "$ax_cv_PTHREAD_CLANG" >&6; } 85207d62b00eSchristosax_pthread_clang="$ax_cv_PTHREAD_CLANG" 85217d62b00eSchristos 85227d62b00eSchristosax_pthread_clang_warning=no 85237d62b00eSchristos 85247d62b00eSchristos# Clang needs special handling, because older versions handle the -pthread 85257d62b00eSchristos# option in a rather... idiosyncratic way 85267d62b00eSchristos 85277d62b00eSchristosif test "x$ax_pthread_clang" = "xyes"; then 85287d62b00eSchristos 85297d62b00eSchristos # Clang takes -pthread; it has never supported any other flag 85307d62b00eSchristos 85317d62b00eSchristos # (Note 1: This will need to be revisited if a system that Clang 85327d62b00eSchristos # supports has POSIX threads in a separate library. This tends not 85337d62b00eSchristos # to be the way of modern systems, but it's conceivable.) 85347d62b00eSchristos 85357d62b00eSchristos # (Note 2: On some systems, notably Darwin, -pthread is not needed 85367d62b00eSchristos # to get POSIX threads support; the API is always present and 85377d62b00eSchristos # active. We could reasonably leave PTHREAD_CFLAGS empty. But 85387d62b00eSchristos # -pthread does define _REENTRANT, and while the Darwin headers 85397d62b00eSchristos # ignore this macro, third-party headers might not.) 85407d62b00eSchristos 85417d62b00eSchristos PTHREAD_CFLAGS="-pthread" 85427d62b00eSchristos PTHREAD_LIBS= 85437d62b00eSchristos 85447d62b00eSchristos ax_pthread_ok=yes 85457d62b00eSchristos 85467d62b00eSchristos # However, older versions of Clang make a point of warning the user 85477d62b00eSchristos # that, in an invocation where only linking and no compilation is 85487d62b00eSchristos # taking place, the -pthread option has no effect ("argument unused 85497d62b00eSchristos # during compilation"). They expect -pthread to be passed in only 85507d62b00eSchristos # when source code is being compiled. 85517d62b00eSchristos # 85527d62b00eSchristos # Problem is, this is at odds with the way Automake and most other 85537d62b00eSchristos # C build frameworks function, which is that the same flags used in 85547d62b00eSchristos # compilation (CFLAGS) are also used in linking. Many systems 85557d62b00eSchristos # supported by AX_PTHREAD require exactly this for POSIX threads 85567d62b00eSchristos # support, and in fact it is often not straightforward to specify a 85577d62b00eSchristos # flag that is used only in the compilation phase and not in 85587d62b00eSchristos # linking. Such a scenario is extremely rare in practice. 85597d62b00eSchristos # 85607d62b00eSchristos # Even though use of the -pthread flag in linking would only print 85617d62b00eSchristos # a warning, this can be a nuisance for well-run software projects 85627d62b00eSchristos # that build with -Werror. So if the active version of Clang has 85637d62b00eSchristos # this misfeature, we search for an option to squash it. 85647d62b00eSchristos 85657d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 85667d62b00eSchristos$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 85677d62b00eSchristosif ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then : 85687d62b00eSchristos $as_echo_n "(cached) " >&6 85697d62b00eSchristoselse 85707d62b00eSchristos ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 85717d62b00eSchristos # Create an alternate version of $ac_link that compiles and 85727d62b00eSchristos # links in two steps (.c -> .o, .o -> exe) instead of one 85737d62b00eSchristos # (.c -> exe), because the warning occurs only in the second 85747d62b00eSchristos # step 85757d62b00eSchristos ax_pthread_save_ac_link="$ac_link" 85767d62b00eSchristos ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 85777d62b00eSchristos ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` 85787d62b00eSchristos ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 85797d62b00eSchristos ax_pthread_save_CFLAGS="$CFLAGS" 85807d62b00eSchristos for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 85817d62b00eSchristos if test "x$ax_pthread_try" = "xunknown"; then : 85827d62b00eSchristos break 85837d62b00eSchristosfi 85847d62b00eSchristos CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 85857d62b00eSchristos ac_link="$ax_pthread_save_ac_link" 85867d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 85877d62b00eSchristos/* end confdefs.h. */ 85887d62b00eSchristosint main(void){return 0;} 85897d62b00eSchristos_ACEOF 85907d62b00eSchristosif ac_fn_c_try_link "$LINENO"; then : 85917d62b00eSchristos ac_link="$ax_pthread_2step_ac_link" 85927d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 85937d62b00eSchristos/* end confdefs.h. */ 85947d62b00eSchristosint main(void){return 0;} 85957d62b00eSchristos_ACEOF 85967d62b00eSchristosif ac_fn_c_try_link "$LINENO"; then : 85977d62b00eSchristos break 85987d62b00eSchristosfi 85997d62b00eSchristosrm -f core conftest.err conftest.$ac_objext \ 86007d62b00eSchristos conftest$ac_exeext conftest.$ac_ext 86017d62b00eSchristos 86027d62b00eSchristosfi 86037d62b00eSchristosrm -f core conftest.err conftest.$ac_objext \ 86047d62b00eSchristos conftest$ac_exeext conftest.$ac_ext 86057d62b00eSchristos done 86067d62b00eSchristos ac_link="$ax_pthread_save_ac_link" 86077d62b00eSchristos CFLAGS="$ax_pthread_save_CFLAGS" 86087d62b00eSchristos if test "x$ax_pthread_try" = "x"; then : 86097d62b00eSchristos ax_pthread_try=no 86107d62b00eSchristosfi 86117d62b00eSchristos ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 86127d62b00eSchristos 86137d62b00eSchristosfi 86147d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 86157d62b00eSchristos$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 86167d62b00eSchristos 86177d62b00eSchristos case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 86187d62b00eSchristos no | unknown) ;; 86197d62b00eSchristos *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 86207d62b00eSchristos esac 86217d62b00eSchristos 86227d62b00eSchristosfi # $ax_pthread_clang = yes 86237d62b00eSchristos 86247d62b00eSchristosif test "x$ax_pthread_ok" = "xno"; then 86257d62b00eSchristosfor ax_pthread_try_flag in $ax_pthread_flags; do 86267d62b00eSchristos 86277d62b00eSchristos case $ax_pthread_try_flag in 86287d62b00eSchristos none) 86297d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 86307d62b00eSchristos$as_echo_n "checking whether pthreads work without any flags... " >&6; } 86317d62b00eSchristos ;; 86327d62b00eSchristos 86337d62b00eSchristos -mt,pthread) 86347d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 86357d62b00eSchristos$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } 86367d62b00eSchristos PTHREAD_CFLAGS="-mt" 86377d62b00eSchristos PTHREAD_LIBS="-lpthread" 86387d62b00eSchristos ;; 86397d62b00eSchristos 86407d62b00eSchristos -*) 86417d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 86427d62b00eSchristos$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 86437d62b00eSchristos PTHREAD_CFLAGS="$ax_pthread_try_flag" 86447d62b00eSchristos ;; 86457d62b00eSchristos 86467d62b00eSchristos pthread-config) 86477d62b00eSchristos # Extract the first word of "pthread-config", so it can be a program name with args. 86487d62b00eSchristosset dummy pthread-config; ac_word=$2 86497d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 86507d62b00eSchristos$as_echo_n "checking for $ac_word... " >&6; } 86517d62b00eSchristosif ${ac_cv_prog_ax_pthread_config+:} false; then : 86527d62b00eSchristos $as_echo_n "(cached) " >&6 86537d62b00eSchristoselse 86547d62b00eSchristos if test -n "$ax_pthread_config"; then 86557d62b00eSchristos ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 86567d62b00eSchristoselse 86577d62b00eSchristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 86587d62b00eSchristosfor as_dir in $PATH 86597d62b00eSchristosdo 86607d62b00eSchristos IFS=$as_save_IFS 86617d62b00eSchristos test -z "$as_dir" && as_dir=. 86627d62b00eSchristos for ac_exec_ext in '' $ac_executable_extensions; do 86637d62b00eSchristos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 86647d62b00eSchristos ac_cv_prog_ax_pthread_config="yes" 86657d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 86667d62b00eSchristos break 2 86677d62b00eSchristos fi 86687d62b00eSchristosdone 86697d62b00eSchristos done 86707d62b00eSchristosIFS=$as_save_IFS 86717d62b00eSchristos 86727d62b00eSchristos test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 86737d62b00eSchristosfi 86747d62b00eSchristosfi 86757d62b00eSchristosax_pthread_config=$ac_cv_prog_ax_pthread_config 86767d62b00eSchristosif test -n "$ax_pthread_config"; then 86777d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 86787d62b00eSchristos$as_echo "$ax_pthread_config" >&6; } 86797d62b00eSchristoselse 86807d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 86817d62b00eSchristos$as_echo "no" >&6; } 86827d62b00eSchristosfi 86837d62b00eSchristos 86847d62b00eSchristos 86857d62b00eSchristos if test "x$ax_pthread_config" = "xno"; then : 86867d62b00eSchristos continue 86877d62b00eSchristosfi 86887d62b00eSchristos PTHREAD_CFLAGS="`pthread-config --cflags`" 86897d62b00eSchristos PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 86907d62b00eSchristos ;; 86917d62b00eSchristos 86927d62b00eSchristos *) 86937d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 86947d62b00eSchristos$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 86957d62b00eSchristos PTHREAD_LIBS="-l$ax_pthread_try_flag" 86967d62b00eSchristos ;; 86977d62b00eSchristos esac 86987d62b00eSchristos 86997d62b00eSchristos ax_pthread_save_CFLAGS="$CFLAGS" 87007d62b00eSchristos ax_pthread_save_LIBS="$LIBS" 87017d62b00eSchristos CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 87027d62b00eSchristos LIBS="$PTHREAD_LIBS $LIBS" 87037d62b00eSchristos 87047d62b00eSchristos # Check for various functions. We must include pthread.h, 87057d62b00eSchristos # since some functions may be macros. (On the Sequent, we 87067d62b00eSchristos # need a special flag -Kthread to make this header compile.) 87077d62b00eSchristos # We check for pthread_join because it is in -lpthread on IRIX 87087d62b00eSchristos # while pthread_create is in libc. We check for pthread_attr_init 87097d62b00eSchristos # due to DEC craziness with -lpthreads. We check for 87107d62b00eSchristos # pthread_cleanup_push because it is one of the few pthread 87117d62b00eSchristos # functions on Solaris that doesn't have a non-functional libc stub. 87127d62b00eSchristos # We try pthread_create on general principles. 87137d62b00eSchristos 87147d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 87157d62b00eSchristos/* end confdefs.h. */ 87167d62b00eSchristos#include <pthread.h> 87177d62b00eSchristos# if $ax_pthread_check_cond 87187d62b00eSchristos# error "$ax_pthread_check_macro must be defined" 87197d62b00eSchristos# endif 87207d62b00eSchristos static void routine(void *a) { a = 0; } 87217d62b00eSchristos static void *start_routine(void *a) { return a; } 87227d62b00eSchristosint 87237d62b00eSchristosmain () 87247d62b00eSchristos{ 87257d62b00eSchristospthread_t th; pthread_attr_t attr; 87267d62b00eSchristos pthread_create(&th, 0, start_routine, 0); 87277d62b00eSchristos pthread_join(th, 0); 87287d62b00eSchristos pthread_attr_init(&attr); 87297d62b00eSchristos pthread_cleanup_push(routine, 0); 87307d62b00eSchristos pthread_cleanup_pop(0) /* ; */ 87317d62b00eSchristos ; 87327d62b00eSchristos return 0; 87337d62b00eSchristos} 87347d62b00eSchristos_ACEOF 87357d62b00eSchristosif ac_fn_c_try_link "$LINENO"; then : 87367d62b00eSchristos ax_pthread_ok=yes 87377d62b00eSchristosfi 87387d62b00eSchristosrm -f core conftest.err conftest.$ac_objext \ 87397d62b00eSchristos conftest$ac_exeext conftest.$ac_ext 87407d62b00eSchristos 87417d62b00eSchristos CFLAGS="$ax_pthread_save_CFLAGS" 87427d62b00eSchristos LIBS="$ax_pthread_save_LIBS" 87437d62b00eSchristos 87447d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 87457d62b00eSchristos$as_echo "$ax_pthread_ok" >&6; } 87467d62b00eSchristos if test "x$ax_pthread_ok" = "xyes"; then : 87477d62b00eSchristos break 87487d62b00eSchristosfi 87497d62b00eSchristos 87507d62b00eSchristos PTHREAD_LIBS="" 87517d62b00eSchristos PTHREAD_CFLAGS="" 87527d62b00eSchristosdone 87537d62b00eSchristosfi 87547d62b00eSchristos 87557d62b00eSchristos# Various other checks: 87567d62b00eSchristosif test "x$ax_pthread_ok" = "xyes"; then 87577d62b00eSchristos ax_pthread_save_CFLAGS="$CFLAGS" 87587d62b00eSchristos ax_pthread_save_LIBS="$LIBS" 87597d62b00eSchristos CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 87607d62b00eSchristos LIBS="$PTHREAD_LIBS $LIBS" 87617d62b00eSchristos 87627d62b00eSchristos # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 87637d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 87647d62b00eSchristos$as_echo_n "checking for joinable pthread attribute... " >&6; } 87657d62b00eSchristosif ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : 87667d62b00eSchristos $as_echo_n "(cached) " >&6 87677d62b00eSchristoselse 87687d62b00eSchristos ax_cv_PTHREAD_JOINABLE_ATTR=unknown 87697d62b00eSchristos for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 87707d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 87717d62b00eSchristos/* end confdefs.h. */ 87727d62b00eSchristos#include <pthread.h> 87737d62b00eSchristosint 87747d62b00eSchristosmain () 87757d62b00eSchristos{ 87767d62b00eSchristosint attr = $ax_pthread_attr; return attr /* ; */ 87777d62b00eSchristos ; 87787d62b00eSchristos return 0; 87797d62b00eSchristos} 87807d62b00eSchristos_ACEOF 87817d62b00eSchristosif ac_fn_c_try_link "$LINENO"; then : 87827d62b00eSchristos ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 87837d62b00eSchristosfi 87847d62b00eSchristosrm -f core conftest.err conftest.$ac_objext \ 87857d62b00eSchristos conftest$ac_exeext conftest.$ac_ext 87867d62b00eSchristos done 87877d62b00eSchristos 87887d62b00eSchristosfi 87897d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 87907d62b00eSchristos$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 87917d62b00eSchristos if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 87927d62b00eSchristos test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 87937d62b00eSchristos test "x$ax_pthread_joinable_attr_defined" != "xyes"; then : 87947d62b00eSchristos 87957d62b00eSchristoscat >>confdefs.h <<_ACEOF 87967d62b00eSchristos#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR 87977d62b00eSchristos_ACEOF 87987d62b00eSchristos 87997d62b00eSchristos ax_pthread_joinable_attr_defined=yes 88007d62b00eSchristos 88017d62b00eSchristosfi 88027d62b00eSchristos 88037d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 88047d62b00eSchristos$as_echo_n "checking whether more special flags are required for pthreads... " >&6; } 88057d62b00eSchristosif ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : 88067d62b00eSchristos $as_echo_n "(cached) " >&6 88077d62b00eSchristoselse 88087d62b00eSchristos ax_cv_PTHREAD_SPECIAL_FLAGS=no 88097d62b00eSchristos case $host_os in 88107d62b00eSchristos solaris*) 88117d62b00eSchristos ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 88127d62b00eSchristos ;; 88137d62b00eSchristos esac 88147d62b00eSchristos 88157d62b00eSchristosfi 88167d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 88177d62b00eSchristos$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 88187d62b00eSchristos if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 88197d62b00eSchristos test "x$ax_pthread_special_flags_added" != "xyes"; then : 88207d62b00eSchristos PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 88217d62b00eSchristos ax_pthread_special_flags_added=yes 88227d62b00eSchristosfi 88237d62b00eSchristos 88247d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 88257d62b00eSchristos$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 88267d62b00eSchristosif ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 88277d62b00eSchristos $as_echo_n "(cached) " >&6 88287d62b00eSchristoselse 88297d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 88307d62b00eSchristos/* end confdefs.h. */ 88317d62b00eSchristos#include <pthread.h> 88327d62b00eSchristosint 88337d62b00eSchristosmain () 88347d62b00eSchristos{ 88357d62b00eSchristosint i = PTHREAD_PRIO_INHERIT; 88367d62b00eSchristos ; 88377d62b00eSchristos return 0; 88387d62b00eSchristos} 88397d62b00eSchristos_ACEOF 88407d62b00eSchristosif ac_fn_c_try_link "$LINENO"; then : 88417d62b00eSchristos ax_cv_PTHREAD_PRIO_INHERIT=yes 88427d62b00eSchristoselse 88437d62b00eSchristos ax_cv_PTHREAD_PRIO_INHERIT=no 88447d62b00eSchristosfi 88457d62b00eSchristosrm -f core conftest.err conftest.$ac_objext \ 88467d62b00eSchristos conftest$ac_exeext conftest.$ac_ext 88477d62b00eSchristos 88487d62b00eSchristosfi 88497d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 88507d62b00eSchristos$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 88517d62b00eSchristos if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 88527d62b00eSchristos test "x$ax_pthread_prio_inherit_defined" != "xyes"; then : 88537d62b00eSchristos 88547d62b00eSchristos$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 88557d62b00eSchristos 88567d62b00eSchristos ax_pthread_prio_inherit_defined=yes 88577d62b00eSchristos 88587d62b00eSchristosfi 88597d62b00eSchristos 88607d62b00eSchristos CFLAGS="$ax_pthread_save_CFLAGS" 88617d62b00eSchristos LIBS="$ax_pthread_save_LIBS" 88627d62b00eSchristos 88637d62b00eSchristos # More AIX lossage: compile with *_r variant 88647d62b00eSchristos if test "x$GCC" != "xyes"; then 88657d62b00eSchristos case $host_os in 88667d62b00eSchristos aix*) 88677d62b00eSchristos case "x/$CC" in #( 88687d62b00eSchristos x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 88697d62b00eSchristos #handle absolute path differently from PATH based program lookup 88707d62b00eSchristos case "x$CC" in #( 88717d62b00eSchristos x/*) : 88727d62b00eSchristos if as_fn_executable_p ${CC}_r; then : 88737d62b00eSchristos PTHREAD_CC="${CC}_r" 88747d62b00eSchristosfi ;; #( 88757d62b00eSchristos *) : 88767d62b00eSchristos for ac_prog in ${CC}_r 88777d62b00eSchristosdo 88787d62b00eSchristos # Extract the first word of "$ac_prog", so it can be a program name with args. 88797d62b00eSchristosset dummy $ac_prog; ac_word=$2 88807d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 88817d62b00eSchristos$as_echo_n "checking for $ac_word... " >&6; } 88827d62b00eSchristosif ${ac_cv_prog_PTHREAD_CC+:} false; then : 88837d62b00eSchristos $as_echo_n "(cached) " >&6 88847d62b00eSchristoselse 88857d62b00eSchristos if test -n "$PTHREAD_CC"; then 88867d62b00eSchristos ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 88877d62b00eSchristoselse 88887d62b00eSchristosas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 88897d62b00eSchristosfor as_dir in $PATH 88907d62b00eSchristosdo 88917d62b00eSchristos IFS=$as_save_IFS 88927d62b00eSchristos test -z "$as_dir" && as_dir=. 88937d62b00eSchristos for ac_exec_ext in '' $ac_executable_extensions; do 88947d62b00eSchristos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 88957d62b00eSchristos ac_cv_prog_PTHREAD_CC="$ac_prog" 88967d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 88977d62b00eSchristos break 2 88987d62b00eSchristos fi 88997d62b00eSchristosdone 89007d62b00eSchristos done 89017d62b00eSchristosIFS=$as_save_IFS 89027d62b00eSchristos 89037d62b00eSchristosfi 89047d62b00eSchristosfi 89057d62b00eSchristosPTHREAD_CC=$ac_cv_prog_PTHREAD_CC 89067d62b00eSchristosif test -n "$PTHREAD_CC"; then 89077d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 89087d62b00eSchristos$as_echo "$PTHREAD_CC" >&6; } 89097d62b00eSchristoselse 89107d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 89117d62b00eSchristos$as_echo "no" >&6; } 89127d62b00eSchristosfi 89137d62b00eSchristos 89147d62b00eSchristos 89157d62b00eSchristos test -n "$PTHREAD_CC" && break 89167d62b00eSchristosdone 89177d62b00eSchristostest -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 89187d62b00eSchristos ;; 89197d62b00eSchristosesac ;; #( 89207d62b00eSchristos *) : 89217d62b00eSchristos ;; 89227d62b00eSchristosesac 89237d62b00eSchristos ;; 89247d62b00eSchristos esac 89257d62b00eSchristos fi 89267d62b00eSchristosfi 89277d62b00eSchristos 89287d62b00eSchristostest -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 89297d62b00eSchristos 89307d62b00eSchristos 89317d62b00eSchristos 89327d62b00eSchristos 89337d62b00eSchristos 89347d62b00eSchristos# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 89357d62b00eSchristosif test "x$ax_pthread_ok" = "xyes"; then 89367d62b00eSchristos threads=yes 89377d62b00eSchristos : 89387d62b00eSchristoselse 89397d62b00eSchristos ax_pthread_ok=no 89407d62b00eSchristos threads=no 89417d62b00eSchristosfi 89427d62b00eSchristosac_ext=cpp 89437d62b00eSchristosac_cpp='$CXXCPP $CPPFLAGS' 89447d62b00eSchristosac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 89457d62b00eSchristosac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 89467d62b00eSchristosac_compiler_gnu=$ac_cv_cxx_compiler_gnu 89477d62b00eSchristos 89487d62b00eSchristos 89497d62b00eSchristos save_LIBS="$LIBS" 89507d62b00eSchristos LIBS="$PTHREAD_LIBS $LIBS" 89517d62b00eSchristos save_CXXFLAGS="$CXXFLAGS" 89527d62b00eSchristos CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS" 89537d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5 89547d62b00eSchristos$as_echo_n "checking for std::thread... " >&6; } 89557d62b00eSchristosif ${gdb_cv_cxx_std_thread+:} false; then : 89567d62b00eSchristos $as_echo_n "(cached) " >&6 89577d62b00eSchristoselse 89587d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 89597d62b00eSchristos/* end confdefs.h. */ 8960*6881a400Schristos #if defined (__MINGW32__) || defined (__CYGWIN__) 8961*6881a400Schristos # ifdef _WIN32_WINNT 8962*6881a400Schristos # if _WIN32_WINNT < 0x0501 8963*6881a400Schristos # undef _WIN32_WINNT 8964*6881a400Schristos # define _WIN32_WINNT 0x0501 8965*6881a400Schristos # endif 8966*6881a400Schristos # else 8967*6881a400Schristos # define _WIN32_WINNT 0x0501 8968*6881a400Schristos # endif 8969*6881a400Schristos #endif /* __MINGW32__ || __CYGWIN__ */ 89707d62b00eSchristos #include <thread> 89717d62b00eSchristos void callback() { } 89727d62b00eSchristosint 89737d62b00eSchristosmain () 89747d62b00eSchristos{ 89757d62b00eSchristosstd::thread t(callback); 89767d62b00eSchristos ; 89777d62b00eSchristos return 0; 89787d62b00eSchristos} 89797d62b00eSchristos_ACEOF 89807d62b00eSchristosif ac_fn_cxx_try_compile "$LINENO"; then : 89817d62b00eSchristos gdb_cv_cxx_std_thread=yes 89827d62b00eSchristoselse 89837d62b00eSchristos gdb_cv_cxx_std_thread=no 89847d62b00eSchristosfi 89857d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 89867d62b00eSchristosfi 89877d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5 89887d62b00eSchristos$as_echo "$gdb_cv_cxx_std_thread" >&6; } 89897d62b00eSchristos 8990*6881a400Schristos if test "$threads" = "yes"; then 89917d62b00eSchristos # This check must be here, while LIBS includes any necessary 89927d62b00eSchristos # threading library. 89937d62b00eSchristos for ac_func in pthread_sigmask pthread_setname_np 89947d62b00eSchristosdo : 89957d62b00eSchristos as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 89967d62b00eSchristosac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 89977d62b00eSchristosif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 89987d62b00eSchristos cat >>confdefs.h <<_ACEOF 89997d62b00eSchristos#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 90007d62b00eSchristos_ACEOF 90017d62b00eSchristos 90027d62b00eSchristosfi 90037d62b00eSchristosdone 90047d62b00eSchristos 9005*6881a400Schristos fi 90067d62b00eSchristos LIBS="$save_LIBS" 90077d62b00eSchristos CXXFLAGS="$save_CXXFLAGS" 9008*6881a400Schristos 9009*6881a400Schristos if test "$want_threading" = "yes"; then 90107d62b00eSchristos if test "$gdb_cv_cxx_std_thread" = "yes"; then 90117d62b00eSchristos 90127d62b00eSchristos$as_echo "#define CXX_STD_THREAD 1" >>confdefs.h 90137d62b00eSchristos 90147d62b00eSchristos fi 9015*6881a400Schristos fi 90167d62b00eSchristos ac_ext=c 90177d62b00eSchristosac_cpp='$CPP $CPPFLAGS' 90187d62b00eSchristosac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 90197d62b00eSchristosac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 90207d62b00eSchristosac_compiler_gnu=$ac_cv_c_compiler_gnu 90217d62b00eSchristos 90227d62b00eSchristos 90237d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5 90247d62b00eSchristos$as_echo_n "checking for sigsetjmp... " >&6; } 90257d62b00eSchristosif ${gdb_cv_func_sigsetjmp+:} false; then : 90267d62b00eSchristos $as_echo_n "(cached) " >&6 90277d62b00eSchristoselse 90287d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90297d62b00eSchristos/* end confdefs.h. */ 90307d62b00eSchristos#include <setjmp.h> 90317d62b00eSchristosint 90327d62b00eSchristosmain () 90337d62b00eSchristos{ 9034*6881a400Schristossigjmp_buf env; 9035*6881a400Schristos while (! sigsetjmp (env, 1)) 9036*6881a400Schristos siglongjmp (env, 1); 9037*6881a400Schristos 90387d62b00eSchristos ; 90397d62b00eSchristos return 0; 90407d62b00eSchristos} 90417d62b00eSchristos_ACEOF 90427d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 90437d62b00eSchristos gdb_cv_func_sigsetjmp=yes 90447d62b00eSchristoselse 90457d62b00eSchristos gdb_cv_func_sigsetjmp=no 9046*6881a400Schristos 90477d62b00eSchristosfi 90487d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9049*6881a400Schristos 90507d62b00eSchristosfi 90517d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5 90527d62b00eSchristos$as_echo "$gdb_cv_func_sigsetjmp" >&6; } 90537d62b00eSchristos if test "$gdb_cv_func_sigsetjmp" = "yes"; then 90547d62b00eSchristos 90557d62b00eSchristos$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h 90567d62b00eSchristos 90577d62b00eSchristos fi 90587d62b00eSchristos 90597d62b00eSchristos 90607d62b00eSchristos# Check whether --with-intel_pt was given. 90617d62b00eSchristosif test "${with_intel_pt+set}" = set; then : 90627d62b00eSchristos withval=$with_intel_pt; 90637d62b00eSchristoselse 90647d62b00eSchristos with_intel_pt=auto 90657d62b00eSchristosfi 90667d62b00eSchristos 90677d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5 90687d62b00eSchristos$as_echo_n "checking whether to use intel pt... " >&6; } 90697d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5 90707d62b00eSchristos$as_echo "$with_intel_pt" >&6; } 90717d62b00eSchristos 90727d62b00eSchristos if test "${with_intel_pt}" = no; then 90737d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5 90747d62b00eSchristos$as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;} 90757d62b00eSchristos HAVE_LIBIPT=no 90767d62b00eSchristos else 90777d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90787d62b00eSchristos/* end confdefs.h. */ 90797d62b00eSchristos 90807d62b00eSchristos #include <linux/perf_event.h> 90817d62b00eSchristos #ifndef PERF_ATTR_SIZE_VER5 90827d62b00eSchristos # error 90837d62b00eSchristos #endif 90847d62b00eSchristos 90857d62b00eSchristos_ACEOF 90867d62b00eSchristosif ac_fn_c_try_cpp "$LINENO"; then : 90877d62b00eSchristos perf_event=yes 90887d62b00eSchristoselse 90897d62b00eSchristos perf_event=no 90907d62b00eSchristosfi 90917d62b00eSchristosrm -f conftest.err conftest.i conftest.$ac_ext 90927d62b00eSchristos if test "$perf_event" != yes; then 90937d62b00eSchristos if test "$with_intel_pt" = yes; then 90947d62b00eSchristos as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5 90957d62b00eSchristos else 90967d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5 90977d62b00eSchristos$as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;} 90987d62b00eSchristos fi 90997d62b00eSchristos fi 91007d62b00eSchristos 91017d62b00eSchristos 91027d62b00eSchristos 91037d62b00eSchristos 91047d62b00eSchristos 91057d62b00eSchristos 91067d62b00eSchristos 91077d62b00eSchristos 91087d62b00eSchristos 91097d62b00eSchristos use_additional=yes 91107d62b00eSchristos 91117d62b00eSchristos acl_save_prefix="$prefix" 91127d62b00eSchristos prefix="$acl_final_prefix" 91137d62b00eSchristos acl_save_exec_prefix="$exec_prefix" 91147d62b00eSchristos exec_prefix="$acl_final_exec_prefix" 91157d62b00eSchristos 91167d62b00eSchristos eval additional_includedir=\"$includedir\" 91177d62b00eSchristos eval additional_libdir=\"$libdir\" 91187d62b00eSchristos 91197d62b00eSchristos exec_prefix="$acl_save_exec_prefix" 91207d62b00eSchristos prefix="$acl_save_prefix" 91217d62b00eSchristos 91227d62b00eSchristos 91237d62b00eSchristos# Check whether --with-libipt-prefix was given. 91247d62b00eSchristosif test "${with_libipt_prefix+set}" = set; then : 91257d62b00eSchristos withval=$with_libipt_prefix; 91267d62b00eSchristos if test "X$withval" = "Xno"; then 91277d62b00eSchristos use_additional=no 91287d62b00eSchristos else 91297d62b00eSchristos if test "X$withval" = "X"; then 91307d62b00eSchristos 91317d62b00eSchristos acl_save_prefix="$prefix" 91327d62b00eSchristos prefix="$acl_final_prefix" 91337d62b00eSchristos acl_save_exec_prefix="$exec_prefix" 91347d62b00eSchristos exec_prefix="$acl_final_exec_prefix" 91357d62b00eSchristos 91367d62b00eSchristos eval additional_includedir=\"$includedir\" 91377d62b00eSchristos eval additional_libdir=\"$libdir\" 91387d62b00eSchristos 91397d62b00eSchristos exec_prefix="$acl_save_exec_prefix" 91407d62b00eSchristos prefix="$acl_save_prefix" 91417d62b00eSchristos 91427d62b00eSchristos else 91437d62b00eSchristos additional_includedir="$withval/include" 91447d62b00eSchristos additional_libdir="$withval/lib" 91457d62b00eSchristos fi 91467d62b00eSchristos fi 91477d62b00eSchristos 91487d62b00eSchristosfi 91497d62b00eSchristos 91507d62b00eSchristos 91517d62b00eSchristos# Check whether --with-libipt-type was given. 91527d62b00eSchristosif test "${with_libipt_type+set}" = set; then : 91537d62b00eSchristos withval=$with_libipt_type; with_libipt_type=$withval 91547d62b00eSchristoselse 91557d62b00eSchristos with_libipt_type=auto 91567d62b00eSchristosfi 91577d62b00eSchristos 91587d62b00eSchristos lib_type=`eval echo \$with_libipt_type` 91597d62b00eSchristos 91607d62b00eSchristos LIBIPT= 91617d62b00eSchristos LTLIBIPT= 91627d62b00eSchristos INCIPT= 91637d62b00eSchristos rpathdirs= 91647d62b00eSchristos ltrpathdirs= 91657d62b00eSchristos names_already_handled= 91667d62b00eSchristos names_next_round='ipt ' 91677d62b00eSchristos while test -n "$names_next_round"; do 91687d62b00eSchristos names_this_round="$names_next_round" 91697d62b00eSchristos names_next_round= 91707d62b00eSchristos for name in $names_this_round; do 91717d62b00eSchristos already_handled= 91727d62b00eSchristos for n in $names_already_handled; do 91737d62b00eSchristos if test "$n" = "$name"; then 91747d62b00eSchristos already_handled=yes 91757d62b00eSchristos break 91767d62b00eSchristos fi 91777d62b00eSchristos done 91787d62b00eSchristos if test -z "$already_handled"; then 91797d62b00eSchristos names_already_handled="$names_already_handled $name" 91807d62b00eSchristos uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 91817d62b00eSchristos eval value=\"\$HAVE_LIB$uppername\" 91827d62b00eSchristos if test -n "$value"; then 91837d62b00eSchristos if test "$value" = yes; then 91847d62b00eSchristos eval value=\"\$LIB$uppername\" 91857d62b00eSchristos test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value" 91867d62b00eSchristos eval value=\"\$LTLIB$uppername\" 91877d62b00eSchristos test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value" 91887d62b00eSchristos else 91897d62b00eSchristos : 91907d62b00eSchristos fi 91917d62b00eSchristos else 91927d62b00eSchristos found_dir= 91937d62b00eSchristos found_la= 91947d62b00eSchristos found_so= 91957d62b00eSchristos found_a= 91967d62b00eSchristos if test $use_additional = yes; then 91977d62b00eSchristos if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 91987d62b00eSchristos found_dir="$additional_libdir" 91997d62b00eSchristos found_so="$additional_libdir/lib$name.$shlibext" 92007d62b00eSchristos if test -f "$additional_libdir/lib$name.la"; then 92017d62b00eSchristos found_la="$additional_libdir/lib$name.la" 92027d62b00eSchristos fi 92037d62b00eSchristos elif test x$lib_type != xshared; then 92047d62b00eSchristos if test -f "$additional_libdir/lib$name.$libext"; then 92057d62b00eSchristos found_dir="$additional_libdir" 92067d62b00eSchristos found_a="$additional_libdir/lib$name.$libext" 92077d62b00eSchristos if test -f "$additional_libdir/lib$name.la"; then 92087d62b00eSchristos found_la="$additional_libdir/lib$name.la" 92097d62b00eSchristos fi 92107d62b00eSchristos fi 92117d62b00eSchristos fi 92127d62b00eSchristos fi 92137d62b00eSchristos if test "X$found_dir" = "X"; then 92147d62b00eSchristos for x in $LDFLAGS $LTLIBIPT; do 92157d62b00eSchristos 92167d62b00eSchristos acl_save_prefix="$prefix" 92177d62b00eSchristos prefix="$acl_final_prefix" 92187d62b00eSchristos acl_save_exec_prefix="$exec_prefix" 92197d62b00eSchristos exec_prefix="$acl_final_exec_prefix" 92207d62b00eSchristos eval x=\"$x\" 92217d62b00eSchristos exec_prefix="$acl_save_exec_prefix" 92227d62b00eSchristos prefix="$acl_save_prefix" 92237d62b00eSchristos 92247d62b00eSchristos case "$x" in 92257d62b00eSchristos -L*) 92267d62b00eSchristos dir=`echo "X$x" | sed -e 's/^X-L//'` 92277d62b00eSchristos if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 92287d62b00eSchristos found_dir="$dir" 92297d62b00eSchristos found_so="$dir/lib$name.$shlibext" 92307d62b00eSchristos if test -f "$dir/lib$name.la"; then 92317d62b00eSchristos found_la="$dir/lib$name.la" 92327d62b00eSchristos fi 92337d62b00eSchristos elif test x$lib_type != xshared; then 92347d62b00eSchristos if test -f "$dir/lib$name.$libext"; then 92357d62b00eSchristos found_dir="$dir" 92367d62b00eSchristos found_a="$dir/lib$name.$libext" 92377d62b00eSchristos if test -f "$dir/lib$name.la"; then 92387d62b00eSchristos found_la="$dir/lib$name.la" 92397d62b00eSchristos fi 92407d62b00eSchristos fi 92417d62b00eSchristos fi 92427d62b00eSchristos ;; 92437d62b00eSchristos esac 92447d62b00eSchristos if test "X$found_dir" != "X"; then 92457d62b00eSchristos break 92467d62b00eSchristos fi 92477d62b00eSchristos done 92487d62b00eSchristos fi 92497d62b00eSchristos if test "X$found_dir" != "X"; then 92507d62b00eSchristos LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name" 92517d62b00eSchristos if test "X$found_so" != "X"; then 92527d62b00eSchristos if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 92537d62b00eSchristos LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so" 92547d62b00eSchristos else 92557d62b00eSchristos haveit= 92567d62b00eSchristos for x in $ltrpathdirs; do 92577d62b00eSchristos if test "X$x" = "X$found_dir"; then 92587d62b00eSchristos haveit=yes 92597d62b00eSchristos break 92607d62b00eSchristos fi 92617d62b00eSchristos done 92627d62b00eSchristos if test -z "$haveit"; then 92637d62b00eSchristos ltrpathdirs="$ltrpathdirs $found_dir" 92647d62b00eSchristos fi 92657d62b00eSchristos if test "$hardcode_direct" = yes; then 92667d62b00eSchristos LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so" 92677d62b00eSchristos else 92687d62b00eSchristos if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 92697d62b00eSchristos LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so" 92707d62b00eSchristos haveit= 92717d62b00eSchristos for x in $rpathdirs; do 92727d62b00eSchristos if test "X$x" = "X$found_dir"; then 92737d62b00eSchristos haveit=yes 92747d62b00eSchristos break 92757d62b00eSchristos fi 92767d62b00eSchristos done 92777d62b00eSchristos if test -z "$haveit"; then 92787d62b00eSchristos rpathdirs="$rpathdirs $found_dir" 92797d62b00eSchristos fi 92807d62b00eSchristos else 92817d62b00eSchristos haveit= 92827d62b00eSchristos for x in $LDFLAGS $LIBIPT; do 92837d62b00eSchristos 92847d62b00eSchristos acl_save_prefix="$prefix" 92857d62b00eSchristos prefix="$acl_final_prefix" 92867d62b00eSchristos acl_save_exec_prefix="$exec_prefix" 92877d62b00eSchristos exec_prefix="$acl_final_exec_prefix" 92887d62b00eSchristos eval x=\"$x\" 92897d62b00eSchristos exec_prefix="$acl_save_exec_prefix" 92907d62b00eSchristos prefix="$acl_save_prefix" 92917d62b00eSchristos 92927d62b00eSchristos if test "X$x" = "X-L$found_dir"; then 92937d62b00eSchristos haveit=yes 92947d62b00eSchristos break 92957d62b00eSchristos fi 92967d62b00eSchristos done 92977d62b00eSchristos if test -z "$haveit"; then 92987d62b00eSchristos LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir" 92997d62b00eSchristos fi 93007d62b00eSchristos if test "$hardcode_minus_L" != no; then 93017d62b00eSchristos LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so" 93027d62b00eSchristos else 93037d62b00eSchristos LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name" 93047d62b00eSchristos fi 93057d62b00eSchristos fi 93067d62b00eSchristos fi 93077d62b00eSchristos fi 93087d62b00eSchristos else 93097d62b00eSchristos if test "X$found_a" != "X"; then 93107d62b00eSchristos LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a" 93117d62b00eSchristos else 93127d62b00eSchristos LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name" 93137d62b00eSchristos fi 93147d62b00eSchristos fi 93157d62b00eSchristos additional_includedir= 93167d62b00eSchristos case "$found_dir" in 93177d62b00eSchristos */lib | */lib/) 93187d62b00eSchristos basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 93197d62b00eSchristos additional_includedir="$basedir/include" 93207d62b00eSchristos ;; 93217d62b00eSchristos esac 93227d62b00eSchristos if test "X$additional_includedir" != "X"; then 93237d62b00eSchristos if test "X$additional_includedir" != "X/usr/include"; then 93247d62b00eSchristos haveit= 93257d62b00eSchristos if test "X$additional_includedir" = "X/usr/local/include"; then 93267d62b00eSchristos if test -n "$GCC"; then 93277d62b00eSchristos case $host_os in 93287d62b00eSchristos linux*) haveit=yes;; 93297d62b00eSchristos esac 93307d62b00eSchristos fi 93317d62b00eSchristos fi 93327d62b00eSchristos if test -z "$haveit"; then 93337d62b00eSchristos for x in $CPPFLAGS $INCIPT; do 93347d62b00eSchristos 93357d62b00eSchristos acl_save_prefix="$prefix" 93367d62b00eSchristos prefix="$acl_final_prefix" 93377d62b00eSchristos acl_save_exec_prefix="$exec_prefix" 93387d62b00eSchristos exec_prefix="$acl_final_exec_prefix" 93397d62b00eSchristos eval x=\"$x\" 93407d62b00eSchristos exec_prefix="$acl_save_exec_prefix" 93417d62b00eSchristos prefix="$acl_save_prefix" 93427d62b00eSchristos 93437d62b00eSchristos if test "X$x" = "X-I$additional_includedir"; then 93447d62b00eSchristos haveit=yes 93457d62b00eSchristos break 93467d62b00eSchristos fi 93477d62b00eSchristos done 93487d62b00eSchristos if test -z "$haveit"; then 93497d62b00eSchristos if test -d "$additional_includedir"; then 93507d62b00eSchristos INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir" 93517d62b00eSchristos fi 93527d62b00eSchristos fi 93537d62b00eSchristos fi 93547d62b00eSchristos fi 93557d62b00eSchristos fi 93567d62b00eSchristos if test -n "$found_la"; then 93577d62b00eSchristos save_libdir="$libdir" 93587d62b00eSchristos case "$found_la" in 93597d62b00eSchristos */* | *\\*) . "$found_la" ;; 93607d62b00eSchristos *) . "./$found_la" ;; 93617d62b00eSchristos esac 93627d62b00eSchristos libdir="$save_libdir" 93637d62b00eSchristos for dep in $dependency_libs; do 93647d62b00eSchristos case "$dep" in 93657d62b00eSchristos -L*) 93667d62b00eSchristos additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 93677d62b00eSchristos if test "X$additional_libdir" != "X/usr/lib"; then 93687d62b00eSchristos haveit= 93697d62b00eSchristos if test "X$additional_libdir" = "X/usr/local/lib"; then 93707d62b00eSchristos if test -n "$GCC"; then 93717d62b00eSchristos case $host_os in 93727d62b00eSchristos linux*) haveit=yes;; 93737d62b00eSchristos esac 93747d62b00eSchristos fi 93757d62b00eSchristos fi 93767d62b00eSchristos if test -z "$haveit"; then 93777d62b00eSchristos haveit= 93787d62b00eSchristos for x in $LDFLAGS $LIBIPT; do 93797d62b00eSchristos 93807d62b00eSchristos acl_save_prefix="$prefix" 93817d62b00eSchristos prefix="$acl_final_prefix" 93827d62b00eSchristos acl_save_exec_prefix="$exec_prefix" 93837d62b00eSchristos exec_prefix="$acl_final_exec_prefix" 93847d62b00eSchristos eval x=\"$x\" 93857d62b00eSchristos exec_prefix="$acl_save_exec_prefix" 93867d62b00eSchristos prefix="$acl_save_prefix" 93877d62b00eSchristos 93887d62b00eSchristos if test "X$x" = "X-L$additional_libdir"; then 93897d62b00eSchristos haveit=yes 93907d62b00eSchristos break 93917d62b00eSchristos fi 93927d62b00eSchristos done 93937d62b00eSchristos if test -z "$haveit"; then 93947d62b00eSchristos if test -d "$additional_libdir"; then 93957d62b00eSchristos LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir" 93967d62b00eSchristos fi 93977d62b00eSchristos fi 93987d62b00eSchristos haveit= 93997d62b00eSchristos for x in $LDFLAGS $LTLIBIPT; do 94007d62b00eSchristos 94017d62b00eSchristos acl_save_prefix="$prefix" 94027d62b00eSchristos prefix="$acl_final_prefix" 94037d62b00eSchristos acl_save_exec_prefix="$exec_prefix" 94047d62b00eSchristos exec_prefix="$acl_final_exec_prefix" 94057d62b00eSchristos eval x=\"$x\" 94067d62b00eSchristos exec_prefix="$acl_save_exec_prefix" 94077d62b00eSchristos prefix="$acl_save_prefix" 94087d62b00eSchristos 94097d62b00eSchristos if test "X$x" = "X-L$additional_libdir"; then 94107d62b00eSchristos haveit=yes 94117d62b00eSchristos break 94127d62b00eSchristos fi 94137d62b00eSchristos done 94147d62b00eSchristos if test -z "$haveit"; then 94157d62b00eSchristos if test -d "$additional_libdir"; then 94167d62b00eSchristos LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir" 94177d62b00eSchristos fi 94187d62b00eSchristos fi 94197d62b00eSchristos fi 94207d62b00eSchristos fi 94217d62b00eSchristos ;; 94227d62b00eSchristos -R*) 94237d62b00eSchristos dir=`echo "X$dep" | sed -e 's/^X-R//'` 94247d62b00eSchristos if test "$enable_rpath" != no; then 94257d62b00eSchristos haveit= 94267d62b00eSchristos for x in $rpathdirs; do 94277d62b00eSchristos if test "X$x" = "X$dir"; then 94287d62b00eSchristos haveit=yes 94297d62b00eSchristos break 94307d62b00eSchristos fi 94317d62b00eSchristos done 94327d62b00eSchristos if test -z "$haveit"; then 94337d62b00eSchristos rpathdirs="$rpathdirs $dir" 94347d62b00eSchristos fi 94357d62b00eSchristos haveit= 94367d62b00eSchristos for x in $ltrpathdirs; do 94377d62b00eSchristos if test "X$x" = "X$dir"; then 94387d62b00eSchristos haveit=yes 94397d62b00eSchristos break 94407d62b00eSchristos fi 94417d62b00eSchristos done 94427d62b00eSchristos if test -z "$haveit"; then 94437d62b00eSchristos ltrpathdirs="$ltrpathdirs $dir" 94447d62b00eSchristos fi 94457d62b00eSchristos fi 94467d62b00eSchristos ;; 94477d62b00eSchristos -l*) 94487d62b00eSchristos names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 94497d62b00eSchristos ;; 94507d62b00eSchristos *.la) 94517d62b00eSchristos names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 94527d62b00eSchristos ;; 94537d62b00eSchristos *) 94547d62b00eSchristos LIBIPT="${LIBIPT}${LIBIPT:+ }$dep" 94557d62b00eSchristos LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep" 94567d62b00eSchristos ;; 94577d62b00eSchristos esac 94587d62b00eSchristos done 94597d62b00eSchristos fi 94607d62b00eSchristos else 94617d62b00eSchristos if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 94627d62b00eSchristos LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name" 94637d62b00eSchristos LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name" 94647d62b00eSchristos else 94657d62b00eSchristos LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext" 94667d62b00eSchristos LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext" 94677d62b00eSchristos fi 94687d62b00eSchristos fi 94697d62b00eSchristos fi 94707d62b00eSchristos fi 94717d62b00eSchristos done 94727d62b00eSchristos done 94737d62b00eSchristos if test "X$rpathdirs" != "X"; then 94747d62b00eSchristos if test -n "$hardcode_libdir_separator"; then 94757d62b00eSchristos alldirs= 94767d62b00eSchristos for found_dir in $rpathdirs; do 94777d62b00eSchristos alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 94787d62b00eSchristos done 94797d62b00eSchristos acl_save_libdir="$libdir" 94807d62b00eSchristos libdir="$alldirs" 94817d62b00eSchristos eval flag=\"$hardcode_libdir_flag_spec\" 94827d62b00eSchristos libdir="$acl_save_libdir" 94837d62b00eSchristos LIBIPT="${LIBIPT}${LIBIPT:+ }$flag" 94847d62b00eSchristos else 94857d62b00eSchristos for found_dir in $rpathdirs; do 94867d62b00eSchristos acl_save_libdir="$libdir" 94877d62b00eSchristos libdir="$found_dir" 94887d62b00eSchristos eval flag=\"$hardcode_libdir_flag_spec\" 94897d62b00eSchristos libdir="$acl_save_libdir" 94907d62b00eSchristos LIBIPT="${LIBIPT}${LIBIPT:+ }$flag" 94917d62b00eSchristos done 94927d62b00eSchristos fi 94937d62b00eSchristos fi 94947d62b00eSchristos if test "X$ltrpathdirs" != "X"; then 94957d62b00eSchristos for found_dir in $ltrpathdirs; do 94967d62b00eSchristos LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir" 94977d62b00eSchristos done 94987d62b00eSchristos fi 94997d62b00eSchristos 95007d62b00eSchristos 95017d62b00eSchristos ac_save_CPPFLAGS="$CPPFLAGS" 95027d62b00eSchristos 95037d62b00eSchristos for element in $INCIPT; do 95047d62b00eSchristos haveit= 95057d62b00eSchristos for x in $CPPFLAGS; do 95067d62b00eSchristos 95077d62b00eSchristos acl_save_prefix="$prefix" 95087d62b00eSchristos prefix="$acl_final_prefix" 95097d62b00eSchristos acl_save_exec_prefix="$exec_prefix" 95107d62b00eSchristos exec_prefix="$acl_final_exec_prefix" 95117d62b00eSchristos eval x=\"$x\" 95127d62b00eSchristos exec_prefix="$acl_save_exec_prefix" 95137d62b00eSchristos prefix="$acl_save_prefix" 95147d62b00eSchristos 95157d62b00eSchristos if test "X$x" = "X$element"; then 95167d62b00eSchristos haveit=yes 95177d62b00eSchristos break 95187d62b00eSchristos fi 95197d62b00eSchristos done 95207d62b00eSchristos if test -z "$haveit"; then 95217d62b00eSchristos CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 95227d62b00eSchristos fi 95237d62b00eSchristos done 95247d62b00eSchristos 95257d62b00eSchristos 95267d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5 95277d62b00eSchristos$as_echo_n "checking for libipt... " >&6; } 95287d62b00eSchristosif ${ac_cv_libipt+:} false; then : 95297d62b00eSchristos $as_echo_n "(cached) " >&6 95307d62b00eSchristoselse 95317d62b00eSchristos 95327d62b00eSchristos ac_save_LIBS="$LIBS" 95337d62b00eSchristos LIBS="$LIBS $LIBIPT" 95347d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 95357d62b00eSchristos/* end confdefs.h. */ 95367d62b00eSchristos#include "intel-pt.h" 95377d62b00eSchristosint 95387d62b00eSchristosmain () 95397d62b00eSchristos{ 95407d62b00eSchristospt_insn_alloc_decoder (0); 95417d62b00eSchristos ; 95427d62b00eSchristos return 0; 95437d62b00eSchristos} 95447d62b00eSchristos_ACEOF 95457d62b00eSchristosif ac_fn_c_try_link "$LINENO"; then : 95467d62b00eSchristos ac_cv_libipt=yes 95477d62b00eSchristoselse 95487d62b00eSchristos ac_cv_libipt=no 95497d62b00eSchristosfi 95507d62b00eSchristosrm -f core conftest.err conftest.$ac_objext \ 95517d62b00eSchristos conftest$ac_exeext conftest.$ac_ext 95527d62b00eSchristos LIBS="$ac_save_LIBS" 95537d62b00eSchristos 95547d62b00eSchristosfi 95557d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5 95567d62b00eSchristos$as_echo "$ac_cv_libipt" >&6; } 95577d62b00eSchristos if test "$ac_cv_libipt" = yes; then 95587d62b00eSchristos HAVE_LIBIPT=yes 95597d62b00eSchristos 95607d62b00eSchristos$as_echo "#define HAVE_LIBIPT 1" >>confdefs.h 95617d62b00eSchristos 95627d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5 95637d62b00eSchristos$as_echo_n "checking how to link with libipt... " >&6; } 95647d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5 95657d62b00eSchristos$as_echo "$LIBIPT" >&6; } 95667d62b00eSchristos else 95677d62b00eSchristos HAVE_LIBIPT=no 95687d62b00eSchristos CPPFLAGS="$ac_save_CPPFLAGS" 95697d62b00eSchristos LIBIPT= 95707d62b00eSchristos LTLIBIPT= 95717d62b00eSchristos fi 95727d62b00eSchristos 95737d62b00eSchristos 95747d62b00eSchristos 95757d62b00eSchristos 95767d62b00eSchristos 95777d62b00eSchristos 95787d62b00eSchristos if test "$HAVE_LIBIPT" != yes; then 95797d62b00eSchristos if test "$with_intel_pt" = yes; then 95807d62b00eSchristos as_fn_error $? "libipt is missing or unusable" "$LINENO" 5 95817d62b00eSchristos else 95827d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5 95837d62b00eSchristos$as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;} 95847d62b00eSchristos fi 95857d62b00eSchristos else 95867d62b00eSchristos save_LIBS=$LIBS 95877d62b00eSchristos LIBS="$LIBS $LIBIPT" 95887d62b00eSchristos for ac_func in pt_insn_event 95897d62b00eSchristosdo : 95907d62b00eSchristos ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event" 95917d62b00eSchristosif test "x$ac_cv_func_pt_insn_event" = xyes; then : 95927d62b00eSchristos cat >>confdefs.h <<_ACEOF 95937d62b00eSchristos#define HAVE_PT_INSN_EVENT 1 95947d62b00eSchristos_ACEOF 95957d62b00eSchristos 95967d62b00eSchristosfi 95977d62b00eSchristosdone 95987d62b00eSchristos 95997d62b00eSchristos ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h> 96007d62b00eSchristos" 96017d62b00eSchristosif test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then : 96027d62b00eSchristos 96037d62b00eSchristoscat >>confdefs.h <<_ACEOF 96047d62b00eSchristos#define HAVE_STRUCT_PT_INSN_ENABLED 1 96057d62b00eSchristos_ACEOF 96067d62b00eSchristos 96077d62b00eSchristos 96087d62b00eSchristosfi 96097d62b00eSchristosac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h> 96107d62b00eSchristos" 96117d62b00eSchristosif test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then : 96127d62b00eSchristos 96137d62b00eSchristoscat >>confdefs.h <<_ACEOF 96147d62b00eSchristos#define HAVE_STRUCT_PT_INSN_RESYNCED 1 96157d62b00eSchristos_ACEOF 96167d62b00eSchristos 96177d62b00eSchristos 96187d62b00eSchristosfi 96197d62b00eSchristos 96207d62b00eSchristos LIBS=$save_LIBS 96217d62b00eSchristos fi 96227d62b00eSchristos fi 96237d62b00eSchristos 9624*6881a400Schristos # Check if the compiler and runtime support printing long longs. 9625*6881a400Schristos 9626*6881a400Schristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5 9627*6881a400Schristos$as_echo_n "checking for long long support in printf... " >&6; } 9628*6881a400Schristosif ${gdb_cv_printf_has_long_long+:} false; then : 9629*6881a400Schristos $as_echo_n "(cached) " >&6 9630*6881a400Schristoselse 9631*6881a400Schristos if test "$cross_compiling" = yes; then : 9632*6881a400Schristos gdb_cv_printf_has_long_long=no 9633*6881a400Schristoselse 9634*6881a400Schristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9635*6881a400Schristos/* end confdefs.h. */ 9636*6881a400Schristos$ac_includes_default 9637*6881a400Schristosint 9638*6881a400Schristosmain () 9639*6881a400Schristos{ 9640*6881a400Schristoschar buf[32]; 9641*6881a400Schristos long long l = 0; 9642*6881a400Schristos l = (l << 16) + 0x0123; 9643*6881a400Schristos l = (l << 16) + 0x4567; 9644*6881a400Schristos l = (l << 16) + 0x89ab; 9645*6881a400Schristos l = (l << 16) + 0xcdef; 9646*6881a400Schristos sprintf (buf, "0x%016llx", l); 9647*6881a400Schristos return (strcmp ("0x0123456789abcdef", buf)); 9648*6881a400Schristos ; 9649*6881a400Schristos return 0; 9650*6881a400Schristos} 9651*6881a400Schristos_ACEOF 9652*6881a400Schristosif ac_fn_c_try_run "$LINENO"; then : 9653*6881a400Schristos gdb_cv_printf_has_long_long=yes 9654*6881a400Schristoselse 9655*6881a400Schristos gdb_cv_printf_has_long_long=no 9656*6881a400Schristosfi 9657*6881a400Schristosrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9658*6881a400Schristos conftest.$ac_objext conftest.beam conftest.$ac_ext 9659*6881a400Schristosfi 9660*6881a400Schristos 9661*6881a400Schristosfi 9662*6881a400Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5 9663*6881a400Schristos$as_echo "$gdb_cv_printf_has_long_long" >&6; } 9664*6881a400Schristos if test "$gdb_cv_printf_has_long_long" = yes; then 9665*6881a400Schristos 9666*6881a400Schristos$as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h 9667*6881a400Schristos 9668*6881a400Schristos fi 9669*6881a400Schristos 96707d62b00eSchristos 96717d62b00eSchristos$as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h 96727d62b00eSchristos 96737d62b00eSchristos for ac_header in sys/procfs.h 96747d62b00eSchristosdo : 96757d62b00eSchristos ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default" 96767d62b00eSchristosif test "x$ac_cv_header_sys_procfs_h" = xyes; then : 96777d62b00eSchristos cat >>confdefs.h <<_ACEOF 96787d62b00eSchristos#define HAVE_SYS_PROCFS_H 1 96797d62b00eSchristos_ACEOF 96807d62b00eSchristos 96817d62b00eSchristosfi 96827d62b00eSchristos 96837d62b00eSchristosdone 96847d62b00eSchristos 96857d62b00eSchristos if test "$ac_cv_header_sys_procfs_h" = yes; then 96867d62b00eSchristos 96877d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5 96887d62b00eSchristos$as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; } 96897d62b00eSchristos if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then : 96907d62b00eSchristos $as_echo_n "(cached) " >&6 96917d62b00eSchristoselse 96927d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 96937d62b00eSchristos/* end confdefs.h. */ 96947d62b00eSchristos 96957d62b00eSchristos#define _SYSCALL32 96967d62b00eSchristos#include <sys/procfs.h> 96977d62b00eSchristosint 96987d62b00eSchristosmain () 96997d62b00eSchristos{ 97007d62b00eSchristosgregset_t avar 97017d62b00eSchristos ; 97027d62b00eSchristos return 0; 97037d62b00eSchristos} 97047d62b00eSchristos_ACEOF 97057d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 97067d62b00eSchristos bfd_cv_have_sys_procfs_type_gregset_t=yes 97077d62b00eSchristoselse 97087d62b00eSchristos bfd_cv_have_sys_procfs_type_gregset_t=no 97097d62b00eSchristos 97107d62b00eSchristosfi 97117d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 97127d62b00eSchristosfi 97137d62b00eSchristos 97147d62b00eSchristos if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then 97157d62b00eSchristos 97167d62b00eSchristos$as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h 97177d62b00eSchristos 97187d62b00eSchristos fi 97197d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 97207d62b00eSchristos$as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; } 97217d62b00eSchristos 97227d62b00eSchristos 97237d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5 97247d62b00eSchristos$as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; } 97257d62b00eSchristos if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then : 97267d62b00eSchristos $as_echo_n "(cached) " >&6 97277d62b00eSchristoselse 97287d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 97297d62b00eSchristos/* end confdefs.h. */ 97307d62b00eSchristos 97317d62b00eSchristos#define _SYSCALL32 97327d62b00eSchristos#include <sys/procfs.h> 97337d62b00eSchristosint 97347d62b00eSchristosmain () 97357d62b00eSchristos{ 97367d62b00eSchristosfpregset_t avar 97377d62b00eSchristos ; 97387d62b00eSchristos return 0; 97397d62b00eSchristos} 97407d62b00eSchristos_ACEOF 97417d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 97427d62b00eSchristos bfd_cv_have_sys_procfs_type_fpregset_t=yes 97437d62b00eSchristoselse 97447d62b00eSchristos bfd_cv_have_sys_procfs_type_fpregset_t=no 97457d62b00eSchristos 97467d62b00eSchristosfi 97477d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 97487d62b00eSchristosfi 97497d62b00eSchristos 97507d62b00eSchristos if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then 97517d62b00eSchristos 97527d62b00eSchristos$as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h 97537d62b00eSchristos 97547d62b00eSchristos fi 97557d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 97567d62b00eSchristos$as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; } 97577d62b00eSchristos 97587d62b00eSchristos 97597d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5 97607d62b00eSchristos$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; } 97617d62b00eSchristos if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then : 97627d62b00eSchristos $as_echo_n "(cached) " >&6 97637d62b00eSchristoselse 97647d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 97657d62b00eSchristos/* end confdefs.h. */ 97667d62b00eSchristos 97677d62b00eSchristos#define _SYSCALL32 97687d62b00eSchristos#include <sys/procfs.h> 97697d62b00eSchristosint 97707d62b00eSchristosmain () 97717d62b00eSchristos{ 97727d62b00eSchristosprgregset_t avar 97737d62b00eSchristos ; 97747d62b00eSchristos return 0; 97757d62b00eSchristos} 97767d62b00eSchristos_ACEOF 97777d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 97787d62b00eSchristos bfd_cv_have_sys_procfs_type_prgregset_t=yes 97797d62b00eSchristoselse 97807d62b00eSchristos bfd_cv_have_sys_procfs_type_prgregset_t=no 97817d62b00eSchristos 97827d62b00eSchristosfi 97837d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 97847d62b00eSchristosfi 97857d62b00eSchristos 97867d62b00eSchristos if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then 97877d62b00eSchristos 97887d62b00eSchristos$as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h 97897d62b00eSchristos 97907d62b00eSchristos fi 97917d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 97927d62b00eSchristos$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; } 97937d62b00eSchristos 97947d62b00eSchristos 97957d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5 97967d62b00eSchristos$as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; } 97977d62b00eSchristos if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then : 97987d62b00eSchristos $as_echo_n "(cached) " >&6 97997d62b00eSchristoselse 98007d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 98017d62b00eSchristos/* end confdefs.h. */ 98027d62b00eSchristos 98037d62b00eSchristos#define _SYSCALL32 98047d62b00eSchristos#include <sys/procfs.h> 98057d62b00eSchristosint 98067d62b00eSchristosmain () 98077d62b00eSchristos{ 98087d62b00eSchristosprfpregset_t avar 98097d62b00eSchristos ; 98107d62b00eSchristos return 0; 98117d62b00eSchristos} 98127d62b00eSchristos_ACEOF 98137d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 98147d62b00eSchristos bfd_cv_have_sys_procfs_type_prfpregset_t=yes 98157d62b00eSchristoselse 98167d62b00eSchristos bfd_cv_have_sys_procfs_type_prfpregset_t=no 98177d62b00eSchristos 98187d62b00eSchristosfi 98197d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 98207d62b00eSchristosfi 98217d62b00eSchristos 98227d62b00eSchristos if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then 98237d62b00eSchristos 98247d62b00eSchristos$as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h 98257d62b00eSchristos 98267d62b00eSchristos fi 98277d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 98287d62b00eSchristos$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; } 98297d62b00eSchristos 98307d62b00eSchristos 98317d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5 98327d62b00eSchristos$as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; } 98337d62b00eSchristos if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then : 98347d62b00eSchristos $as_echo_n "(cached) " >&6 98357d62b00eSchristoselse 98367d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 98377d62b00eSchristos/* end confdefs.h. */ 98387d62b00eSchristos 98397d62b00eSchristos#define _SYSCALL32 98407d62b00eSchristos#include <sys/procfs.h> 98417d62b00eSchristosint 98427d62b00eSchristosmain () 98437d62b00eSchristos{ 98447d62b00eSchristosprgregset32_t avar 98457d62b00eSchristos ; 98467d62b00eSchristos return 0; 98477d62b00eSchristos} 98487d62b00eSchristos_ACEOF 98497d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 98507d62b00eSchristos bfd_cv_have_sys_procfs_type_prgregset32_t=yes 98517d62b00eSchristoselse 98527d62b00eSchristos bfd_cv_have_sys_procfs_type_prgregset32_t=no 98537d62b00eSchristos 98547d62b00eSchristosfi 98557d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 98567d62b00eSchristosfi 98577d62b00eSchristos 98587d62b00eSchristos if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then 98597d62b00eSchristos 98607d62b00eSchristos$as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h 98617d62b00eSchristos 98627d62b00eSchristos fi 98637d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 98647d62b00eSchristos$as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; } 98657d62b00eSchristos 98667d62b00eSchristos 98677d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5 98687d62b00eSchristos$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; } 98697d62b00eSchristos if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then : 98707d62b00eSchristos $as_echo_n "(cached) " >&6 98717d62b00eSchristoselse 98727d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 98737d62b00eSchristos/* end confdefs.h. */ 98747d62b00eSchristos 98757d62b00eSchristos#define _SYSCALL32 98767d62b00eSchristos#include <sys/procfs.h> 98777d62b00eSchristosint 98787d62b00eSchristosmain () 98797d62b00eSchristos{ 98807d62b00eSchristoslwpid_t avar 98817d62b00eSchristos ; 98827d62b00eSchristos return 0; 98837d62b00eSchristos} 98847d62b00eSchristos_ACEOF 98857d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 98867d62b00eSchristos bfd_cv_have_sys_procfs_type_lwpid_t=yes 98877d62b00eSchristoselse 98887d62b00eSchristos bfd_cv_have_sys_procfs_type_lwpid_t=no 98897d62b00eSchristos 98907d62b00eSchristosfi 98917d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 98927d62b00eSchristosfi 98937d62b00eSchristos 98947d62b00eSchristos if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then 98957d62b00eSchristos 98967d62b00eSchristos$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h 98977d62b00eSchristos 98987d62b00eSchristos fi 98997d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 99007d62b00eSchristos$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; } 99017d62b00eSchristos 99027d62b00eSchristos 99037d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5 99047d62b00eSchristos$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; } 99057d62b00eSchristos if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then : 99067d62b00eSchristos $as_echo_n "(cached) " >&6 99077d62b00eSchristoselse 99087d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 99097d62b00eSchristos/* end confdefs.h. */ 99107d62b00eSchristos 99117d62b00eSchristos#define _SYSCALL32 99127d62b00eSchristos#include <sys/procfs.h> 99137d62b00eSchristosint 99147d62b00eSchristosmain () 99157d62b00eSchristos{ 99167d62b00eSchristospsaddr_t avar 99177d62b00eSchristos ; 99187d62b00eSchristos return 0; 99197d62b00eSchristos} 99207d62b00eSchristos_ACEOF 99217d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 99227d62b00eSchristos bfd_cv_have_sys_procfs_type_psaddr_t=yes 99237d62b00eSchristoselse 99247d62b00eSchristos bfd_cv_have_sys_procfs_type_psaddr_t=no 99257d62b00eSchristos 99267d62b00eSchristosfi 99277d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 99287d62b00eSchristosfi 99297d62b00eSchristos 99307d62b00eSchristos if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then 99317d62b00eSchristos 99327d62b00eSchristos$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h 99337d62b00eSchristos 99347d62b00eSchristos fi 99357d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 99367d62b00eSchristos$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; } 99377d62b00eSchristos 99387d62b00eSchristos 99397d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5 99407d62b00eSchristos$as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; } 99417d62b00eSchristos if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then : 99427d62b00eSchristos $as_echo_n "(cached) " >&6 99437d62b00eSchristoselse 99447d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 99457d62b00eSchristos/* end confdefs.h. */ 99467d62b00eSchristos 99477d62b00eSchristos#define _SYSCALL32 99487d62b00eSchristos#include <sys/procfs.h> 99497d62b00eSchristosint 99507d62b00eSchristosmain () 99517d62b00eSchristos{ 99527d62b00eSchristoself_fpregset_t avar 99537d62b00eSchristos ; 99547d62b00eSchristos return 0; 99557d62b00eSchristos} 99567d62b00eSchristos_ACEOF 99577d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 99587d62b00eSchristos bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes 99597d62b00eSchristoselse 99607d62b00eSchristos bfd_cv_have_sys_procfs_type_elf_fpregset_t=no 99617d62b00eSchristos 99627d62b00eSchristosfi 99637d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 99647d62b00eSchristosfi 99657d62b00eSchristos 99667d62b00eSchristos if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then 99677d62b00eSchristos 99687d62b00eSchristos$as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h 99697d62b00eSchristos 99707d62b00eSchristos fi 99717d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5 99727d62b00eSchristos$as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; } 99737d62b00eSchristos 99747d62b00eSchristos fi 99757d62b00eSchristos 99767d62b00eSchristos 99777d62b00eSchristos# Check whether we will enable the inclusion of unit tests when 99787d62b00eSchristos# compiling GDB. 99797d62b00eSchristos# 99807d62b00eSchristos# The default value of this option changes depending whether we're on 99817d62b00eSchristos# development mode (in which case it's "true") or not (in which case 99827d62b00eSchristos# it's "false"). The $development variable is set by the GDB_AC_COMMON 99837d62b00eSchristos# macro, which must therefore be used before GDB_AC_SELFTEST. 99847d62b00eSchristos 99857d62b00eSchristosif test "x$development" != xtrue && test "x$development" != xfalse; then : 99867d62b00eSchristos as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5 99877d62b00eSchristosfi 99887d62b00eSchristos 99897d62b00eSchristos# Check whether --enable-unit-tests was given. 99907d62b00eSchristosif test "${enable_unit_tests+set}" = set; then : 99917d62b00eSchristos enableval=$enable_unit_tests; case "${enableval}" in 99927d62b00eSchristos yes) enable_unittests=true ;; 99937d62b00eSchristos no) enable_unittests=false ;; 99947d62b00eSchristos *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;; 99957d62b00eSchristosesac 99967d62b00eSchristoselse 99977d62b00eSchristos enable_unittests=$development 99987d62b00eSchristosfi 99997d62b00eSchristos 100007d62b00eSchristos 100017d62b00eSchristosif $enable_unittests; then 100027d62b00eSchristos 100037d62b00eSchristos$as_echo "#define GDB_SELF_TEST 1" >>confdefs.h 100047d62b00eSchristos 100057d62b00eSchristos 100067d62b00eSchristosfi 100077d62b00eSchristos 100087d62b00eSchristos if $enable_unittests; then 100097d62b00eSchristos SELFTEST_TRUE= 100107d62b00eSchristos SELFTEST_FALSE='#' 100117d62b00eSchristoselse 100127d62b00eSchristos SELFTEST_TRUE='#' 100137d62b00eSchristos SELFTEST_FALSE= 100147d62b00eSchristosfi 100157d62b00eSchristos 100167d62b00eSchristos 10017*6881a400Schristos if test x$ac_cv_func_pipe = xyes -o x$ac_cv_func_pipe2 = xyes ; then 10018*6881a400Schristos HAVE_PIPE_OR_PIPE2_TRUE= 10019*6881a400Schristos HAVE_PIPE_OR_PIPE2_FALSE='#' 10020*6881a400Schristoselse 10021*6881a400Schristos HAVE_PIPE_OR_PIPE2_TRUE='#' 10022*6881a400Schristos HAVE_PIPE_OR_PIPE2_FALSE= 10023*6881a400Schristosfi 10024*6881a400Schristos 10025*6881a400Schristos 100267d62b00eSchristos# Check the return and argument types of ptrace. 100277d62b00eSchristos 100287d62b00eSchristos 100297d62b00eSchristosfor ac_header in sys/ptrace.h ptrace.h 100307d62b00eSchristosdo : 100317d62b00eSchristos as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 100327d62b00eSchristosac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 100337d62b00eSchristosif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 100347d62b00eSchristos cat >>confdefs.h <<_ACEOF 100357d62b00eSchristos#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 100367d62b00eSchristos_ACEOF 100377d62b00eSchristos 100387d62b00eSchristosfi 100397d62b00eSchristos 100407d62b00eSchristosdone 100417d62b00eSchristos 100427d62b00eSchristos 100437d62b00eSchristosgdb_ptrace_headers=' 100447d62b00eSchristos#include <sys/types.h> 100457d62b00eSchristos#if HAVE_SYS_PTRACE_H 100467d62b00eSchristos# include <sys/ptrace.h> 100477d62b00eSchristos#endif 100487d62b00eSchristos#if HAVE_UNISTD_H 100497d62b00eSchristos# include <unistd.h> 100507d62b00eSchristos#endif 100517d62b00eSchristos' 100527d62b00eSchristos 100537d62b00eSchristos# Check return type. Varargs (used on GNU/Linux) conflict with the 100547d62b00eSchristos# empty argument list, so check for that explicitly. 100557d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5 100567d62b00eSchristos$as_echo_n "checking return type of ptrace... " >&6; } 100577d62b00eSchristosif ${gdb_cv_func_ptrace_ret+:} false; then : 100587d62b00eSchristos $as_echo_n "(cached) " >&6 100597d62b00eSchristoselse 100607d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 100617d62b00eSchristos/* end confdefs.h. */ 10062*6881a400Schristos $gdb_ptrace_headers 100637d62b00eSchristosint 100647d62b00eSchristosmain () 100657d62b00eSchristos{ 100667d62b00eSchristosextern long ptrace (enum __ptrace_request, ...); 10067*6881a400Schristos 100687d62b00eSchristos ; 100697d62b00eSchristos return 0; 100707d62b00eSchristos} 100717d62b00eSchristos_ACEOF 100727d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 100737d62b00eSchristos gdb_cv_func_ptrace_ret='long' 100747d62b00eSchristoselse 100757d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 100767d62b00eSchristos/* end confdefs.h. */ 100777d62b00eSchristos$gdb_ptrace_headers 100787d62b00eSchristosint 100797d62b00eSchristosmain () 100807d62b00eSchristos{ 100817d62b00eSchristosextern int ptrace (); 10082*6881a400Schristos 100837d62b00eSchristos ; 100847d62b00eSchristos return 0; 100857d62b00eSchristos} 100867d62b00eSchristos_ACEOF 100877d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 100887d62b00eSchristos gdb_cv_func_ptrace_ret='int' 100897d62b00eSchristoselse 100907d62b00eSchristos gdb_cv_func_ptrace_ret='long' 10091*6881a400Schristos 100927d62b00eSchristosfi 100937d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10094*6881a400Schristos 100957d62b00eSchristosfi 100967d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10097*6881a400Schristos 100987d62b00eSchristosfi 100997d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5 101007d62b00eSchristos$as_echo "$gdb_cv_func_ptrace_ret" >&6; } 101017d62b00eSchristos 10102*6881a400Schristos 101037d62b00eSchristoscat >>confdefs.h <<_ACEOF 101047d62b00eSchristos#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret 101057d62b00eSchristos_ACEOF 101067d62b00eSchristos 10107*6881a400Schristos 101087d62b00eSchristos# Check argument types. 101097d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5 101107d62b00eSchristos$as_echo_n "checking types of arguments for ptrace... " >&6; } 101117d62b00eSchristosif ${gdb_cv_func_ptrace_args+:} false; then : 101127d62b00eSchristos $as_echo_n "(cached) " >&6 101137d62b00eSchristoselse 101147d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 101157d62b00eSchristos/* end confdefs.h. */ 101167d62b00eSchristos$gdb_ptrace_headers 101177d62b00eSchristosint 101187d62b00eSchristosmain () 101197d62b00eSchristos{ 101207d62b00eSchristosextern long ptrace (enum __ptrace_request, ...); 10121*6881a400Schristos 101227d62b00eSchristos ; 101237d62b00eSchristos return 0; 101247d62b00eSchristos} 101257d62b00eSchristos_ACEOF 101267d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 101277d62b00eSchristos gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long' 101287d62b00eSchristoselse 101297d62b00eSchristos for gdb_arg1 in 'int' 'long'; do 101307d62b00eSchristos for gdb_arg2 in 'pid_t' 'int' 'long'; do 101317d62b00eSchristos for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do 101327d62b00eSchristos for gdb_arg4 in 'int' 'long' 'void *'; do 101337d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 101347d62b00eSchristos/* end confdefs.h. */ 101357d62b00eSchristos$gdb_ptrace_headers 101367d62b00eSchristosint 101377d62b00eSchristosmain () 101387d62b00eSchristos{ 10139*6881a400Schristosextern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); 101407d62b00eSchristos 101417d62b00eSchristos ; 101427d62b00eSchristos return 0; 101437d62b00eSchristos} 101447d62b00eSchristos_ACEOF 101457d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 101467d62b00eSchristos gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; 101477d62b00eSchristos break 4; 10148*6881a400Schristos 101497d62b00eSchristosfi 101507d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10151*6881a400Schristos 101527d62b00eSchristos for gdb_arg5 in 'int *' 'int' 'long'; do 101537d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 101547d62b00eSchristos/* end confdefs.h. */ 101557d62b00eSchristos$gdb_ptrace_headers 101567d62b00eSchristosint 101577d62b00eSchristosmain () 101587d62b00eSchristos{ 10159*6881a400Schristosextern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); 101607d62b00eSchristos 101617d62b00eSchristos ; 101627d62b00eSchristos return 0; 101637d62b00eSchristos} 101647d62b00eSchristos_ACEOF 101657d62b00eSchristosif ac_fn_c_try_compile "$LINENO"; then : 101667d62b00eSchristos gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; 101677d62b00eSchristos break 5; 10168*6881a400Schristos 101697d62b00eSchristosfi 101707d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 101717d62b00eSchristos done 101727d62b00eSchristos done 101737d62b00eSchristos done 101747d62b00eSchristos done 101757d62b00eSchristos done 101767d62b00eSchristos # Provide a safe default value. 101777d62b00eSchristos : ${gdb_cv_func_ptrace_args='int,int,long,long'} 101787d62b00eSchristos 101797d62b00eSchristosfi 101807d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10181*6881a400Schristos 101827d62b00eSchristosfi 101837d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5 101847d62b00eSchristos$as_echo "$gdb_cv_func_ptrace_args" >&6; } 10185*6881a400Schristos 101867d62b00eSchristosac_save_IFS=$IFS; IFS=',' 101877d62b00eSchristosset dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` 101887d62b00eSchristosIFS=$ac_save_IFS 101897d62b00eSchristosshift 101907d62b00eSchristos 101917d62b00eSchristoscat >>confdefs.h <<_ACEOF 101927d62b00eSchristos#define PTRACE_TYPE_ARG1 $1 101937d62b00eSchristos_ACEOF 101947d62b00eSchristos 101957d62b00eSchristos 101967d62b00eSchristoscat >>confdefs.h <<_ACEOF 101977d62b00eSchristos#define PTRACE_TYPE_ARG3 $3 101987d62b00eSchristos_ACEOF 101997d62b00eSchristos 102007d62b00eSchristos 102017d62b00eSchristoscat >>confdefs.h <<_ACEOF 102027d62b00eSchristos#define PTRACE_TYPE_ARG4 $4 102037d62b00eSchristos_ACEOF 102047d62b00eSchristos 102057d62b00eSchristosif test -n "$5"; then 102067d62b00eSchristos 102077d62b00eSchristoscat >>confdefs.h <<_ACEOF 102087d62b00eSchristos#define PTRACE_TYPE_ARG5 $5 102097d62b00eSchristos_ACEOF 102107d62b00eSchristos 102117d62b00eSchristosfi 102127d62b00eSchristos 102137d62b00eSchristos 102147d62b00eSchristos# Detect support warning flags. 102157d62b00eSchristos 10216*6881a400Schristos 10217*6881a400Schristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5 10218*6881a400Schristos$as_echo_n "checking the compiler type... " >&6; } 10219*6881a400Schristosif ${gdb_cv_compiler_type+:} false; then : 10220*6881a400Schristos $as_echo_n "(cached) " >&6 10221*6881a400Schristoselse 10222*6881a400Schristos gdb_cv_compiler_type=unknown 10223*6881a400Schristos if test "$gdb_cv_compiler_type" = unknown; then 10224*6881a400Schristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10225*6881a400Schristos/* end confdefs.h. */ 10226*6881a400Schristos 10227*6881a400Schristosint 10228*6881a400Schristosmain () 10229*6881a400Schristos{ 10230*6881a400Schristos 10231*6881a400Schristos #if !defined __GNUC__ || defined __clang__ 10232*6881a400Schristos #error not gcc 10233*6881a400Schristos #endif 10234*6881a400Schristos 10235*6881a400Schristos ; 10236*6881a400Schristos return 0; 10237*6881a400Schristos} 10238*6881a400Schristos_ACEOF 10239*6881a400Schristosif ac_fn_c_try_compile "$LINENO"; then : 10240*6881a400Schristos gdb_cv_compiler_type=gcc 10241*6881a400Schristosfi 10242*6881a400Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10243*6881a400Schristos fi 10244*6881a400Schristos 10245*6881a400Schristos if test "$gdb_cv_compiler_type" = unknown; then 10246*6881a400Schristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10247*6881a400Schristos/* end confdefs.h. */ 10248*6881a400Schristos 10249*6881a400Schristosint 10250*6881a400Schristosmain () 10251*6881a400Schristos{ 10252*6881a400Schristos 10253*6881a400Schristos #ifndef __clang__ 10254*6881a400Schristos #error not clang 10255*6881a400Schristos #endif 10256*6881a400Schristos 10257*6881a400Schristos ; 10258*6881a400Schristos return 0; 10259*6881a400Schristos} 10260*6881a400Schristos_ACEOF 10261*6881a400Schristosif ac_fn_c_try_compile "$LINENO"; then : 10262*6881a400Schristos gdb_cv_compiler_type=clang 10263*6881a400Schristosfi 10264*6881a400Schristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10265*6881a400Schristos fi 10266*6881a400Schristos 10267*6881a400Schristosfi 10268*6881a400Schristos{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5 10269*6881a400Schristos$as_echo "$gdb_cv_compiler_type" >&6; } 10270*6881a400Schristos 10271*6881a400Schristos GDB_COMPILER_TYPE="$gdb_cv_compiler_type" 10272*6881a400Schristos 10273*6881a400Schristos 102747d62b00eSchristos# Check whether --enable-werror was given. 102757d62b00eSchristosif test "${enable_werror+set}" = set; then : 102767d62b00eSchristos enableval=$enable_werror; case "${enableval}" in 102777d62b00eSchristos yes | y) ERROR_ON_WARNING="yes" ;; 102787d62b00eSchristos no | n) ERROR_ON_WARNING="no" ;; 102797d62b00eSchristos *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; 102807d62b00eSchristos esac 102817d62b00eSchristosfi 102827d62b00eSchristos 102837d62b00eSchristos 102847d62b00eSchristos# Enable -Werror by default when using gcc. Turn it off for releases. 102857d62b00eSchristosif test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then 102867d62b00eSchristos ERROR_ON_WARNING=yes 102877d62b00eSchristosfi 102887d62b00eSchristos 102897d62b00eSchristosWERROR_CFLAGS="" 102907d62b00eSchristosif test "${ERROR_ON_WARNING}" = yes ; then 102917d62b00eSchristos WERROR_CFLAGS="-Werror" 102927d62b00eSchristosfi 102937d62b00eSchristos 102947d62b00eSchristos# The options we'll try to enable. 102957d62b00eSchristosbuild_warnings="-Wall -Wpointer-arith \ 102967d62b00eSchristos-Wno-unused -Wunused-value -Wunused-variable -Wunused-function \ 102977d62b00eSchristos-Wno-switch -Wno-char-subscripts \ 102987d62b00eSchristos-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \ 102997d62b00eSchristos-Wno-sign-compare -Wno-error=maybe-uninitialized \ 103007d62b00eSchristos-Wno-mismatched-tags \ 103017d62b00eSchristos-Wno-error=deprecated-register \ 103027d62b00eSchristos-Wsuggest-override \ 103037d62b00eSchristos-Wimplicit-fallthrough=3 \ 103047d62b00eSchristos-Wduplicated-cond \ 103057d62b00eSchristos-Wshadow=local \ 103067d62b00eSchristos-Wdeprecated-copy \ 103077d62b00eSchristos-Wdeprecated-copy-dtor \ 103087d62b00eSchristos-Wredundant-move \ 103097d62b00eSchristos-Wmissing-declarations \ 103107d62b00eSchristos-Wstrict-null-sentinel \ 103117d62b00eSchristos" 103127d62b00eSchristos 10313*6881a400Schristos# The -Wmissing-prototypes flag will be accepted by GCC, but results 10314*6881a400Schristos# in a warning being printed about the flag not being valid for C++, 10315*6881a400Schristos# this is something to do with using ccache, and argument ordering. 10316*6881a400Schristosif test "$GDB_COMPILER_TYPE" != gcc; then 10317*6881a400Schristos build_warnings="$build_warnings -Wmissing-prototypes" 10318*6881a400Schristosfi 10319*6881a400Schristos 103207d62b00eSchristoscase "${host}" in 103217d62b00eSchristos *-*-mingw32*) 103227d62b00eSchristos # Enable -Wno-format by default when using gcc on mingw since many 103237d62b00eSchristos # GCC versions complain about %I64. 103247d62b00eSchristos build_warnings="$build_warnings -Wno-format" ;; 103257d62b00eSchristos *-*-solaris*) 103267d62b00eSchristos # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC 103277d62b00eSchristos # doesn't understand. 103287d62b00eSchristos build_warnings="$build_warnings -Wno-unknown-pragmas" 103297d62b00eSchristos # Solaris 11 <unistd.h> marks vfork deprecated. 103307d62b00eSchristos build_warnings="$build_warnings -Wno-deprecated-declarations" ;; 103317d62b00eSchristos *) 103327d62b00eSchristos # Note that gcc requires -Wformat for -Wformat-nonliteral to work, 103337d62b00eSchristos # but there's a special case for this below. 103347d62b00eSchristos build_warnings="$build_warnings -Wformat-nonliteral" ;; 103357d62b00eSchristosesac 103367d62b00eSchristos 103377d62b00eSchristos# Check whether --enable-build-warnings was given. 103387d62b00eSchristosif test "${enable_build_warnings+set}" = set; then : 103397d62b00eSchristos enableval=$enable_build_warnings; case "${enableval}" in 103407d62b00eSchristos yes) ;; 103417d62b00eSchristos no) build_warnings="-w";; 103427d62b00eSchristos ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 103437d62b00eSchristos build_warnings="${build_warnings} ${t}";; 103447d62b00eSchristos *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 103457d62b00eSchristos build_warnings="${t} ${build_warnings}";; 103467d62b00eSchristos *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; 103477d62b00eSchristosesac 103487d62b00eSchristosif test x"$silent" != x"yes" && test x"$build_warnings" != x""; then 103497d62b00eSchristos echo "Setting compiler warning flags = $build_warnings" 6>&1 103507d62b00eSchristosfi 103517d62b00eSchristosfi 103527d62b00eSchristos# Check whether --enable-gdb-build-warnings was given. 103537d62b00eSchristosif test "${enable_gdb_build_warnings+set}" = set; then : 103547d62b00eSchristos enableval=$enable_gdb_build_warnings; case "${enableval}" in 103557d62b00eSchristos yes) ;; 103567d62b00eSchristos no) build_warnings="-w";; 103577d62b00eSchristos ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 103587d62b00eSchristos build_warnings="${build_warnings} ${t}";; 103597d62b00eSchristos *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 103607d62b00eSchristos build_warnings="${t} ${build_warnings}";; 103617d62b00eSchristos *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; 103627d62b00eSchristosesac 103637d62b00eSchristosif test x"$silent" != x"yes" && test x"$build_warnings" != x""; then 103647d62b00eSchristos echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 103657d62b00eSchristosfi 103667d62b00eSchristosfi 103677d62b00eSchristos 103687d62b00eSchristos# The set of warnings supported by a C++ compiler is not the same as 103697d62b00eSchristos# of the C compiler. 103707d62b00eSchristosac_ext=cpp 103717d62b00eSchristosac_cpp='$CXXCPP $CPPFLAGS' 103727d62b00eSchristosac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 103737d62b00eSchristosac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 103747d62b00eSchristosac_compiler_gnu=$ac_cv_cxx_compiler_gnu 103757d62b00eSchristos 103767d62b00eSchristos 103777d62b00eSchristosWARN_CFLAGS="" 103787d62b00eSchristosif test "x${build_warnings}" != x -a "x$GCC" = xyes 103797d62b00eSchristosthen 103807d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5 103817d62b00eSchristos$as_echo_n "checking compiler warning flags... " >&6; } 103827d62b00eSchristos # Separate out the -Werror flag as some files just cannot be 103837d62b00eSchristos # compiled with it enabled. 103847d62b00eSchristos for w in ${build_warnings}; do 103857d62b00eSchristos # GCC does not complain about -Wno-unknown-warning. Invert 103867d62b00eSchristos # and test -Wunknown-warning instead. 103877d62b00eSchristos case $w in 103887d62b00eSchristos -Wno-*) 103897d62b00eSchristos wtest=`echo $w | sed 's/-Wno-/-W/g'` ;; 103907d62b00eSchristos -Wformat-nonliteral) 103917d62b00eSchristos # gcc requires -Wformat before -Wformat-nonliteral 103927d62b00eSchristos # will work, so stick them together. 103937d62b00eSchristos w="-Wformat $w" 103947d62b00eSchristos wtest="$w" 103957d62b00eSchristos ;; 103967d62b00eSchristos *) 103977d62b00eSchristos wtest=$w ;; 103987d62b00eSchristos esac 103997d62b00eSchristos 104007d62b00eSchristos case $w in 104017d62b00eSchristos -Werr*) WERROR_CFLAGS=-Werror ;; 104027d62b00eSchristos *) 104037d62b00eSchristos # Check whether GCC accepts it. 104047d62b00eSchristos saved_CFLAGS="$CFLAGS" 104057d62b00eSchristos CFLAGS="$CFLAGS -Werror $wtest" 104067d62b00eSchristos saved_CXXFLAGS="$CXXFLAGS" 104077d62b00eSchristos CXXFLAGS="$CXXFLAGS -Werror $wtest" 104087d62b00eSchristos if test "x$w" = "x-Wunused-variable"; then 104097d62b00eSchristos # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958, 104107d62b00eSchristos # fixed in GCC 4.9. This test is derived from the gdb 104117d62b00eSchristos # source code that triggered this bug in GCC. 104127d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 104137d62b00eSchristos/* end confdefs.h. */ 104147d62b00eSchristosstruct scoped_restore_base {}; 104157d62b00eSchristos struct scoped_restore_tmpl : public scoped_restore_base { 104167d62b00eSchristos ~scoped_restore_tmpl() {} 104177d62b00eSchristos }; 104187d62b00eSchristosint 104197d62b00eSchristosmain () 104207d62b00eSchristos{ 104217d62b00eSchristosconst scoped_restore_base &b = scoped_restore_tmpl(); 10422*6881a400Schristos 104237d62b00eSchristos ; 104247d62b00eSchristos return 0; 104257d62b00eSchristos} 104267d62b00eSchristos_ACEOF 104277d62b00eSchristosif ac_fn_cxx_try_compile "$LINENO"; then : 104287d62b00eSchristos WARN_CFLAGS="${WARN_CFLAGS} $w" 104297d62b00eSchristosfi 104307d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 104317d62b00eSchristos else 104327d62b00eSchristos cat confdefs.h - <<_ACEOF >conftest.$ac_ext 104337d62b00eSchristos/* end confdefs.h. */ 104347d62b00eSchristos 104357d62b00eSchristosint 104367d62b00eSchristosmain () 104377d62b00eSchristos{ 104387d62b00eSchristos 104397d62b00eSchristos ; 104407d62b00eSchristos return 0; 104417d62b00eSchristos} 104427d62b00eSchristos_ACEOF 104437d62b00eSchristosif ac_fn_cxx_try_compile "$LINENO"; then : 104447d62b00eSchristos WARN_CFLAGS="${WARN_CFLAGS} $w" 104457d62b00eSchristosfi 104467d62b00eSchristosrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 104477d62b00eSchristos fi 104487d62b00eSchristos CFLAGS="$saved_CFLAGS" 104497d62b00eSchristos CXXFLAGS="$saved_CXXFLAGS" 104507d62b00eSchristos esac 104517d62b00eSchristos done 104527d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 104537d62b00eSchristos$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; } 104547d62b00eSchristosfi 104557d62b00eSchristos 104567d62b00eSchristos 104577d62b00eSchristos 104587d62b00eSchristosac_ext=c 104597d62b00eSchristosac_cpp='$CPP $CPPFLAGS' 104607d62b00eSchristosac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 104617d62b00eSchristosac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 104627d62b00eSchristosac_compiler_gnu=$ac_cv_c_compiler_gnu 104637d62b00eSchristos 104647d62b00eSchristos 104657d62b00eSchristos 10466*6881a400Schristos# Set the 'development' global. 10467*6881a400Schristos. $srcdir/../bfd/development.sh 104687d62b00eSchristos 10469*6881a400Schristosif test "$development" = true ; then 104707d62b00eSchristos 10471*6881a400Schristos$as_echo "#define DEVELOPMENT 1" >>confdefs.h 10472*6881a400Schristos 10473*6881a400Schristosfi 104747d62b00eSchristos 104757d62b00eSchristoscase ${host} in 104767d62b00eSchristos *mingw32*) 104777d62b00eSchristos 104787d62b00eSchristos$as_echo "#define USE_WIN32API 1" >>confdefs.h 104797d62b00eSchristos 104807d62b00eSchristos ;; 104817d62b00eSchristosesac 104827d62b00eSchristos 10483*6881a400SchristosCONFIG_STATUS_DEPENDENCIES='$(srcdir)/../bfd/development.sh' 10484*6881a400Schristos 10485*6881a400Schristos 104867d62b00eSchristosac_config_files="$ac_config_files Makefile" 104877d62b00eSchristos 104887d62b00eSchristoscat >confcache <<\_ACEOF 104897d62b00eSchristos# This file is a shell script that caches the results of configure 104907d62b00eSchristos# tests run on this system so they can be shared between configure 104917d62b00eSchristos# scripts and configure runs, see configure's option --config-cache. 104927d62b00eSchristos# It is not useful on other systems. If it contains results you don't 104937d62b00eSchristos# want to keep, you may remove or edit it. 104947d62b00eSchristos# 104957d62b00eSchristos# config.status only pays attention to the cache file if you give it 104967d62b00eSchristos# the --recheck option to rerun configure. 104977d62b00eSchristos# 104987d62b00eSchristos# `ac_cv_env_foo' variables (set or unset) will be overridden when 104997d62b00eSchristos# loading this file, other *unset* `ac_cv_foo' will be assigned the 105007d62b00eSchristos# following values. 105017d62b00eSchristos 105027d62b00eSchristos_ACEOF 105037d62b00eSchristos 105047d62b00eSchristos# The following way of writing the cache mishandles newlines in values, 105057d62b00eSchristos# but we know of no workaround that is simple, portable, and efficient. 105067d62b00eSchristos# So, we kill variables containing newlines. 105077d62b00eSchristos# Ultrix sh set writes to stderr and can't be redirected directly, 105087d62b00eSchristos# and sets the high bit in the cache file unless we assign to the vars. 105097d62b00eSchristos( 105107d62b00eSchristos for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 105117d62b00eSchristos eval ac_val=\$$ac_var 105127d62b00eSchristos case $ac_val in #( 105137d62b00eSchristos *${as_nl}*) 105147d62b00eSchristos case $ac_var in #( 105157d62b00eSchristos *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 105167d62b00eSchristos$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 105177d62b00eSchristos esac 105187d62b00eSchristos case $ac_var in #( 105197d62b00eSchristos _ | IFS | as_nl) ;; #( 105207d62b00eSchristos BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 105217d62b00eSchristos *) { eval $ac_var=; unset $ac_var;} ;; 105227d62b00eSchristos esac ;; 105237d62b00eSchristos esac 105247d62b00eSchristos done 105257d62b00eSchristos 105267d62b00eSchristos (set) 2>&1 | 105277d62b00eSchristos case $as_nl`(ac_space=' '; set) 2>&1` in #( 105287d62b00eSchristos *${as_nl}ac_space=\ *) 105297d62b00eSchristos # `set' does not quote correctly, so add quotes: double-quote 105307d62b00eSchristos # substitution turns \\\\ into \\, and sed turns \\ into \. 105317d62b00eSchristos sed -n \ 105327d62b00eSchristos "s/'/'\\\\''/g; 105337d62b00eSchristos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 105347d62b00eSchristos ;; #( 105357d62b00eSchristos *) 105367d62b00eSchristos # `set' quotes correctly as required by POSIX, so do not add quotes. 105377d62b00eSchristos sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 105387d62b00eSchristos ;; 105397d62b00eSchristos esac | 105407d62b00eSchristos sort 105417d62b00eSchristos) | 105427d62b00eSchristos sed ' 105437d62b00eSchristos /^ac_cv_env_/b end 105447d62b00eSchristos t clear 105457d62b00eSchristos :clear 105467d62b00eSchristos s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 105477d62b00eSchristos t end 105487d62b00eSchristos s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 105497d62b00eSchristos :end' >>confcache 105507d62b00eSchristosif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 105517d62b00eSchristos if test -w "$cache_file"; then 105527d62b00eSchristos if test "x$cache_file" != "x/dev/null"; then 105537d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 105547d62b00eSchristos$as_echo "$as_me: updating cache $cache_file" >&6;} 105557d62b00eSchristos if test ! -f "$cache_file" || test -h "$cache_file"; then 105567d62b00eSchristos cat confcache >"$cache_file" 105577d62b00eSchristos else 105587d62b00eSchristos case $cache_file in #( 105597d62b00eSchristos */* | ?:*) 105607d62b00eSchristos mv -f confcache "$cache_file"$$ && 105617d62b00eSchristos mv -f "$cache_file"$$ "$cache_file" ;; #( 105627d62b00eSchristos *) 105637d62b00eSchristos mv -f confcache "$cache_file" ;; 105647d62b00eSchristos esac 105657d62b00eSchristos fi 105667d62b00eSchristos fi 105677d62b00eSchristos else 105687d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 105697d62b00eSchristos$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 105707d62b00eSchristos fi 105717d62b00eSchristosfi 105727d62b00eSchristosrm -f confcache 105737d62b00eSchristos 105747d62b00eSchristostest "x$prefix" = xNONE && prefix=$ac_default_prefix 105757d62b00eSchristos# Let make expand exec_prefix. 105767d62b00eSchristostest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 105777d62b00eSchristos 105787d62b00eSchristosDEFS=-DHAVE_CONFIG_H 105797d62b00eSchristos 105807d62b00eSchristosac_libobjs= 105817d62b00eSchristosac_ltlibobjs= 10582*6881a400SchristosU= 105837d62b00eSchristosfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 105847d62b00eSchristos # 1. Remove the extension, and $U if already installed. 105857d62b00eSchristos ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 105867d62b00eSchristos ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 105877d62b00eSchristos # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 105887d62b00eSchristos # will be set to the directory where LIBOBJS objects are built. 105897d62b00eSchristos as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 105907d62b00eSchristos as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 105917d62b00eSchristosdone 105927d62b00eSchristosLIBOBJS=$ac_libobjs 105937d62b00eSchristos 105947d62b00eSchristosLTLIBOBJS=$ac_ltlibobjs 105957d62b00eSchristos 105967d62b00eSchristos 105977d62b00eSchristosif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 105987d62b00eSchristos as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 105997d62b00eSchristosUsually this means the macro was only invoked conditionally." "$LINENO" 5 106007d62b00eSchristosfi 106017d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 106027d62b00eSchristos$as_echo_n "checking that generated files are newer than configure... " >&6; } 106037d62b00eSchristos if test -n "$am_sleep_pid"; then 106047d62b00eSchristos # Hide warnings about reused PIDs. 106057d62b00eSchristos wait $am_sleep_pid 2>/dev/null 106067d62b00eSchristos fi 106077d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 106087d62b00eSchristos$as_echo "done" >&6; } 106097d62b00eSchristos if test -n "$EXEEXT"; then 106107d62b00eSchristos am__EXEEXT_TRUE= 106117d62b00eSchristos am__EXEEXT_FALSE='#' 106127d62b00eSchristoselse 106137d62b00eSchristos am__EXEEXT_TRUE='#' 106147d62b00eSchristos am__EXEEXT_FALSE= 106157d62b00eSchristosfi 106167d62b00eSchristos 106177d62b00eSchristosif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 106187d62b00eSchristos as_fn_error $? "conditional \"AMDEP\" was never defined. 106197d62b00eSchristosUsually this means the macro was only invoked conditionally." "$LINENO" 5 106207d62b00eSchristosfi 106217d62b00eSchristosif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 106227d62b00eSchristos as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 106237d62b00eSchristosUsually this means the macro was only invoked conditionally." "$LINENO" 5 106247d62b00eSchristosfi 106257d62b00eSchristosif test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 106267d62b00eSchristos as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 106277d62b00eSchristosUsually this means the macro was only invoked conditionally." "$LINENO" 5 106287d62b00eSchristosfi 106297d62b00eSchristosif test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then 106307d62b00eSchristos as_fn_error $? "conditional \"SELFTEST\" was never defined. 106317d62b00eSchristosUsually this means the macro was only invoked conditionally." "$LINENO" 5 106327d62b00eSchristosfi 10633*6881a400Schristosif test -z "${HAVE_PIPE_OR_PIPE2_TRUE}" && test -z "${HAVE_PIPE_OR_PIPE2_FALSE}"; then 10634*6881a400Schristos as_fn_error $? "conditional \"HAVE_PIPE_OR_PIPE2\" was never defined. 10635*6881a400SchristosUsually this means the macro was only invoked conditionally." "$LINENO" 5 10636*6881a400Schristosfi 106377d62b00eSchristos 106387d62b00eSchristos: "${CONFIG_STATUS=./config.status}" 106397d62b00eSchristosac_write_fail=0 106407d62b00eSchristosac_clean_files_save=$ac_clean_files 106417d62b00eSchristosac_clean_files="$ac_clean_files $CONFIG_STATUS" 106427d62b00eSchristos{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 106437d62b00eSchristos$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 106447d62b00eSchristosas_write_fail=0 106457d62b00eSchristoscat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 106467d62b00eSchristos#! $SHELL 106477d62b00eSchristos# Generated by $as_me. 106487d62b00eSchristos# Run this file to recreate the current configuration. 106497d62b00eSchristos# Compiler output produced by configure, useful for debugging 106507d62b00eSchristos# configure, is in config.log if it exists. 106517d62b00eSchristos 106527d62b00eSchristosdebug=false 106537d62b00eSchristosac_cs_recheck=false 106547d62b00eSchristosac_cs_silent=false 106557d62b00eSchristos 106567d62b00eSchristosSHELL=\${CONFIG_SHELL-$SHELL} 106577d62b00eSchristosexport SHELL 106587d62b00eSchristos_ASEOF 106597d62b00eSchristoscat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 106607d62b00eSchristos## -------------------- ## 106617d62b00eSchristos## M4sh Initialization. ## 106627d62b00eSchristos## -------------------- ## 106637d62b00eSchristos 106647d62b00eSchristos# Be more Bourne compatible 106657d62b00eSchristosDUALCASE=1; export DUALCASE # for MKS sh 106667d62b00eSchristosif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 106677d62b00eSchristos emulate sh 106687d62b00eSchristos NULLCMD=: 106697d62b00eSchristos # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 106707d62b00eSchristos # is contrary to our usage. Disable this feature. 106717d62b00eSchristos alias -g '${1+"$@"}'='"$@"' 106727d62b00eSchristos setopt NO_GLOB_SUBST 106737d62b00eSchristoselse 106747d62b00eSchristos case `(set -o) 2>/dev/null` in #( 106757d62b00eSchristos *posix*) : 106767d62b00eSchristos set -o posix ;; #( 106777d62b00eSchristos *) : 106787d62b00eSchristos ;; 106797d62b00eSchristosesac 106807d62b00eSchristosfi 106817d62b00eSchristos 106827d62b00eSchristos 106837d62b00eSchristosas_nl=' 106847d62b00eSchristos' 106857d62b00eSchristosexport as_nl 106867d62b00eSchristos# Printing a long string crashes Solaris 7 /usr/bin/printf. 106877d62b00eSchristosas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 106887d62b00eSchristosas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 106897d62b00eSchristosas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 106907d62b00eSchristos# Prefer a ksh shell builtin over an external printf program on Solaris, 106917d62b00eSchristos# but without wasting forks for bash or zsh. 106927d62b00eSchristosif test -z "$BASH_VERSION$ZSH_VERSION" \ 106937d62b00eSchristos && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 106947d62b00eSchristos as_echo='print -r --' 106957d62b00eSchristos as_echo_n='print -rn --' 106967d62b00eSchristoselif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 106977d62b00eSchristos as_echo='printf %s\n' 106987d62b00eSchristos as_echo_n='printf %s' 106997d62b00eSchristoselse 107007d62b00eSchristos if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 107017d62b00eSchristos as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 107027d62b00eSchristos as_echo_n='/usr/ucb/echo -n' 107037d62b00eSchristos else 107047d62b00eSchristos as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 107057d62b00eSchristos as_echo_n_body='eval 107067d62b00eSchristos arg=$1; 107077d62b00eSchristos case $arg in #( 107087d62b00eSchristos *"$as_nl"*) 107097d62b00eSchristos expr "X$arg" : "X\\(.*\\)$as_nl"; 107107d62b00eSchristos arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 107117d62b00eSchristos esac; 107127d62b00eSchristos expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 107137d62b00eSchristos ' 107147d62b00eSchristos export as_echo_n_body 107157d62b00eSchristos as_echo_n='sh -c $as_echo_n_body as_echo' 107167d62b00eSchristos fi 107177d62b00eSchristos export as_echo_body 107187d62b00eSchristos as_echo='sh -c $as_echo_body as_echo' 107197d62b00eSchristosfi 107207d62b00eSchristos 107217d62b00eSchristos# The user is always right. 107227d62b00eSchristosif test "${PATH_SEPARATOR+set}" != set; then 107237d62b00eSchristos PATH_SEPARATOR=: 107247d62b00eSchristos (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 107257d62b00eSchristos (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 107267d62b00eSchristos PATH_SEPARATOR=';' 107277d62b00eSchristos } 107287d62b00eSchristosfi 107297d62b00eSchristos 107307d62b00eSchristos 107317d62b00eSchristos# IFS 107327d62b00eSchristos# We need space, tab and new line, in precisely that order. Quoting is 107337d62b00eSchristos# there to prevent editors from complaining about space-tab. 107347d62b00eSchristos# (If _AS_PATH_WALK were called with IFS unset, it would disable word 107357d62b00eSchristos# splitting by setting IFS to empty value.) 107367d62b00eSchristosIFS=" "" $as_nl" 107377d62b00eSchristos 107387d62b00eSchristos# Find who we are. Look in the path if we contain no directory separator. 107397d62b00eSchristosas_myself= 107407d62b00eSchristoscase $0 in #(( 107417d62b00eSchristos *[\\/]* ) as_myself=$0 ;; 107427d62b00eSchristos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 107437d62b00eSchristosfor as_dir in $PATH 107447d62b00eSchristosdo 107457d62b00eSchristos IFS=$as_save_IFS 107467d62b00eSchristos test -z "$as_dir" && as_dir=. 107477d62b00eSchristos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107487d62b00eSchristos done 107497d62b00eSchristosIFS=$as_save_IFS 107507d62b00eSchristos 107517d62b00eSchristos ;; 107527d62b00eSchristosesac 107537d62b00eSchristos# We did not find ourselves, most probably we were run as `sh COMMAND' 107547d62b00eSchristos# in which case we are not to be found in the path. 107557d62b00eSchristosif test "x$as_myself" = x; then 107567d62b00eSchristos as_myself=$0 107577d62b00eSchristosfi 107587d62b00eSchristosif test ! -f "$as_myself"; then 107597d62b00eSchristos $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 107607d62b00eSchristos exit 1 107617d62b00eSchristosfi 107627d62b00eSchristos 107637d62b00eSchristos# Unset variables that we do not need and which cause bugs (e.g. in 107647d62b00eSchristos# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 107657d62b00eSchristos# suppresses any "Segmentation fault" message there. '((' could 107667d62b00eSchristos# trigger a bug in pdksh 5.2.14. 107677d62b00eSchristosfor as_var in BASH_ENV ENV MAIL MAILPATH 107687d62b00eSchristosdo eval test x\${$as_var+set} = xset \ 107697d62b00eSchristos && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 107707d62b00eSchristosdone 107717d62b00eSchristosPS1='$ ' 107727d62b00eSchristosPS2='> ' 107737d62b00eSchristosPS4='+ ' 107747d62b00eSchristos 107757d62b00eSchristos# NLS nuisances. 107767d62b00eSchristosLC_ALL=C 107777d62b00eSchristosexport LC_ALL 107787d62b00eSchristosLANGUAGE=C 107797d62b00eSchristosexport LANGUAGE 107807d62b00eSchristos 107817d62b00eSchristos# CDPATH. 107827d62b00eSchristos(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 107837d62b00eSchristos 107847d62b00eSchristos 107857d62b00eSchristos# as_fn_error STATUS ERROR [LINENO LOG_FD] 107867d62b00eSchristos# ---------------------------------------- 107877d62b00eSchristos# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 107887d62b00eSchristos# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 107897d62b00eSchristos# script with STATUS, using 1 if that was 0. 107907d62b00eSchristosas_fn_error () 107917d62b00eSchristos{ 107927d62b00eSchristos as_status=$1; test $as_status -eq 0 && as_status=1 107937d62b00eSchristos if test "$4"; then 107947d62b00eSchristos as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 107957d62b00eSchristos $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 107967d62b00eSchristos fi 107977d62b00eSchristos $as_echo "$as_me: error: $2" >&2 107987d62b00eSchristos as_fn_exit $as_status 107997d62b00eSchristos} # as_fn_error 108007d62b00eSchristos 108017d62b00eSchristos 108027d62b00eSchristos# as_fn_set_status STATUS 108037d62b00eSchristos# ----------------------- 108047d62b00eSchristos# Set $? to STATUS, without forking. 108057d62b00eSchristosas_fn_set_status () 108067d62b00eSchristos{ 108077d62b00eSchristos return $1 108087d62b00eSchristos} # as_fn_set_status 108097d62b00eSchristos 108107d62b00eSchristos# as_fn_exit STATUS 108117d62b00eSchristos# ----------------- 108127d62b00eSchristos# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 108137d62b00eSchristosas_fn_exit () 108147d62b00eSchristos{ 108157d62b00eSchristos set +e 108167d62b00eSchristos as_fn_set_status $1 108177d62b00eSchristos exit $1 108187d62b00eSchristos} # as_fn_exit 108197d62b00eSchristos 108207d62b00eSchristos# as_fn_unset VAR 108217d62b00eSchristos# --------------- 108227d62b00eSchristos# Portably unset VAR. 108237d62b00eSchristosas_fn_unset () 108247d62b00eSchristos{ 108257d62b00eSchristos { eval $1=; unset $1;} 108267d62b00eSchristos} 108277d62b00eSchristosas_unset=as_fn_unset 108287d62b00eSchristos# as_fn_append VAR VALUE 108297d62b00eSchristos# ---------------------- 108307d62b00eSchristos# Append the text in VALUE to the end of the definition contained in VAR. Take 108317d62b00eSchristos# advantage of any shell optimizations that allow amortized linear growth over 108327d62b00eSchristos# repeated appends, instead of the typical quadratic growth present in naive 108337d62b00eSchristos# implementations. 108347d62b00eSchristosif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 108357d62b00eSchristos eval 'as_fn_append () 108367d62b00eSchristos { 108377d62b00eSchristos eval $1+=\$2 108387d62b00eSchristos }' 108397d62b00eSchristoselse 108407d62b00eSchristos as_fn_append () 108417d62b00eSchristos { 108427d62b00eSchristos eval $1=\$$1\$2 108437d62b00eSchristos } 108447d62b00eSchristosfi # as_fn_append 108457d62b00eSchristos 108467d62b00eSchristos# as_fn_arith ARG... 108477d62b00eSchristos# ------------------ 108487d62b00eSchristos# Perform arithmetic evaluation on the ARGs, and store the result in the 108497d62b00eSchristos# global $as_val. Take advantage of shells that can avoid forks. The arguments 108507d62b00eSchristos# must be portable across $(()) and expr. 108517d62b00eSchristosif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 108527d62b00eSchristos eval 'as_fn_arith () 108537d62b00eSchristos { 108547d62b00eSchristos as_val=$(( $* )) 108557d62b00eSchristos }' 108567d62b00eSchristoselse 108577d62b00eSchristos as_fn_arith () 108587d62b00eSchristos { 108597d62b00eSchristos as_val=`expr "$@" || test $? -eq 1` 108607d62b00eSchristos } 108617d62b00eSchristosfi # as_fn_arith 108627d62b00eSchristos 108637d62b00eSchristos 108647d62b00eSchristosif expr a : '\(a\)' >/dev/null 2>&1 && 108657d62b00eSchristos test "X`expr 00001 : '.*\(...\)'`" = X001; then 108667d62b00eSchristos as_expr=expr 108677d62b00eSchristoselse 108687d62b00eSchristos as_expr=false 108697d62b00eSchristosfi 108707d62b00eSchristos 108717d62b00eSchristosif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 108727d62b00eSchristos as_basename=basename 108737d62b00eSchristoselse 108747d62b00eSchristos as_basename=false 108757d62b00eSchristosfi 108767d62b00eSchristos 108777d62b00eSchristosif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 108787d62b00eSchristos as_dirname=dirname 108797d62b00eSchristoselse 108807d62b00eSchristos as_dirname=false 108817d62b00eSchristosfi 108827d62b00eSchristos 108837d62b00eSchristosas_me=`$as_basename -- "$0" || 108847d62b00eSchristos$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 108857d62b00eSchristos X"$0" : 'X\(//\)$' \| \ 108867d62b00eSchristos X"$0" : 'X\(/\)' \| . 2>/dev/null || 108877d62b00eSchristos$as_echo X/"$0" | 108887d62b00eSchristos sed '/^.*\/\([^/][^/]*\)\/*$/{ 108897d62b00eSchristos s//\1/ 108907d62b00eSchristos q 108917d62b00eSchristos } 108927d62b00eSchristos /^X\/\(\/\/\)$/{ 108937d62b00eSchristos s//\1/ 108947d62b00eSchristos q 108957d62b00eSchristos } 108967d62b00eSchristos /^X\/\(\/\).*/{ 108977d62b00eSchristos s//\1/ 108987d62b00eSchristos q 108997d62b00eSchristos } 109007d62b00eSchristos s/.*/./; q'` 109017d62b00eSchristos 109027d62b00eSchristos# Avoid depending upon Character Ranges. 109037d62b00eSchristosas_cr_letters='abcdefghijklmnopqrstuvwxyz' 109047d62b00eSchristosas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 109057d62b00eSchristosas_cr_Letters=$as_cr_letters$as_cr_LETTERS 109067d62b00eSchristosas_cr_digits='0123456789' 109077d62b00eSchristosas_cr_alnum=$as_cr_Letters$as_cr_digits 109087d62b00eSchristos 109097d62b00eSchristosECHO_C= ECHO_N= ECHO_T= 109107d62b00eSchristoscase `echo -n x` in #((((( 109117d62b00eSchristos-n*) 109127d62b00eSchristos case `echo 'xy\c'` in 109137d62b00eSchristos *c*) ECHO_T=' ';; # ECHO_T is single tab character. 109147d62b00eSchristos xy) ECHO_C='\c';; 109157d62b00eSchristos *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 109167d62b00eSchristos ECHO_T=' ';; 109177d62b00eSchristos esac;; 109187d62b00eSchristos*) 109197d62b00eSchristos ECHO_N='-n';; 109207d62b00eSchristosesac 109217d62b00eSchristos 109227d62b00eSchristosrm -f conf$$ conf$$.exe conf$$.file 109237d62b00eSchristosif test -d conf$$.dir; then 109247d62b00eSchristos rm -f conf$$.dir/conf$$.file 109257d62b00eSchristoselse 109267d62b00eSchristos rm -f conf$$.dir 109277d62b00eSchristos mkdir conf$$.dir 2>/dev/null 109287d62b00eSchristosfi 109297d62b00eSchristosif (echo >conf$$.file) 2>/dev/null; then 109307d62b00eSchristos if ln -s conf$$.file conf$$ 2>/dev/null; then 109317d62b00eSchristos as_ln_s='ln -s' 109327d62b00eSchristos # ... but there are two gotchas: 109337d62b00eSchristos # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 109347d62b00eSchristos # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 109357d62b00eSchristos # In both cases, we have to default to `cp -pR'. 109367d62b00eSchristos ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 109377d62b00eSchristos as_ln_s='cp -pR' 109387d62b00eSchristos elif ln conf$$.file conf$$ 2>/dev/null; then 109397d62b00eSchristos as_ln_s=ln 109407d62b00eSchristos else 109417d62b00eSchristos as_ln_s='cp -pR' 109427d62b00eSchristos fi 109437d62b00eSchristoselse 109447d62b00eSchristos as_ln_s='cp -pR' 109457d62b00eSchristosfi 109467d62b00eSchristosrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 109477d62b00eSchristosrmdir conf$$.dir 2>/dev/null 109487d62b00eSchristos 109497d62b00eSchristos 109507d62b00eSchristos# as_fn_mkdir_p 109517d62b00eSchristos# ------------- 109527d62b00eSchristos# Create "$as_dir" as a directory, including parents if necessary. 109537d62b00eSchristosas_fn_mkdir_p () 109547d62b00eSchristos{ 109557d62b00eSchristos 109567d62b00eSchristos case $as_dir in #( 109577d62b00eSchristos -*) as_dir=./$as_dir;; 109587d62b00eSchristos esac 109597d62b00eSchristos test -d "$as_dir" || eval $as_mkdir_p || { 109607d62b00eSchristos as_dirs= 109617d62b00eSchristos while :; do 109627d62b00eSchristos case $as_dir in #( 109637d62b00eSchristos *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 109647d62b00eSchristos *) as_qdir=$as_dir;; 109657d62b00eSchristos esac 109667d62b00eSchristos as_dirs="'$as_qdir' $as_dirs" 109677d62b00eSchristos as_dir=`$as_dirname -- "$as_dir" || 109687d62b00eSchristos$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 109697d62b00eSchristos X"$as_dir" : 'X\(//\)[^/]' \| \ 109707d62b00eSchristos X"$as_dir" : 'X\(//\)$' \| \ 109717d62b00eSchristos X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 109727d62b00eSchristos$as_echo X"$as_dir" | 109737d62b00eSchristos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 109747d62b00eSchristos s//\1/ 109757d62b00eSchristos q 109767d62b00eSchristos } 109777d62b00eSchristos /^X\(\/\/\)[^/].*/{ 109787d62b00eSchristos s//\1/ 109797d62b00eSchristos q 109807d62b00eSchristos } 109817d62b00eSchristos /^X\(\/\/\)$/{ 109827d62b00eSchristos s//\1/ 109837d62b00eSchristos q 109847d62b00eSchristos } 109857d62b00eSchristos /^X\(\/\).*/{ 109867d62b00eSchristos s//\1/ 109877d62b00eSchristos q 109887d62b00eSchristos } 109897d62b00eSchristos s/.*/./; q'` 109907d62b00eSchristos test -d "$as_dir" && break 109917d62b00eSchristos done 109927d62b00eSchristos test -z "$as_dirs" || eval "mkdir $as_dirs" 109937d62b00eSchristos } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 109947d62b00eSchristos 109957d62b00eSchristos 109967d62b00eSchristos} # as_fn_mkdir_p 109977d62b00eSchristosif mkdir -p . 2>/dev/null; then 109987d62b00eSchristos as_mkdir_p='mkdir -p "$as_dir"' 109997d62b00eSchristoselse 110007d62b00eSchristos test -d ./-p && rmdir ./-p 110017d62b00eSchristos as_mkdir_p=false 110027d62b00eSchristosfi 110037d62b00eSchristos 110047d62b00eSchristos 110057d62b00eSchristos# as_fn_executable_p FILE 110067d62b00eSchristos# ----------------------- 110077d62b00eSchristos# Test if FILE is an executable regular file. 110087d62b00eSchristosas_fn_executable_p () 110097d62b00eSchristos{ 110107d62b00eSchristos test -f "$1" && test -x "$1" 110117d62b00eSchristos} # as_fn_executable_p 110127d62b00eSchristosas_test_x='test -x' 110137d62b00eSchristosas_executable_p=as_fn_executable_p 110147d62b00eSchristos 110157d62b00eSchristos# Sed expression to map a string onto a valid CPP name. 110167d62b00eSchristosas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 110177d62b00eSchristos 110187d62b00eSchristos# Sed expression to map a string onto a valid variable name. 110197d62b00eSchristosas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 110207d62b00eSchristos 110217d62b00eSchristos 110227d62b00eSchristosexec 6>&1 110237d62b00eSchristos## ----------------------------------- ## 110247d62b00eSchristos## Main body of $CONFIG_STATUS script. ## 110257d62b00eSchristos## ----------------------------------- ## 110267d62b00eSchristos_ASEOF 110277d62b00eSchristostest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 110287d62b00eSchristos 110297d62b00eSchristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 110307d62b00eSchristos# Save the log message, to keep $0 and so on meaningful, and to 110317d62b00eSchristos# report actual input values of CONFIG_FILES etc. instead of their 110327d62b00eSchristos# values after options handling. 110337d62b00eSchristosac_log=" 110347d62b00eSchristosThis file was extended by gdbsupport $as_me 1.0, which was 110357d62b00eSchristosgenerated by GNU Autoconf 2.69. Invocation command line was 110367d62b00eSchristos 110377d62b00eSchristos CONFIG_FILES = $CONFIG_FILES 110387d62b00eSchristos CONFIG_HEADERS = $CONFIG_HEADERS 110397d62b00eSchristos CONFIG_LINKS = $CONFIG_LINKS 110407d62b00eSchristos CONFIG_COMMANDS = $CONFIG_COMMANDS 110417d62b00eSchristos $ $0 $@ 110427d62b00eSchristos 110437d62b00eSchristoson `(hostname || uname -n) 2>/dev/null | sed 1q` 110447d62b00eSchristos" 110457d62b00eSchristos 110467d62b00eSchristos_ACEOF 110477d62b00eSchristos 110487d62b00eSchristoscase $ac_config_files in *" 110497d62b00eSchristos"*) set x $ac_config_files; shift; ac_config_files=$*;; 110507d62b00eSchristosesac 110517d62b00eSchristos 110527d62b00eSchristoscase $ac_config_headers in *" 110537d62b00eSchristos"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 110547d62b00eSchristosesac 110557d62b00eSchristos 110567d62b00eSchristos 110577d62b00eSchristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 110587d62b00eSchristos# Files that config.status was made for. 110597d62b00eSchristosconfig_files="$ac_config_files" 110607d62b00eSchristosconfig_headers="$ac_config_headers" 110617d62b00eSchristosconfig_commands="$ac_config_commands" 110627d62b00eSchristos 110637d62b00eSchristos_ACEOF 110647d62b00eSchristos 110657d62b00eSchristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 110667d62b00eSchristosac_cs_usage="\ 110677d62b00eSchristos\`$as_me' instantiates files and other configuration actions 110687d62b00eSchristosfrom templates according to the current configuration. Unless the files 110697d62b00eSchristosand actions are specified as TAGs, all are instantiated by default. 110707d62b00eSchristos 110717d62b00eSchristosUsage: $0 [OPTION]... [TAG]... 110727d62b00eSchristos 110737d62b00eSchristos -h, --help print this help, then exit 110747d62b00eSchristos -V, --version print version number and configuration settings, then exit 110757d62b00eSchristos --config print configuration, then exit 110767d62b00eSchristos -q, --quiet, --silent 110777d62b00eSchristos do not print progress messages 110787d62b00eSchristos -d, --debug don't remove temporary files 110797d62b00eSchristos --recheck update $as_me by reconfiguring in the same conditions 110807d62b00eSchristos --file=FILE[:TEMPLATE] 110817d62b00eSchristos instantiate the configuration file FILE 110827d62b00eSchristos --header=FILE[:TEMPLATE] 110837d62b00eSchristos instantiate the configuration header FILE 110847d62b00eSchristos 110857d62b00eSchristosConfiguration files: 110867d62b00eSchristos$config_files 110877d62b00eSchristos 110887d62b00eSchristosConfiguration headers: 110897d62b00eSchristos$config_headers 110907d62b00eSchristos 110917d62b00eSchristosConfiguration commands: 110927d62b00eSchristos$config_commands 110937d62b00eSchristos 110947d62b00eSchristosReport bugs to the package provider." 110957d62b00eSchristos 110967d62b00eSchristos_ACEOF 110977d62b00eSchristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 110987d62b00eSchristosac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 110997d62b00eSchristosac_cs_version="\\ 111007d62b00eSchristosgdbsupport config.status 1.0 111017d62b00eSchristosconfigured by $0, generated by GNU Autoconf 2.69, 111027d62b00eSchristos with options \\"\$ac_cs_config\\" 111037d62b00eSchristos 111047d62b00eSchristosCopyright (C) 2012 Free Software Foundation, Inc. 111057d62b00eSchristosThis config.status script is free software; the Free Software Foundation 111067d62b00eSchristosgives unlimited permission to copy, distribute and modify it." 111077d62b00eSchristos 111087d62b00eSchristosac_pwd='$ac_pwd' 111097d62b00eSchristossrcdir='$srcdir' 111107d62b00eSchristosINSTALL='$INSTALL' 111117d62b00eSchristosMKDIR_P='$MKDIR_P' 111127d62b00eSchristosAWK='$AWK' 111137d62b00eSchristostest -n "\$AWK" || AWK=awk 111147d62b00eSchristos_ACEOF 111157d62b00eSchristos 111167d62b00eSchristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 111177d62b00eSchristos# The default lists apply if the user does not specify any file. 111187d62b00eSchristosac_need_defaults=: 111197d62b00eSchristoswhile test $# != 0 111207d62b00eSchristosdo 111217d62b00eSchristos case $1 in 111227d62b00eSchristos --*=?*) 111237d62b00eSchristos ac_option=`expr "X$1" : 'X\([^=]*\)='` 111247d62b00eSchristos ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 111257d62b00eSchristos ac_shift=: 111267d62b00eSchristos ;; 111277d62b00eSchristos --*=) 111287d62b00eSchristos ac_option=`expr "X$1" : 'X\([^=]*\)='` 111297d62b00eSchristos ac_optarg= 111307d62b00eSchristos ac_shift=: 111317d62b00eSchristos ;; 111327d62b00eSchristos *) 111337d62b00eSchristos ac_option=$1 111347d62b00eSchristos ac_optarg=$2 111357d62b00eSchristos ac_shift=shift 111367d62b00eSchristos ;; 111377d62b00eSchristos esac 111387d62b00eSchristos 111397d62b00eSchristos case $ac_option in 111407d62b00eSchristos # Handling of the options. 111417d62b00eSchristos -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 111427d62b00eSchristos ac_cs_recheck=: ;; 111437d62b00eSchristos --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 111447d62b00eSchristos $as_echo "$ac_cs_version"; exit ;; 111457d62b00eSchristos --config | --confi | --conf | --con | --co | --c ) 111467d62b00eSchristos $as_echo "$ac_cs_config"; exit ;; 111477d62b00eSchristos --debug | --debu | --deb | --de | --d | -d ) 111487d62b00eSchristos debug=: ;; 111497d62b00eSchristos --file | --fil | --fi | --f ) 111507d62b00eSchristos $ac_shift 111517d62b00eSchristos case $ac_optarg in 111527d62b00eSchristos *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 111537d62b00eSchristos '') as_fn_error $? "missing file argument" ;; 111547d62b00eSchristos esac 111557d62b00eSchristos as_fn_append CONFIG_FILES " '$ac_optarg'" 111567d62b00eSchristos ac_need_defaults=false;; 111577d62b00eSchristos --header | --heade | --head | --hea ) 111587d62b00eSchristos $ac_shift 111597d62b00eSchristos case $ac_optarg in 111607d62b00eSchristos *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 111617d62b00eSchristos esac 111627d62b00eSchristos as_fn_append CONFIG_HEADERS " '$ac_optarg'" 111637d62b00eSchristos ac_need_defaults=false;; 111647d62b00eSchristos --he | --h) 111657d62b00eSchristos # Conflict between --help and --header 111667d62b00eSchristos as_fn_error $? "ambiguous option: \`$1' 111677d62b00eSchristosTry \`$0 --help' for more information.";; 111687d62b00eSchristos --help | --hel | -h ) 111697d62b00eSchristos $as_echo "$ac_cs_usage"; exit ;; 111707d62b00eSchristos -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 111717d62b00eSchristos | -silent | --silent | --silen | --sile | --sil | --si | --s) 111727d62b00eSchristos ac_cs_silent=: ;; 111737d62b00eSchristos 111747d62b00eSchristos # This is an error. 111757d62b00eSchristos -*) as_fn_error $? "unrecognized option: \`$1' 111767d62b00eSchristosTry \`$0 --help' for more information." ;; 111777d62b00eSchristos 111787d62b00eSchristos *) as_fn_append ac_config_targets " $1" 111797d62b00eSchristos ac_need_defaults=false ;; 111807d62b00eSchristos 111817d62b00eSchristos esac 111827d62b00eSchristos shift 111837d62b00eSchristosdone 111847d62b00eSchristos 111857d62b00eSchristosac_configure_extra_args= 111867d62b00eSchristos 111877d62b00eSchristosif $ac_cs_silent; then 111887d62b00eSchristos exec 6>/dev/null 111897d62b00eSchristos ac_configure_extra_args="$ac_configure_extra_args --silent" 111907d62b00eSchristosfi 111917d62b00eSchristos 111927d62b00eSchristos_ACEOF 111937d62b00eSchristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 111947d62b00eSchristosif \$ac_cs_recheck; then 111957d62b00eSchristos set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 111967d62b00eSchristos shift 111977d62b00eSchristos \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 111987d62b00eSchristos CONFIG_SHELL='$SHELL' 111997d62b00eSchristos export CONFIG_SHELL 112007d62b00eSchristos exec "\$@" 112017d62b00eSchristosfi 112027d62b00eSchristos 112037d62b00eSchristos_ACEOF 112047d62b00eSchristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 112057d62b00eSchristosexec 5>>config.log 112067d62b00eSchristos{ 112077d62b00eSchristos echo 112087d62b00eSchristos sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 112097d62b00eSchristos## Running $as_me. ## 112107d62b00eSchristos_ASBOX 112117d62b00eSchristos $as_echo "$ac_log" 112127d62b00eSchristos} >&5 112137d62b00eSchristos 112147d62b00eSchristos_ACEOF 112157d62b00eSchristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 112167d62b00eSchristos# 112177d62b00eSchristos# INIT-COMMANDS 112187d62b00eSchristos# 112197d62b00eSchristosAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 112207d62b00eSchristos 112217d62b00eSchristos_ACEOF 112227d62b00eSchristos 112237d62b00eSchristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 112247d62b00eSchristos 112257d62b00eSchristos# Handling of arguments. 112267d62b00eSchristosfor ac_config_target in $ac_config_targets 112277d62b00eSchristosdo 112287d62b00eSchristos case $ac_config_target in 112297d62b00eSchristos "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 112307d62b00eSchristos "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 112317d62b00eSchristos "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 112327d62b00eSchristos 112337d62b00eSchristos *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 112347d62b00eSchristos esac 112357d62b00eSchristosdone 112367d62b00eSchristos 112377d62b00eSchristos 112387d62b00eSchristos# If the user did not use the arguments to specify the items to instantiate, 112397d62b00eSchristos# then the envvar interface is used. Set only those that are not. 112407d62b00eSchristos# We use the long form for the default assignment because of an extremely 112417d62b00eSchristos# bizarre bug on SunOS 4.1.3. 112427d62b00eSchristosif $ac_need_defaults; then 112437d62b00eSchristos test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 112447d62b00eSchristos test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 112457d62b00eSchristos test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 112467d62b00eSchristosfi 112477d62b00eSchristos 112487d62b00eSchristos# Have a temporary directory for convenience. Make it in the build tree 112497d62b00eSchristos# simply because there is no reason against having it here, and in addition, 112507d62b00eSchristos# creating and moving files from /tmp can sometimes cause problems. 112517d62b00eSchristos# Hook for its removal unless debugging. 112527d62b00eSchristos# Note that there is a small window in which the directory will not be cleaned: 112537d62b00eSchristos# after its creation but before its name has been assigned to `$tmp'. 112547d62b00eSchristos$debug || 112557d62b00eSchristos{ 112567d62b00eSchristos tmp= ac_tmp= 112577d62b00eSchristos trap 'exit_status=$? 112587d62b00eSchristos : "${ac_tmp:=$tmp}" 112597d62b00eSchristos { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 112607d62b00eSchristos' 0 112617d62b00eSchristos trap 'as_fn_exit 1' 1 2 13 15 112627d62b00eSchristos} 112637d62b00eSchristos# Create a (secure) tmp directory for tmp files. 112647d62b00eSchristos 112657d62b00eSchristos{ 112667d62b00eSchristos tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 112677d62b00eSchristos test -d "$tmp" 112687d62b00eSchristos} || 112697d62b00eSchristos{ 112707d62b00eSchristos tmp=./conf$$-$RANDOM 112717d62b00eSchristos (umask 077 && mkdir "$tmp") 112727d62b00eSchristos} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 112737d62b00eSchristosac_tmp=$tmp 112747d62b00eSchristos 112757d62b00eSchristos# Set up the scripts for CONFIG_FILES section. 112767d62b00eSchristos# No need to generate them if there are no CONFIG_FILES. 112777d62b00eSchristos# This happens for instance with `./config.status config.h'. 112787d62b00eSchristosif test -n "$CONFIG_FILES"; then 112797d62b00eSchristos 112807d62b00eSchristos 112817d62b00eSchristosac_cr=`echo X | tr X '\015'` 112827d62b00eSchristos# On cygwin, bash can eat \r inside `` if the user requested igncr. 112837d62b00eSchristos# But we know of no other shell where ac_cr would be empty at this 112847d62b00eSchristos# point, so we can use a bashism as a fallback. 112857d62b00eSchristosif test "x$ac_cr" = x; then 112867d62b00eSchristos eval ac_cr=\$\'\\r\' 112877d62b00eSchristosfi 112887d62b00eSchristosac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 112897d62b00eSchristosif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 112907d62b00eSchristos ac_cs_awk_cr='\\r' 112917d62b00eSchristoselse 112927d62b00eSchristos ac_cs_awk_cr=$ac_cr 112937d62b00eSchristosfi 112947d62b00eSchristos 112957d62b00eSchristosecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 112967d62b00eSchristos_ACEOF 112977d62b00eSchristos 112987d62b00eSchristos 112997d62b00eSchristos{ 113007d62b00eSchristos echo "cat >conf$$subs.awk <<_ACEOF" && 113017d62b00eSchristos echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 113027d62b00eSchristos echo "_ACEOF" 113037d62b00eSchristos} >conf$$subs.sh || 113047d62b00eSchristos as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 113057d62b00eSchristosac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 113067d62b00eSchristosac_delim='%!_!# ' 113077d62b00eSchristosfor ac_last_try in false false false false false :; do 113087d62b00eSchristos . ./conf$$subs.sh || 113097d62b00eSchristos as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 113107d62b00eSchristos 113117d62b00eSchristos ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 113127d62b00eSchristos if test $ac_delim_n = $ac_delim_num; then 113137d62b00eSchristos break 113147d62b00eSchristos elif $ac_last_try; then 113157d62b00eSchristos as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 113167d62b00eSchristos else 113177d62b00eSchristos ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 113187d62b00eSchristos fi 113197d62b00eSchristosdone 113207d62b00eSchristosrm -f conf$$subs.sh 113217d62b00eSchristos 113227d62b00eSchristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 113237d62b00eSchristoscat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 113247d62b00eSchristos_ACEOF 113257d62b00eSchristossed -n ' 113267d62b00eSchristosh 113277d62b00eSchristoss/^/S["/; s/!.*/"]=/ 113287d62b00eSchristosp 113297d62b00eSchristosg 113307d62b00eSchristoss/^[^!]*!// 113317d62b00eSchristos:repl 113327d62b00eSchristost repl 113337d62b00eSchristoss/'"$ac_delim"'$// 113347d62b00eSchristost delim 113357d62b00eSchristos:nl 113367d62b00eSchristosh 113377d62b00eSchristoss/\(.\{148\}\)..*/\1/ 113387d62b00eSchristost more1 113397d62b00eSchristoss/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 113407d62b00eSchristosp 113417d62b00eSchristosn 113427d62b00eSchristosb repl 113437d62b00eSchristos:more1 113447d62b00eSchristoss/["\\]/\\&/g; s/^/"/; s/$/"\\/ 113457d62b00eSchristosp 113467d62b00eSchristosg 113477d62b00eSchristoss/.\{148\}// 113487d62b00eSchristost nl 113497d62b00eSchristos:delim 113507d62b00eSchristosh 113517d62b00eSchristoss/\(.\{148\}\)..*/\1/ 113527d62b00eSchristost more2 113537d62b00eSchristoss/["\\]/\\&/g; s/^/"/; s/$/"/ 113547d62b00eSchristosp 113557d62b00eSchristosb 113567d62b00eSchristos:more2 113577d62b00eSchristoss/["\\]/\\&/g; s/^/"/; s/$/"\\/ 113587d62b00eSchristosp 113597d62b00eSchristosg 113607d62b00eSchristoss/.\{148\}// 113617d62b00eSchristost delim 113627d62b00eSchristos' <conf$$subs.awk | sed ' 113637d62b00eSchristos/^[^""]/{ 113647d62b00eSchristos N 113657d62b00eSchristos s/\n// 113667d62b00eSchristos} 113677d62b00eSchristos' >>$CONFIG_STATUS || ac_write_fail=1 113687d62b00eSchristosrm -f conf$$subs.awk 113697d62b00eSchristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 113707d62b00eSchristos_ACAWK 113717d62b00eSchristoscat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 113727d62b00eSchristos for (key in S) S_is_set[key] = 1 113737d62b00eSchristos FS = "" 113747d62b00eSchristos 113757d62b00eSchristos} 113767d62b00eSchristos{ 113777d62b00eSchristos line = $ 0 113787d62b00eSchristos nfields = split(line, field, "@") 113797d62b00eSchristos substed = 0 113807d62b00eSchristos len = length(field[1]) 113817d62b00eSchristos for (i = 2; i < nfields; i++) { 113827d62b00eSchristos key = field[i] 113837d62b00eSchristos keylen = length(key) 113847d62b00eSchristos if (S_is_set[key]) { 113857d62b00eSchristos value = S[key] 113867d62b00eSchristos line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 113877d62b00eSchristos len += length(value) + length(field[++i]) 113887d62b00eSchristos substed = 1 113897d62b00eSchristos } else 113907d62b00eSchristos len += 1 + keylen 113917d62b00eSchristos } 113927d62b00eSchristos 113937d62b00eSchristos print line 113947d62b00eSchristos} 113957d62b00eSchristos 113967d62b00eSchristos_ACAWK 113977d62b00eSchristos_ACEOF 113987d62b00eSchristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 113997d62b00eSchristosif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 114007d62b00eSchristos sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 114017d62b00eSchristoselse 114027d62b00eSchristos cat 114037d62b00eSchristosfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 114047d62b00eSchristos || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 114057d62b00eSchristos_ACEOF 114067d62b00eSchristos 114077d62b00eSchristos# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 114087d62b00eSchristos# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 114097d62b00eSchristos# trailing colons and then remove the whole line if VPATH becomes empty 114107d62b00eSchristos# (actually we leave an empty line to preserve line numbers). 114117d62b00eSchristosif test "x$srcdir" = x.; then 114127d62b00eSchristos ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 114137d62b00eSchristosh 114147d62b00eSchristoss/// 114157d62b00eSchristoss/^/:/ 114167d62b00eSchristoss/[ ]*$/:/ 114177d62b00eSchristoss/:\$(srcdir):/:/g 114187d62b00eSchristoss/:\${srcdir}:/:/g 114197d62b00eSchristoss/:@srcdir@:/:/g 114207d62b00eSchristoss/^:*// 114217d62b00eSchristoss/:*$// 114227d62b00eSchristosx 114237d62b00eSchristoss/\(=[ ]*\).*/\1/ 114247d62b00eSchristosG 114257d62b00eSchristoss/\n// 114267d62b00eSchristoss/^[^=]*=[ ]*$// 114277d62b00eSchristos}' 114287d62b00eSchristosfi 114297d62b00eSchristos 114307d62b00eSchristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 114317d62b00eSchristosfi # test -n "$CONFIG_FILES" 114327d62b00eSchristos 114337d62b00eSchristos# Set up the scripts for CONFIG_HEADERS section. 114347d62b00eSchristos# No need to generate them if there are no CONFIG_HEADERS. 114357d62b00eSchristos# This happens for instance with `./config.status Makefile'. 114367d62b00eSchristosif test -n "$CONFIG_HEADERS"; then 114377d62b00eSchristoscat >"$ac_tmp/defines.awk" <<\_ACAWK || 114387d62b00eSchristosBEGIN { 114397d62b00eSchristos_ACEOF 114407d62b00eSchristos 114417d62b00eSchristos# Transform confdefs.h into an awk script `defines.awk', embedded as 114427d62b00eSchristos# here-document in config.status, that substitutes the proper values into 114437d62b00eSchristos# config.h.in to produce config.h. 114447d62b00eSchristos 114457d62b00eSchristos# Create a delimiter string that does not exist in confdefs.h, to ease 114467d62b00eSchristos# handling of long lines. 114477d62b00eSchristosac_delim='%!_!# ' 114487d62b00eSchristosfor ac_last_try in false false :; do 114497d62b00eSchristos ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 114507d62b00eSchristos if test -z "$ac_tt"; then 114517d62b00eSchristos break 114527d62b00eSchristos elif $ac_last_try; then 114537d62b00eSchristos as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 114547d62b00eSchristos else 114557d62b00eSchristos ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 114567d62b00eSchristos fi 114577d62b00eSchristosdone 114587d62b00eSchristos 114597d62b00eSchristos# For the awk script, D is an array of macro values keyed by name, 114607d62b00eSchristos# likewise P contains macro parameters if any. Preserve backslash 114617d62b00eSchristos# newline sequences. 114627d62b00eSchristos 114637d62b00eSchristosac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 114647d62b00eSchristossed -n ' 114657d62b00eSchristoss/.\{148\}/&'"$ac_delim"'/g 114667d62b00eSchristost rset 114677d62b00eSchristos:rset 114687d62b00eSchristoss/^[ ]*#[ ]*define[ ][ ]*/ / 114697d62b00eSchristost def 114707d62b00eSchristosd 114717d62b00eSchristos:def 114727d62b00eSchristoss/\\$// 114737d62b00eSchristost bsnl 114747d62b00eSchristoss/["\\]/\\&/g 114757d62b00eSchristoss/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 114767d62b00eSchristosD["\1"]=" \3"/p 114777d62b00eSchristoss/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 114787d62b00eSchristosd 114797d62b00eSchristos:bsnl 114807d62b00eSchristoss/["\\]/\\&/g 114817d62b00eSchristoss/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 114827d62b00eSchristosD["\1"]=" \3\\\\\\n"\\/p 114837d62b00eSchristost cont 114847d62b00eSchristoss/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 114857d62b00eSchristost cont 114867d62b00eSchristosd 114877d62b00eSchristos:cont 114887d62b00eSchristosn 114897d62b00eSchristoss/.\{148\}/&'"$ac_delim"'/g 114907d62b00eSchristost clear 114917d62b00eSchristos:clear 114927d62b00eSchristoss/\\$// 114937d62b00eSchristost bsnlc 114947d62b00eSchristoss/["\\]/\\&/g; s/^/"/; s/$/"/p 114957d62b00eSchristosd 114967d62b00eSchristos:bsnlc 114977d62b00eSchristoss/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 114987d62b00eSchristosb cont 114997d62b00eSchristos' <confdefs.h | sed ' 115007d62b00eSchristoss/'"$ac_delim"'/"\\\ 115017d62b00eSchristos"/g' >>$CONFIG_STATUS || ac_write_fail=1 115027d62b00eSchristos 115037d62b00eSchristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 115047d62b00eSchristos for (key in D) D_is_set[key] = 1 115057d62b00eSchristos FS = "" 115067d62b00eSchristos} 115077d62b00eSchristos/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 115087d62b00eSchristos line = \$ 0 115097d62b00eSchristos split(line, arg, " ") 115107d62b00eSchristos if (arg[1] == "#") { 115117d62b00eSchristos defundef = arg[2] 115127d62b00eSchristos mac1 = arg[3] 115137d62b00eSchristos } else { 115147d62b00eSchristos defundef = substr(arg[1], 2) 115157d62b00eSchristos mac1 = arg[2] 115167d62b00eSchristos } 115177d62b00eSchristos split(mac1, mac2, "(") #) 115187d62b00eSchristos macro = mac2[1] 115197d62b00eSchristos prefix = substr(line, 1, index(line, defundef) - 1) 115207d62b00eSchristos if (D_is_set[macro]) { 115217d62b00eSchristos # Preserve the white space surrounding the "#". 115227d62b00eSchristos print prefix "define", macro P[macro] D[macro] 115237d62b00eSchristos next 115247d62b00eSchristos } else { 115257d62b00eSchristos # Replace #undef with comments. This is necessary, for example, 115267d62b00eSchristos # in the case of _POSIX_SOURCE, which is predefined and required 115277d62b00eSchristos # on some systems where configure will not decide to define it. 115287d62b00eSchristos if (defundef == "undef") { 115297d62b00eSchristos print "/*", prefix defundef, macro, "*/" 115307d62b00eSchristos next 115317d62b00eSchristos } 115327d62b00eSchristos } 115337d62b00eSchristos} 115347d62b00eSchristos{ print } 115357d62b00eSchristos_ACAWK 115367d62b00eSchristos_ACEOF 115377d62b00eSchristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 115387d62b00eSchristos as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 115397d62b00eSchristosfi # test -n "$CONFIG_HEADERS" 115407d62b00eSchristos 115417d62b00eSchristos 115427d62b00eSchristoseval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 115437d62b00eSchristosshift 115447d62b00eSchristosfor ac_tag 115457d62b00eSchristosdo 115467d62b00eSchristos case $ac_tag in 115477d62b00eSchristos :[FHLC]) ac_mode=$ac_tag; continue;; 115487d62b00eSchristos esac 115497d62b00eSchristos case $ac_mode$ac_tag in 115507d62b00eSchristos :[FHL]*:*);; 115517d62b00eSchristos :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 115527d62b00eSchristos :[FH]-) ac_tag=-:-;; 115537d62b00eSchristos :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 115547d62b00eSchristos esac 115557d62b00eSchristos ac_save_IFS=$IFS 115567d62b00eSchristos IFS=: 115577d62b00eSchristos set x $ac_tag 115587d62b00eSchristos IFS=$ac_save_IFS 115597d62b00eSchristos shift 115607d62b00eSchristos ac_file=$1 115617d62b00eSchristos shift 115627d62b00eSchristos 115637d62b00eSchristos case $ac_mode in 115647d62b00eSchristos :L) ac_source=$1;; 115657d62b00eSchristos :[FH]) 115667d62b00eSchristos ac_file_inputs= 115677d62b00eSchristos for ac_f 115687d62b00eSchristos do 115697d62b00eSchristos case $ac_f in 115707d62b00eSchristos -) ac_f="$ac_tmp/stdin";; 115717d62b00eSchristos *) # Look for the file first in the build tree, then in the source tree 115727d62b00eSchristos # (if the path is not absolute). The absolute path cannot be DOS-style, 115737d62b00eSchristos # because $ac_f cannot contain `:'. 115747d62b00eSchristos test -f "$ac_f" || 115757d62b00eSchristos case $ac_f in 115767d62b00eSchristos [\\/$]*) false;; 115777d62b00eSchristos *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 115787d62b00eSchristos esac || 115797d62b00eSchristos as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 115807d62b00eSchristos esac 115817d62b00eSchristos case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 115827d62b00eSchristos as_fn_append ac_file_inputs " '$ac_f'" 115837d62b00eSchristos done 115847d62b00eSchristos 115857d62b00eSchristos # Let's still pretend it is `configure' which instantiates (i.e., don't 115867d62b00eSchristos # use $as_me), people would be surprised to read: 115877d62b00eSchristos # /* config.h. Generated by config.status. */ 115887d62b00eSchristos configure_input='Generated from '` 115897d62b00eSchristos $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 115907d62b00eSchristos `' by configure.' 115917d62b00eSchristos if test x"$ac_file" != x-; then 115927d62b00eSchristos configure_input="$ac_file. $configure_input" 115937d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 115947d62b00eSchristos$as_echo "$as_me: creating $ac_file" >&6;} 115957d62b00eSchristos fi 115967d62b00eSchristos # Neutralize special characters interpreted by sed in replacement strings. 115977d62b00eSchristos case $configure_input in #( 115987d62b00eSchristos *\&* | *\|* | *\\* ) 115997d62b00eSchristos ac_sed_conf_input=`$as_echo "$configure_input" | 116007d62b00eSchristos sed 's/[\\\\&|]/\\\\&/g'`;; #( 116017d62b00eSchristos *) ac_sed_conf_input=$configure_input;; 116027d62b00eSchristos esac 116037d62b00eSchristos 116047d62b00eSchristos case $ac_tag in 116057d62b00eSchristos *:-:* | *:-) cat >"$ac_tmp/stdin" \ 116067d62b00eSchristos || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 116077d62b00eSchristos esac 116087d62b00eSchristos ;; 116097d62b00eSchristos esac 116107d62b00eSchristos 116117d62b00eSchristos ac_dir=`$as_dirname -- "$ac_file" || 116127d62b00eSchristos$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 116137d62b00eSchristos X"$ac_file" : 'X\(//\)[^/]' \| \ 116147d62b00eSchristos X"$ac_file" : 'X\(//\)$' \| \ 116157d62b00eSchristos X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 116167d62b00eSchristos$as_echo X"$ac_file" | 116177d62b00eSchristos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 116187d62b00eSchristos s//\1/ 116197d62b00eSchristos q 116207d62b00eSchristos } 116217d62b00eSchristos /^X\(\/\/\)[^/].*/{ 116227d62b00eSchristos s//\1/ 116237d62b00eSchristos q 116247d62b00eSchristos } 116257d62b00eSchristos /^X\(\/\/\)$/{ 116267d62b00eSchristos s//\1/ 116277d62b00eSchristos q 116287d62b00eSchristos } 116297d62b00eSchristos /^X\(\/\).*/{ 116307d62b00eSchristos s//\1/ 116317d62b00eSchristos q 116327d62b00eSchristos } 116337d62b00eSchristos s/.*/./; q'` 116347d62b00eSchristos as_dir="$ac_dir"; as_fn_mkdir_p 116357d62b00eSchristos ac_builddir=. 116367d62b00eSchristos 116377d62b00eSchristoscase "$ac_dir" in 116387d62b00eSchristos.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 116397d62b00eSchristos*) 116407d62b00eSchristos ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 116417d62b00eSchristos # A ".." for each directory in $ac_dir_suffix. 116427d62b00eSchristos ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 116437d62b00eSchristos case $ac_top_builddir_sub in 116447d62b00eSchristos "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 116457d62b00eSchristos *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 116467d62b00eSchristos esac ;; 116477d62b00eSchristosesac 116487d62b00eSchristosac_abs_top_builddir=$ac_pwd 116497d62b00eSchristosac_abs_builddir=$ac_pwd$ac_dir_suffix 116507d62b00eSchristos# for backward compatibility: 116517d62b00eSchristosac_top_builddir=$ac_top_build_prefix 116527d62b00eSchristos 116537d62b00eSchristoscase $srcdir in 116547d62b00eSchristos .) # We are building in place. 116557d62b00eSchristos ac_srcdir=. 116567d62b00eSchristos ac_top_srcdir=$ac_top_builddir_sub 116577d62b00eSchristos ac_abs_top_srcdir=$ac_pwd ;; 116587d62b00eSchristos [\\/]* | ?:[\\/]* ) # Absolute name. 116597d62b00eSchristos ac_srcdir=$srcdir$ac_dir_suffix; 116607d62b00eSchristos ac_top_srcdir=$srcdir 116617d62b00eSchristos ac_abs_top_srcdir=$srcdir ;; 116627d62b00eSchristos *) # Relative name. 116637d62b00eSchristos ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 116647d62b00eSchristos ac_top_srcdir=$ac_top_build_prefix$srcdir 116657d62b00eSchristos ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 116667d62b00eSchristosesac 116677d62b00eSchristosac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 116687d62b00eSchristos 116697d62b00eSchristos 116707d62b00eSchristos case $ac_mode in 116717d62b00eSchristos :F) 116727d62b00eSchristos # 116737d62b00eSchristos # CONFIG_FILE 116747d62b00eSchristos # 116757d62b00eSchristos 116767d62b00eSchristos case $INSTALL in 116777d62b00eSchristos [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 116787d62b00eSchristos *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 116797d62b00eSchristos esac 116807d62b00eSchristos ac_MKDIR_P=$MKDIR_P 116817d62b00eSchristos case $MKDIR_P in 116827d62b00eSchristos [\\/$]* | ?:[\\/]* ) ;; 116837d62b00eSchristos */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 116847d62b00eSchristos esac 116857d62b00eSchristos_ACEOF 116867d62b00eSchristos 116877d62b00eSchristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 116887d62b00eSchristos# If the template does not know about datarootdir, expand it. 116897d62b00eSchristos# FIXME: This hack should be removed a few years after 2.60. 116907d62b00eSchristosac_datarootdir_hack=; ac_datarootdir_seen= 116917d62b00eSchristosac_sed_dataroot=' 116927d62b00eSchristos/datarootdir/ { 116937d62b00eSchristos p 116947d62b00eSchristos q 116957d62b00eSchristos} 116967d62b00eSchristos/@datadir@/p 116977d62b00eSchristos/@docdir@/p 116987d62b00eSchristos/@infodir@/p 116997d62b00eSchristos/@localedir@/p 117007d62b00eSchristos/@mandir@/p' 117017d62b00eSchristoscase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 117027d62b00eSchristos*datarootdir*) ac_datarootdir_seen=yes;; 117037d62b00eSchristos*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 117047d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 117057d62b00eSchristos$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 117067d62b00eSchristos_ACEOF 117077d62b00eSchristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 117087d62b00eSchristos ac_datarootdir_hack=' 117097d62b00eSchristos s&@datadir@&$datadir&g 117107d62b00eSchristos s&@docdir@&$docdir&g 117117d62b00eSchristos s&@infodir@&$infodir&g 117127d62b00eSchristos s&@localedir@&$localedir&g 117137d62b00eSchristos s&@mandir@&$mandir&g 117147d62b00eSchristos s&\\\${datarootdir}&$datarootdir&g' ;; 117157d62b00eSchristosesac 117167d62b00eSchristos_ACEOF 117177d62b00eSchristos 117187d62b00eSchristos# Neutralize VPATH when `$srcdir' = `.'. 117197d62b00eSchristos# Shell code in configure.ac might set extrasub. 117207d62b00eSchristos# FIXME: do we really want to maintain this feature? 117217d62b00eSchristoscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 117227d62b00eSchristosac_sed_extra="$ac_vpsub 117237d62b00eSchristos$extrasub 117247d62b00eSchristos_ACEOF 117257d62b00eSchristoscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 117267d62b00eSchristos:t 117277d62b00eSchristos/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 117287d62b00eSchristoss|@configure_input@|$ac_sed_conf_input|;t t 117297d62b00eSchristoss&@top_builddir@&$ac_top_builddir_sub&;t t 117307d62b00eSchristoss&@top_build_prefix@&$ac_top_build_prefix&;t t 117317d62b00eSchristoss&@srcdir@&$ac_srcdir&;t t 117327d62b00eSchristoss&@abs_srcdir@&$ac_abs_srcdir&;t t 117337d62b00eSchristoss&@top_srcdir@&$ac_top_srcdir&;t t 117347d62b00eSchristoss&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 117357d62b00eSchristoss&@builddir@&$ac_builddir&;t t 117367d62b00eSchristoss&@abs_builddir@&$ac_abs_builddir&;t t 117377d62b00eSchristoss&@abs_top_builddir@&$ac_abs_top_builddir&;t t 117387d62b00eSchristoss&@INSTALL@&$ac_INSTALL&;t t 117397d62b00eSchristoss&@MKDIR_P@&$ac_MKDIR_P&;t t 117407d62b00eSchristos$ac_datarootdir_hack 117417d62b00eSchristos" 117427d62b00eSchristoseval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 117437d62b00eSchristos >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 117447d62b00eSchristos 117457d62b00eSchristostest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 117467d62b00eSchristos { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 117477d62b00eSchristos { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 117487d62b00eSchristos "$ac_tmp/out"`; test -z "$ac_out"; } && 117497d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 117507d62b00eSchristoswhich seems to be undefined. Please make sure it is defined" >&5 117517d62b00eSchristos$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 117527d62b00eSchristoswhich seems to be undefined. Please make sure it is defined" >&2;} 117537d62b00eSchristos 117547d62b00eSchristos rm -f "$ac_tmp/stdin" 117557d62b00eSchristos case $ac_file in 117567d62b00eSchristos -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 117577d62b00eSchristos *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 117587d62b00eSchristos esac \ 117597d62b00eSchristos || as_fn_error $? "could not create $ac_file" "$LINENO" 5 117607d62b00eSchristos ;; 117617d62b00eSchristos :H) 117627d62b00eSchristos # 117637d62b00eSchristos # CONFIG_HEADER 117647d62b00eSchristos # 117657d62b00eSchristos if test x"$ac_file" != x-; then 117667d62b00eSchristos { 117677d62b00eSchristos $as_echo "/* $configure_input */" \ 117687d62b00eSchristos && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 117697d62b00eSchristos } >"$ac_tmp/config.h" \ 117707d62b00eSchristos || as_fn_error $? "could not create $ac_file" "$LINENO" 5 117717d62b00eSchristos if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 117727d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 117737d62b00eSchristos$as_echo "$as_me: $ac_file is unchanged" >&6;} 117747d62b00eSchristos else 117757d62b00eSchristos rm -f "$ac_file" 117767d62b00eSchristos mv "$ac_tmp/config.h" "$ac_file" \ 117777d62b00eSchristos || as_fn_error $? "could not create $ac_file" "$LINENO" 5 117787d62b00eSchristos fi 117797d62b00eSchristos else 117807d62b00eSchristos $as_echo "/* $configure_input */" \ 117817d62b00eSchristos && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 117827d62b00eSchristos || as_fn_error $? "could not create -" "$LINENO" 5 117837d62b00eSchristos fi 117847d62b00eSchristos# Compute "$ac_file"'s index in $config_headers. 117857d62b00eSchristos_am_arg="$ac_file" 117867d62b00eSchristos_am_stamp_count=1 117877d62b00eSchristosfor _am_header in $config_headers :; do 117887d62b00eSchristos case $_am_header in 117897d62b00eSchristos $_am_arg | $_am_arg:* ) 117907d62b00eSchristos break ;; 117917d62b00eSchristos * ) 117927d62b00eSchristos _am_stamp_count=`expr $_am_stamp_count + 1` ;; 117937d62b00eSchristos esac 117947d62b00eSchristosdone 117957d62b00eSchristosecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 117967d62b00eSchristos$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 117977d62b00eSchristos X"$_am_arg" : 'X\(//\)[^/]' \| \ 117987d62b00eSchristos X"$_am_arg" : 'X\(//\)$' \| \ 117997d62b00eSchristos X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 118007d62b00eSchristos$as_echo X"$_am_arg" | 118017d62b00eSchristos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 118027d62b00eSchristos s//\1/ 118037d62b00eSchristos q 118047d62b00eSchristos } 118057d62b00eSchristos /^X\(\/\/\)[^/].*/{ 118067d62b00eSchristos s//\1/ 118077d62b00eSchristos q 118087d62b00eSchristos } 118097d62b00eSchristos /^X\(\/\/\)$/{ 118107d62b00eSchristos s//\1/ 118117d62b00eSchristos q 118127d62b00eSchristos } 118137d62b00eSchristos /^X\(\/\).*/{ 118147d62b00eSchristos s//\1/ 118157d62b00eSchristos q 118167d62b00eSchristos } 118177d62b00eSchristos s/.*/./; q'`/stamp-h$_am_stamp_count 118187d62b00eSchristos ;; 118197d62b00eSchristos 118207d62b00eSchristos :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 118217d62b00eSchristos$as_echo "$as_me: executing $ac_file commands" >&6;} 118227d62b00eSchristos ;; 118237d62b00eSchristos esac 118247d62b00eSchristos 118257d62b00eSchristos 118267d62b00eSchristos case $ac_file$ac_mode in 118277d62b00eSchristos "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 118287d62b00eSchristos # Older Autoconf quotes --file arguments for eval, but not when files 118297d62b00eSchristos # are listed without --file. Let's play safe and only enable the eval 118307d62b00eSchristos # if we detect the quoting. 118317d62b00eSchristos case $CONFIG_FILES in 118327d62b00eSchristos *\'*) eval set x "$CONFIG_FILES" ;; 118337d62b00eSchristos *) set x $CONFIG_FILES ;; 118347d62b00eSchristos esac 118357d62b00eSchristos shift 118367d62b00eSchristos for mf 118377d62b00eSchristos do 118387d62b00eSchristos # Strip MF so we end up with the name of the file. 118397d62b00eSchristos mf=`echo "$mf" | sed -e 's/:.*$//'` 118407d62b00eSchristos # Check whether this is an Automake generated Makefile or not. 118417d62b00eSchristos # We used to match only the files named 'Makefile.in', but 118427d62b00eSchristos # some people rename them; so instead we look at the file content. 118437d62b00eSchristos # Grep'ing the first line is not enough: some people post-process 118447d62b00eSchristos # each Makefile.in and add a new line on top of each file to say so. 118457d62b00eSchristos # Grep'ing the whole file is not good either: AIX grep has a line 118467d62b00eSchristos # limit of 2048, but all sed's we know have understand at least 4000. 118477d62b00eSchristos if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 118487d62b00eSchristos dirpart=`$as_dirname -- "$mf" || 118497d62b00eSchristos$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 118507d62b00eSchristos X"$mf" : 'X\(//\)[^/]' \| \ 118517d62b00eSchristos X"$mf" : 'X\(//\)$' \| \ 118527d62b00eSchristos X"$mf" : 'X\(/\)' \| . 2>/dev/null || 118537d62b00eSchristos$as_echo X"$mf" | 118547d62b00eSchristos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 118557d62b00eSchristos s//\1/ 118567d62b00eSchristos q 118577d62b00eSchristos } 118587d62b00eSchristos /^X\(\/\/\)[^/].*/{ 118597d62b00eSchristos s//\1/ 118607d62b00eSchristos q 118617d62b00eSchristos } 118627d62b00eSchristos /^X\(\/\/\)$/{ 118637d62b00eSchristos s//\1/ 118647d62b00eSchristos q 118657d62b00eSchristos } 118667d62b00eSchristos /^X\(\/\).*/{ 118677d62b00eSchristos s//\1/ 118687d62b00eSchristos q 118697d62b00eSchristos } 118707d62b00eSchristos s/.*/./; q'` 118717d62b00eSchristos else 118727d62b00eSchristos continue 118737d62b00eSchristos fi 118747d62b00eSchristos # Extract the definition of DEPDIR, am__include, and am__quote 118757d62b00eSchristos # from the Makefile without running 'make'. 118767d62b00eSchristos DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 118777d62b00eSchristos test -z "$DEPDIR" && continue 118787d62b00eSchristos am__include=`sed -n 's/^am__include = //p' < "$mf"` 118797d62b00eSchristos test -z "$am__include" && continue 118807d62b00eSchristos am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 118817d62b00eSchristos # Find all dependency output files, they are included files with 118827d62b00eSchristos # $(DEPDIR) in their names. We invoke sed twice because it is the 118837d62b00eSchristos # simplest approach to changing $(DEPDIR) to its actual value in the 118847d62b00eSchristos # expansion. 118857d62b00eSchristos for file in `sed -n " 118867d62b00eSchristos s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 118877d62b00eSchristos sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 118887d62b00eSchristos # Make sure the directory exists. 118897d62b00eSchristos test -f "$dirpart/$file" && continue 118907d62b00eSchristos fdir=`$as_dirname -- "$file" || 118917d62b00eSchristos$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 118927d62b00eSchristos X"$file" : 'X\(//\)[^/]' \| \ 118937d62b00eSchristos X"$file" : 'X\(//\)$' \| \ 118947d62b00eSchristos X"$file" : 'X\(/\)' \| . 2>/dev/null || 118957d62b00eSchristos$as_echo X"$file" | 118967d62b00eSchristos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 118977d62b00eSchristos s//\1/ 118987d62b00eSchristos q 118997d62b00eSchristos } 119007d62b00eSchristos /^X\(\/\/\)[^/].*/{ 119017d62b00eSchristos s//\1/ 119027d62b00eSchristos q 119037d62b00eSchristos } 119047d62b00eSchristos /^X\(\/\/\)$/{ 119057d62b00eSchristos s//\1/ 119067d62b00eSchristos q 119077d62b00eSchristos } 119087d62b00eSchristos /^X\(\/\).*/{ 119097d62b00eSchristos s//\1/ 119107d62b00eSchristos q 119117d62b00eSchristos } 119127d62b00eSchristos s/.*/./; q'` 119137d62b00eSchristos as_dir=$dirpart/$fdir; as_fn_mkdir_p 119147d62b00eSchristos # echo "creating $dirpart/$file" 119157d62b00eSchristos echo '# dummy' > "$dirpart/$file" 119167d62b00eSchristos done 119177d62b00eSchristos done 119187d62b00eSchristos} 119197d62b00eSchristos ;; 119207d62b00eSchristos 119217d62b00eSchristos esac 119227d62b00eSchristosdone # for ac_tag 119237d62b00eSchristos 119247d62b00eSchristos 119257d62b00eSchristosas_fn_exit 0 119267d62b00eSchristos_ACEOF 119277d62b00eSchristosac_clean_files=$ac_clean_files_save 119287d62b00eSchristos 119297d62b00eSchristostest $ac_write_fail = 0 || 119307d62b00eSchristos as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 119317d62b00eSchristos 119327d62b00eSchristos 119337d62b00eSchristos# configure is writing to config.log, and then calls config.status. 119347d62b00eSchristos# config.status does its own redirection, appending to config.log. 119357d62b00eSchristos# Unfortunately, on DOS this fails, as config.log is still kept open 119367d62b00eSchristos# by configure, so config.status won't be able to write to it; its 119377d62b00eSchristos# output is simply discarded. So we exec the FD to /dev/null, 119387d62b00eSchristos# effectively closing config.log, so it can be properly (re)opened and 119397d62b00eSchristos# appended to by config.status. When coming back to configure, we 119407d62b00eSchristos# need to make the FD available again. 119417d62b00eSchristosif test "$no_create" != yes; then 119427d62b00eSchristos ac_cs_success=: 119437d62b00eSchristos ac_config_status_args= 119447d62b00eSchristos test "$silent" = yes && 119457d62b00eSchristos ac_config_status_args="$ac_config_status_args --quiet" 119467d62b00eSchristos exec 5>/dev/null 119477d62b00eSchristos $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 119487d62b00eSchristos exec 5>>config.log 119497d62b00eSchristos # Use ||, not &&, to avoid exiting from the if with $? = 1, which 119507d62b00eSchristos # would make configure fail if this is the last instruction. 119517d62b00eSchristos $ac_cs_success || as_fn_exit 1 119527d62b00eSchristosfi 119537d62b00eSchristosif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 119547d62b00eSchristos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 119557d62b00eSchristos$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 119567d62b00eSchristosfi 119577d62b00eSchristos 11958