Changeset 700b1d1 in git for omalloc


Ignore:
Timestamp:
Aug 14, 2000, 2:15:28 PM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
b6e0394c78cf946226e16e683127acf5d8b489ae
Parents:
9d605984360cf5d30bdf13e295d63c41ae1bc952
Message:
* new stuff


git-svn-id: file:///usr/local/Singular/svn/trunk@4518 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • omalloc/configure

    r9d6059 r700b1d1  
    2525                    use HEADER_FILE for external malloc declaration"
    2626ac_help="$ac_help
    27  --with-external-malloc-h=C_FILE
     27 --with-external-malloc-c=C_FILE
    2828                    use C_FILE for external malloc implementation"
    2929ac_help="$ac_help
     
    3131                    how to get page-aligned memory, default: use first possible"
    3232ac_help="$ac_help
    33  --with-provide-malloc 
    34                     provide ANSI-C conforming malloc/calloc/realloc/free"
     33 --with-provide-malloc=yes|debug|malloc
     34                    provide normal|debug|underlying malloc ANSI-C conforming
     35                    versions of malloc|calloc|realloc|free"
    3536ac_help="$ac_help
    3637 --with-emulate-omalloc
     
    4546 --without-inline   do not inline"
    4647ac_help="$ac_help
     48 --without-debug    disable all debugging facilities"
     49ac_help="$ac_help
     50 --without-track    disable debug tracking functionality"
     51ac_help="$ac_help
     52 --with-track-fl    track file and line numbers"
     53ac_help="$ac_help
     54 --with-track-return track return addresses"
     55ac_help="$ac_help
     56 --with-track-backtrace track stack backtraces"
     57ac_help="$ac_help
    4758 --with-internal-debug       
    4859                       turn on internal debugging"
    49 ac_help="$ac_help
    50  --without-mtrack   disable backtrace and memory track"
    51 ac_help="$ac_help
    52  --with_frame_addr_func=FUNC
    53                     use FUNC as function for determening frame addr
    54                     default: __bultin_frame_address"
    55 ac_help="$ac_help
    56  --with_return_addr_func=FUNC
    57                     use FUNC as function for determening return addr
    58                     default: __bultin_return_address"
    5960
    6061# Initialize some variables set by options.
     
    568569
    569570
    570 # Check whether --with-external_config_h or --without-external_config_h was given.
     571VERSION=0.9.5
     572
     573
     574# Check whether --with-external-config_h or --without-external-config_h was given.
    571575if test "${with_external_config_h+set}" = set; then
    572576  withval="$with_external_config_h"
     
    574578fi
    575579
    576 # Check whether --with-external_config_c or --without-external_config_c was given.
     580# Check whether --with-external-config_c or --without-external-config_c was given.
    577581if test "${with_external_config_c+set}" = set; then
    578582  withval="$with_external_config_c"
     
    586590fi
    587591
    588 # Check whether --with-external_malloc_h or --without-external_malloc_h was given.
     592# Check whether --with-external-malloc_h or --without-external-malloc_h was given.
    589593if test "${with_external_malloc_h+set}" = set; then
    590594  withval="$with_external_malloc_h"
     
    592596fi
    593597
    594 # Check whether --with-external_malloc_c or --without-external_malloc_c was given.
     598# Check whether --with-external-malloc_c or --without-external-malloc_c was given.
    595599if test "${with_external_malloc_c+set}" = set; then
    596600  withval="$with_external_malloc_c"
     
    604608fi
    605609
    606 # Check whether --with-provide_malloc or --without-provide_malloc was given.
     610# Check whether --with-provide-malloc or --without-provide-malloc was given.
    607611if test "${with_provide_malloc+set}" = set; then
    608612  withval="$with_provide_malloc"
     
    610614fi
    611615
    612 # Check whether --with-emulate_omalloc or --without-emulate_omalloc was given.
     616# Check whether --with-emulate-omalloc or --without-emulate-omalloc was given.
    613617if test "${with_emulate_omalloc+set}" = set; then
    614618  withval="$with_emulate_omalloc"
     
    622626fi
    623627
    624 # Check whether --with-dense_bins or --without-dense_bins was given.
     628# Check whether --with-dense-bins or --without-dense-bins was given.
    625629if test "${with_dense_bins+set}" = set; then
    626630  withval="$with_dense_bins"
     
    634638fi
    635639
     640# Check whether --with-debug or --without-debug was given.
     641if test "${with_debug+set}" = set; then
     642  withval="$with_debug"
     643  :
     644fi
     645
     646# Check whether --with-track or --without-track was given.
     647if test "${with_track+set}" = set; then
     648  withval="$with_track"
     649  :
     650fi
     651
     652# Check whether --with-track-fl or --without-track-fl was given.
     653if test "${with_track_fl+set}" = set; then
     654  withval="$with_track_fl"
     655  :
     656fi
     657
     658# Check whether --with-track-return or --without-track-return was given.
     659if test "${with_track_return+set}" = set; then
     660  withval="$with_track_return"
     661  :
     662fi
     663
     664# Check whether --with-track-backtrace or --without-track-backtrace was given.
     665if test "${with_track_backtrace+set}" = set; then
     666  withval="$with_track_backtrace"
     667  :
     668fi
     669
    636670# Check whether --with-internal_debug or --without-internal_debug was given.
    637671if test "${with_internal_debug+set}" = set; then
     
    640674fi
    641675
    642 # Check whether --with-mtrack or --without-mtrack was given.
    643 if test "${with_mtrack+set}" = set; then
    644   withval="$with_mtrack"
    645   :
    646 fi
    647 
    648 # Check whether --with-frame_addr_func or --without-frame_addr_func was given.
    649 if test "${with_frame_addr_func+set}" = set; then
    650   withval="$with_frame_addr_func"
    651   :
    652 fi
    653 
    654 # Check whether --with-return_addr_func or --without-return_addr_func was given.
    655 if test "${with_return_addr_func+set}" = set; then
    656   withval="$with_return_addr_func"
    657   :
    658 fi
    659 
    660 
    661 echo $ac_n "checking singuname""... $ac_c" 1>&6
    662 echo "configure:663: checking singuname" >&5
    663 if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then
    664   echo $ac_n "(cached) $ac_c" 1>&6
    665 else
    666   ac_cv_singuname="unknown"
    667 if test -r "singuname.sh"; then
    668   if (/bin/sh singuname.sh >/dev/null 2>&1) then
    669     ac_cv_singuname=`/bin/sh singuname.sh`
    670   fi
    671 fi
    672 if test "$ac_cv_singuname" = unknown && test -r "../singuname.sh"; then
    673   if (/bin/sh ../singuname.sh >/dev/null 2>&1) then
    674     ac_cv_singuname=`/bin/sh ../singuname.sh`
    675   fi
    676 fi
    677 
    678 fi
    679 
    680 echo "$ac_t""$ac_cv_singuname" 1>&6
    681 if test "$ac_cv_singuname" = unknown; then
    682   echo "configure: warning: Unknown architecture: Check singuname.sh" 1>&2
    683   ac_cv_singuname="unknown"
    684 fi
    685 
    686 if test "${CFLAGS+set}" != set; then
    687   CFLAGS="-O"
    688   ac_cflags_set=no
    689 fi
     676
    690677echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    691 echo "configure:692: checking whether ${MAKE-make} sets \${MAKE}" >&5
     678echo "configure:679: checking whether ${MAKE-make} sets \${MAKE}" >&5
    692679set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    693680if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    718705set dummy gcc; ac_word=$2
    719706echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    720 echo "configure:721: checking for $ac_word" >&5
     707echo "configure:708: checking for $ac_word" >&5
    721708if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    722709  echo $ac_n "(cached) $ac_c" 1>&6
     
    748735set dummy cc; ac_word=$2
    749736echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    750 echo "configure:751: checking for $ac_word" >&5
     737echo "configure:738: checking for $ac_word" >&5
    751738if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    752739  echo $ac_n "(cached) $ac_c" 1>&6
     
    799786set dummy cl; ac_word=$2
    800787echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    801 echo "configure:802: checking for $ac_word" >&5
     788echo "configure:789: checking for $ac_word" >&5
    802789if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    803790  echo $ac_n "(cached) $ac_c" 1>&6
     
    831818
    832819echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    833 echo "configure:834: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     820echo "configure:821: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    834821
    835822ac_ext=c
     
    842829cat > conftest.$ac_ext << EOF
    843830
    844 #line 845 "configure"
     831#line 832 "configure"
    845832#include "confdefs.h"
    846833
    847834main(){return(0);}
    848835EOF
    849 if { (eval echo configure:850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     836if { (eval echo configure:837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    850837  ac_cv_prog_cc_works=yes
    851838  # If we can't run a trivial program, we are probably using a cross compiler.
     
    873860fi
    874861echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    875 echo "configure:876: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     862echo "configure:863: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    876863echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    877864cross_compiling=$ac_cv_prog_cc_cross
    878865
    879866echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    880 echo "configure:881: checking whether we are using GNU C" >&5
     867echo "configure:868: checking whether we are using GNU C" >&5
    881868if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    882869  echo $ac_n "(cached) $ac_c" 1>&6
     
    887874#endif
    888875EOF
    889 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     876if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    890877  ac_cv_prog_gcc=yes
    891878else
     
    906893CFLAGS=
    907894echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    908 echo "configure:909: checking whether ${CC-cc} accepts -g" >&5
     895echo "configure:896: checking whether ${CC-cc} accepts -g" >&5
    909896if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    910897  echo $ac_n "(cached) $ac_c" 1>&6
     
    938925
    939926echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    940 echo "configure:941: checking how to run the C preprocessor" >&5
     927echo "configure:928: checking how to run the C preprocessor" >&5
    941928# On Suns, sometimes $CPP names a directory.
    942929if test -n "$CPP" && test -d "$CPP"; then
     
    953940  # not just through cpp.
    954941  cat > conftest.$ac_ext <<EOF
    955 #line 956 "configure"
     942#line 943 "configure"
    956943#include "confdefs.h"
    957944#include <assert.h>
     
    959946EOF
    960947ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    961 { (eval echo configure:962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     948{ (eval echo configure:949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    962949ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    963950if test -z "$ac_err"; then
     
    970957  CPP="${CC-cc} -E -traditional-cpp"
    971958  cat > conftest.$ac_ext <<EOF
    972 #line 973 "configure"
     959#line 960 "configure"
    973960#include "confdefs.h"
    974961#include <assert.h>
     
    976963EOF
    977964ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    978 { (eval echo configure:979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     965{ (eval echo configure:966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    979966ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    980967if test -z "$ac_err"; then
     
    987974  CPP="${CC-cc} -nologo -E"
    988975  cat > conftest.$ac_ext <<EOF
    989 #line 990 "configure"
     976#line 977 "configure"
    990977#include "confdefs.h"
    991978#include <assert.h>
     
    993980EOF
    994981ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    995 { (eval echo configure:996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     982{ (eval echo configure:983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    996983ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    997984if test -z "$ac_err"; then
     
    10171004echo "$ac_t""$CPP" 1>&6
    10181005
     1006# Extract the first word of "ranlib", so it can be a program name with args.
     1007set dummy ranlib; ac_word=$2
     1008echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1009echo "configure:1010: checking for $ac_word" >&5
     1010if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
     1011  echo $ac_n "(cached) $ac_c" 1>&6
     1012else
     1013  if test -n "$RANLIB"; then
     1014  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
     1015else
     1016  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1017  ac_dummy="$PATH"
     1018  for ac_dir in $ac_dummy; do
     1019    test -z "$ac_dir" && ac_dir=.
     1020    if test -f $ac_dir/$ac_word; then
     1021      ac_cv_prog_RANLIB="ranlib"
     1022      break
     1023    fi
     1024  done
     1025  IFS="$ac_save_ifs"
     1026  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
     1027fi
     1028fi
     1029RANLIB="$ac_cv_prog_RANLIB"
     1030if test -n "$RANLIB"; then
     1031  echo "$ac_t""$RANLIB" 1>&6
     1032else
     1033  echo "$ac_t""no" 1>&6
     1034fi
     1035
     1036echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
     1037echo "configure:1038: checking whether ln -s works" >&5
     1038if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
     1039  echo $ac_n "(cached) $ac_c" 1>&6
     1040else
     1041  rm -f conftestdata
     1042if ln -s X conftestdata 2>/dev/null
     1043then
     1044  rm -f conftestdata
     1045  ac_cv_prog_LN_S="ln -s"
     1046else
     1047  ac_cv_prog_LN_S=ln
     1048fi
     1049fi
     1050LN_S="$ac_cv_prog_LN_S"
     1051if test "$ac_cv_prog_LN_S" = "ln -s"; then
     1052  echo "$ac_t""yes" 1>&6
     1053else
     1054  echo "$ac_t""no" 1>&6
     1055fi
     1056
     1057ac_aux_dir=
     1058for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     1059  if test -f $ac_dir/install-sh; then
     1060    ac_aux_dir=$ac_dir
     1061    ac_install_sh="$ac_aux_dir/install-sh -c"
     1062    break
     1063  elif test -f $ac_dir/install.sh; then
     1064    ac_aux_dir=$ac_dir
     1065    ac_install_sh="$ac_aux_dir/install.sh -c"
     1066    break
     1067  fi
     1068done
     1069if test -z "$ac_aux_dir"; then
     1070  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
     1071fi
     1072ac_config_guess=$ac_aux_dir/config.guess
     1073ac_config_sub=$ac_aux_dir/config.sub
     1074ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
     1075
     1076# Find a good install program.  We prefer a C program (faster),
     1077# so one script is as good as another.  But avoid the broken or
     1078# incompatible versions:
     1079# SysV /etc/install, /usr/sbin/install
     1080# SunOS /usr/etc/install
     1081# IRIX /sbin/install
     1082# AIX /bin/install
     1083# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
     1084# AFS /usr/afsws/bin/install, which mishandles nonexistent args
     1085# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     1086# ./install, which can be erroneously created by make from ./install.sh.
     1087echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
     1088echo "configure:1089: checking for a BSD compatible install" >&5
     1089if test -z "$INSTALL"; then
     1090if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     1091  echo $ac_n "(cached) $ac_c" 1>&6
     1092else
     1093    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
     1094  for ac_dir in $PATH; do
     1095    # Account for people who put trailing slashes in PATH elements.
     1096    case "$ac_dir/" in
     1097    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
     1098    *)
     1099      # OSF1 and SCO ODT 3.0 have their own names for install.
     1100      # Don't use installbsd from OSF since it installs stuff as root
     1101      # by default.
     1102      for ac_prog in ginstall scoinst install; do
     1103        if test -f $ac_dir/$ac_prog; then
     1104          if test $ac_prog = install &&
     1105            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
     1106            # AIX install.  It has an incompatible calling convention.
     1107            :
     1108          else
     1109            ac_cv_path_install="$ac_dir/$ac_prog -c"
     1110            break 2
     1111          fi
     1112        fi
     1113      done
     1114      ;;
     1115    esac
     1116  done
     1117  IFS="$ac_save_IFS"
     1118
     1119fi
     1120  if test "${ac_cv_path_install+set}" = set; then
     1121    INSTALL="$ac_cv_path_install"
     1122  else
     1123    # As a last resort, use the slow shell script.  We don't cache a
     1124    # path for INSTALL within a source directory, because that will
     1125    # break other packages using the cache if that directory is
     1126    # removed, or if the path is relative.
     1127    INSTALL="$ac_install_sh"
     1128  fi
     1129fi
     1130echo "$ac_t""$INSTALL" 1>&6
     1131
     1132# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     1133# It thinks the first close brace ends the variable substitution.
     1134test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
     1135
     1136test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
     1137
     1138test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
     1139
    10191140echo $ac_n "checking for working const""... $ac_c" 1>&6
    1020 echo "configure:1021: checking for working const" >&5
     1141echo "configure:1142: checking for working const" >&5
    10211142if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    10221143  echo $ac_n "(cached) $ac_c" 1>&6
    10231144else
    10241145  cat > conftest.$ac_ext <<EOF
    1025 #line 1026 "configure"
     1146#line 1147 "configure"
    10261147#include "confdefs.h"
    10271148
     
    10721193; return 0; }
    10731194EOF
    1074 if { (eval echo configure:1075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1195if { (eval echo configure:1196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    10751196  rm -rf conftest*
    10761197  ac_cv_c_const=yes
     
    10931214
    10941215echo $ac_n "checking for inline""... $ac_c" 1>&6
    1095 echo "configure:1096: checking for inline" >&5
     1216echo "configure:1217: checking for inline" >&5
    10961217if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
    10971218  echo $ac_n "(cached) $ac_c" 1>&6
     
    11001221for ac_kw in inline __inline__ __inline; do
    11011222  cat > conftest.$ac_ext <<EOF
    1102 #line 1103 "configure"
     1223#line 1224 "configure"
    11031224#include "confdefs.h"
    11041225
     
    11071228; return 0; }
    11081229EOF
    1109 if { (eval echo configure:1110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1230if { (eval echo configure:1231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    11101231  rm -rf conftest*
    11111232  ac_cv_c_inline=$ac_kw; break
     
    11321253esac
    11331254
    1134 # Extract the first word of "ranlib", so it can be a program name with args.
    1135 set dummy ranlib; ac_word=$2
    1136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1137 echo "configure:1138: checking for $ac_word" >&5
    1138 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    1139   echo $ac_n "(cached) $ac_c" 1>&6
    1140 else
    1141   if test -n "$RANLIB"; then
    1142   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    1143 else
    1144   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1145   ac_dummy="$PATH"
    1146   for ac_dir in $ac_dummy; do
    1147     test -z "$ac_dir" && ac_dir=.
    1148     if test -f $ac_dir/$ac_word; then
    1149       ac_cv_prog_RANLIB="ranlib"
    1150       break
    1151     fi
    1152   done
    1153   IFS="$ac_save_ifs"
    1154   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
    1155 fi
    1156 fi
    1157 RANLIB="$ac_cv_prog_RANLIB"
    1158 if test -n "$RANLIB"; then
    1159   echo "$ac_t""$RANLIB" 1>&6
    1160 else
    1161   echo "$ac_t""no" 1>&6
    1162 fi
    1163 
    1164 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1165 echo "configure:1166: checking whether ln -s works" >&5
    1166 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    1167   echo $ac_n "(cached) $ac_c" 1>&6
    1168 else
    1169   rm -f conftestdata
    1170 if ln -s X conftestdata 2>/dev/null
    1171 then
    1172   rm -f conftestdata
    1173   ac_cv_prog_LN_S="ln -s"
    1174 else
    1175   ac_cv_prog_LN_S=ln
    1176 fi
    1177 fi
    1178 LN_S="$ac_cv_prog_LN_S"
    1179 if test "$ac_cv_prog_LN_S" = "ln -s"; then
    1180   echo "$ac_t""yes" 1>&6
    1181 else
    1182   echo "$ac_t""no" 1>&6
    1183 fi
    1184 
    11851255
    11861256# Extract the first word of "ar", so it can be a program name with args.
    11871257set dummy ar; ac_word=$2
    11881258echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1189 echo "configure:1190: checking for $ac_word" >&5
     1259echo "configure:1260: checking for $ac_word" >&5
    11901260if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
    11911261  echo $ac_n "(cached) $ac_c" 1>&6
     
    12201290set dummy perl; ac_word=$2
    12211291echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1222 echo "configure:1223: checking for $ac_word" >&5
     1292echo "configure:1293: checking for $ac_word" >&5
    12231293if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
    12241294  echo $ac_n "(cached) $ac_c" 1>&6
     
    12541324set dummy addr2line; ac_word=$2
    12551325echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1256 echo "configure:1257: checking for $ac_word" >&5
     1326echo "configure:1327: checking for $ac_word" >&5
    12571327if eval "test \"`echo '$''{'ac_cv_prog_ADDR2LINE'+set}'`\" = set"; then
    12581328  echo $ac_n "(cached) $ac_c" 1>&6
     
    12901360set dummy nm; ac_word=$2
    12911361echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1292 echo "configure:1293: checking for $ac_word" >&5
     1362echo "configure:1363: checking for $ac_word" >&5
    12931363if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
    12941364  echo $ac_n "(cached) $ac_c" 1>&6
     
    13251395
    13261396echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1327 echo "configure:1328: checking for ANSI C header files" >&5
     1397echo "configure:1398: checking for ANSI C header files" >&5
    13281398if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    13291399  echo $ac_n "(cached) $ac_c" 1>&6
    13301400else
    13311401  cat > conftest.$ac_ext <<EOF
    1332 #line 1333 "configure"
     1402#line 1403 "configure"
    13331403#include "confdefs.h"
    13341404#include <stdlib.h>
     
    13381408EOF
    13391409ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1340 { (eval echo configure:1341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1410{ (eval echo configure:1411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13411411ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    13421412if test -z "$ac_err"; then
     
    13551425  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    13561426cat > conftest.$ac_ext <<EOF
    1357 #line 1358 "configure"
     1427#line 1428 "configure"
    13581428#include "confdefs.h"
    13591429#include <string.h>
     
    13731443  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    13741444cat > conftest.$ac_ext <<EOF
    1375 #line 1376 "configure"
     1445#line 1446 "configure"
    13761446#include "confdefs.h"
    13771447#include <stdlib.h>
     
    13941464else
    13951465  cat > conftest.$ac_ext <<EOF
    1396 #line 1397 "configure"
     1466#line 1467 "configure"
    13971467#include "confdefs.h"
    13981468#include <ctype.h>
     
    14051475
    14061476EOF
    1407 if { (eval echo configure:1408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1477if { (eval echo configure:1478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    14081478then
    14091479  :
     
    14321502ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    14331503echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1434 echo "configure:1435: checking for $ac_hdr" >&5
     1504echo "configure:1505: checking for $ac_hdr" >&5
    14351505if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    14361506  echo $ac_n "(cached) $ac_c" 1>&6
    14371507else
    14381508  cat > conftest.$ac_ext <<EOF
    1439 #line 1440 "configure"
     1509#line 1510 "configure"
    14401510#include "confdefs.h"
    14411511#include <$ac_hdr>
    14421512EOF
    14431513ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1444 { (eval echo configure:1445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1514{ (eval echo configure:1515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    14451515ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    14461516if test -z "$ac_err"; then
     
    14731543ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    14741544echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1475 echo "configure:1476: checking for $ac_hdr" >&5
     1545echo "configure:1546: checking for $ac_hdr" >&5
    14761546if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    14771547  echo $ac_n "(cached) $ac_c" 1>&6
    14781548else
    14791549  cat > conftest.$ac_ext <<EOF
    1480 #line 1481 "configure"
     1550#line 1551 "configure"
    14811551#include "confdefs.h"
    14821552#include <$ac_hdr>
    14831553EOF
    14841554ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1485 { (eval echo configure:1486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1555{ (eval echo configure:1556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    14861556ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    14871557if test -z "$ac_err"; then
     
    15131583do
    15141584echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1515 echo "configure:1516: checking for $ac_func" >&5
     1585echo "configure:1586: checking for $ac_func" >&5
    15161586if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    15171587  echo $ac_n "(cached) $ac_c" 1>&6
    15181588else
    15191589  cat > conftest.$ac_ext <<EOF
    1520 #line 1521 "configure"
     1590#line 1591 "configure"
    15211591#include "confdefs.h"
    15221592/* System header to define __stub macros and hopefully few prototypes,
     
    15411611; return 0; }
    15421612EOF
    1543 if { (eval echo configure:1544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1613if { (eval echo configure:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    15441614  rm -rf conftest*
    15451615  eval "ac_cv_func_$ac_func=yes"
     
    15691639# sizes
    15701640echo $ac_n "checking size of long""... $ac_c" 1>&6
    1571 echo "configure:1572: checking size of long" >&5
     1641echo "configure:1642: checking size of long" >&5
    15721642if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    15731643  echo $ac_n "(cached) $ac_c" 1>&6
     
    15771647else
    15781648  cat > conftest.$ac_ext <<EOF
    1579 #line 1580 "configure"
     1649#line 1650 "configure"
    15801650#include "confdefs.h"
    15811651#include <stdio.h>
     
    15881658}
    15891659EOF
    1590 if { (eval echo configure:1591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1660if { (eval echo configure:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    15911661then
    15921662  ac_cv_sizeof_long=`cat conftestval`
     
    16081678
    16091679echo $ac_n "checking size of void*""... $ac_c" 1>&6
    1610 echo "configure:1611: checking size of void*" >&5
     1680echo "configure:1681: checking size of void*" >&5
    16111681if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
    16121682  echo $ac_n "(cached) $ac_c" 1>&6
     
    16161686else
    16171687  cat > conftest.$ac_ext <<EOF
    1618 #line 1619 "configure"
     1688#line 1689 "configure"
    16191689#include "confdefs.h"
    16201690#include <stdio.h>
     
    16271697}
    16281698EOF
    1629 if { (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1699if { (eval echo configure:1700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    16301700then
    16311701  ac_cv_sizeof_voidp=`cat conftestval`
     
    16471717
    16481718echo $ac_n "checking size of double""... $ac_c" 1>&6
    1649 echo "configure:1650: checking size of double" >&5
     1719echo "configure:1720: checking size of double" >&5
    16501720if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
    16511721  echo $ac_n "(cached) $ac_c" 1>&6
     
    16551725else
    16561726  cat > conftest.$ac_ext <<EOF
    1657 #line 1658 "configure"
     1727#line 1728 "configure"
    16581728#include "confdefs.h"
    16591729#include <stdio.h>
     
    16661736}
    16671737EOF
    1668 if { (eval echo configure:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1738if { (eval echo configure:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    16691739then
    16701740  ac_cv_sizeof_double=`cat conftestval`
     
    16861756
    16871757echo $ac_n "checking size of size_t""... $ac_c" 1>&6
    1688 echo "configure:1689: checking size of size_t" >&5
     1758echo "configure:1759: checking size of size_t" >&5
    16891759if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then
    16901760  echo $ac_n "(cached) $ac_c" 1>&6
     
    16941764else
    16951765  cat > conftest.$ac_ext <<EOF
    1696 #line 1697 "configure"
     1766#line 1767 "configure"
    16971767#include "confdefs.h"
    16981768#include <stdio.h>
     
    17051775}
    17061776EOF
    1707 if { (eval echo configure:1708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1777if { (eval echo configure:1778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    17081778then
    17091779  ac_cv_sizeof_size_t=`cat conftestval`
     
    17361806
    17371807echo $ac_n "checking size of system page""... $ac_c" 1>&6
    1738 echo "configure:1739: checking size of system page" >&5
     1808echo "configure:1809: checking size of system page" >&5
    17391809if eval "test \"`echo '$''{'ac_cv_pagesize'+set}'`\" = set"; then
    17401810  echo $ac_n "(cached) $ac_c" 1>&6
     
    17441814else
    17451815  cat > conftest.$ac_ext <<EOF
    1746 #line 1747 "configure"
     1816#line 1817 "configure"
    17471817#include "confdefs.h"
    17481818#include <stdio.h>
     
    17571827}
    17581828EOF
    1759 if { (eval echo configure:1760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1829if { (eval echo configure:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    17601830then
    17611831  ac_cv_pagesize=`cat conftestval`
     
    17831853if test "$ac_cv_func_mmap" = yes; then
    17841854echo $ac_n "checking whether mmap works""... $ac_c" 1>&6
    1785 echo "configure:1786: checking whether mmap works" >&5
     1855echo "configure:1856: checking whether mmap works" >&5
    17861856if eval "test \"`echo '$''{'ac_cv_working_mmap'+set}'`\" = set"; then
    17871857  echo $ac_n "(cached) $ac_c" 1>&6
     
    17911861else
    17921862  cat > conftest.$ac_ext <<EOF
    1793 #line 1794 "configure"
     1863#line 1864 "configure"
    17941864#include "confdefs.h"
    17951865
     
    18031873}
    18041874EOF
    1805 if { (eval echo configure:1806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1875if { (eval echo configure:1876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    18061876then
    18071877  ac_cv_working_mmap=yes
     
    18271897
    18281898echo $ac_n "checking whether alignment needs to be strict""... $ac_c" 1>&6
    1829 echo "configure:1830: checking whether alignment needs to be strict" >&5
     1899echo "configure:1900: checking whether alignment needs to be strict" >&5
    18301900if eval "test \"`echo '$''{'ac_cv_align_need_strict'+set}'`\" = set"; then
    18311901  echo $ac_n "(cached) $ac_c" 1>&6
     
    18351905else
    18361906  cat > conftest.$ac_ext <<EOF
    1837 #line 1838 "configure"
     1907#line 1908 "configure"
    18381908#include "confdefs.h"
    18391909 
     
    18501920
    18511921EOF
    1852 if { (eval echo configure:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1922if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    18531923then
    18541924  ac_cv_align_need_strict=no
     
    18671937
    18681938echo $ac_n "checking for external config files""... $ac_c" 1>&6
    1869 echo "configure:1870: checking for external config files" >&5
     1939echo "configure:1940: checking for external config files" >&5
    18701940if test "${with_external_config_h+set}" = set; then
    18711941    cat >> confdefs.h <<\EOF
     
    18741944
    18751945    EXTERNAL_CONFIG_HEADER=${with_external_config_h}
     1946    rm -f omExternalConfig.h
     1947    cp ${with_external_config_h} omExternalConfig.h
    18761948fi
    18771949if test "${with_external_config_c+set}" = set; then
     
    18911963
    18921964echo $ac_n "checking which malloc to use""... $ac_c" 1>&6
    1893 echo "configure:1894: checking which malloc to use" >&5
     1965echo "configure:1966: checking which malloc to use" >&5
    18941966if test "${with_malloc}" = system; then
    18951967  OM_MALLOC_HEADER=omMallocSystem.h
    1896   if test "${with_provide_malloc}" = yes; then
    1897     { echo "configure: error: "can not provide malloc for --with_malloc=system"" 1>&2; exit 1; }
     1968  if test "${with_provide_malloc}" = yes || test "${with_provide_malloc}" = debug; then
     1969    { echo "configure: error: "can not provide malloc for --with-malloc=system"" 1>&2; exit 1; }
    18981970  fi
    18991971elif test "${with_malloc}" = gmalloc; then
     
    19071979    { echo "configure: error: need --with_external_malloc_h for external malloc" 1>&2; exit 1; }
    19081980  fi
    1909   if test "${with_provide_malloc}" = yes; then
     1981  if test "${with_provide_malloc}" = yes || test "${with_provide_malloc}" = debug; then
    19101982    { echo "configure: error: "can not provide malloc for --with_malloc=external"" 1>&2; exit 1; }
    19111983  fi
     
    19282000
    19292001echo $ac_n "checking whether malloc provides SizeOfAddr""... $ac_c" 1>&6
    1930 echo "configure:1931: checking whether malloc provides SizeOfAddr" >&5
     2002echo "configure:2003: checking whether malloc provides SizeOfAddr" >&5
    19312003if test "${ac_cv_malloc_sizeof_addr}" = no; then
    19322004  echo "$ac_t""(cached) no" 1>&6
     
    19382010else
    19392011  cat > conftest.$ac_ext <<EOF
    1940 #line 1941 "configure"
     2012#line 2013 "configure"
    19412013#include "confdefs.h"
    19422014
     
    19552027
    19562028EOF
    1957 if { (eval echo configure:1958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2029if { (eval echo configure:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    19582030then
    19592031  ac_cv_malloc_sizeof_addr="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}"
     
    19792051
    19802052fi
    1981 
    1982 if test "${with_provide_malloc}" = yes; then
     2053 
     2054if test "${with_provide_malloc}" = malloc; then
     2055   cat >> confdefs.h <<\EOF
     2056#define OM_PROVIDE_MALLOC 3
     2057EOF
     2058
     2059elif test "${with_provide_malloc}" = debug; then
     2060   cat >> confdefs.h <<\EOF
     2061#define OM_PROVIDE_MALLOC 2
     2062EOF
     2063
     2064elif test "${with_provide_malloc}" = yes; then
    19832065  cat >> confdefs.h <<\EOF
    19842066#define OM_PROVIDE_MALLOC 1
    19852067EOF
    19862068
     2069else
     2070  cat >> confdefs.h <<\EOF
     2071#define OM_PROVIDE_MALLOC 0
     2072EOF
     2073
    19872074fi
    19882075
    19892076echo $ac_n "checking whether working valloc exists""... $ac_c" 1>&6
    1990 echo "configure:1991: checking whether working valloc exists" >&5
     2077echo "configure:2078: checking whether working valloc exists" >&5
    19912078if test "${ac_cv_working_valloc}" = no; then
    19922079  echo "$ac_t""(cached) no" 1>&6
     
    19982085else
    19992086  cat > conftest.$ac_ext <<EOF
    2000 #line 2001 "configure"
     2087#line 2088 "configure"
    20012088#include "confdefs.h"
    20022089
     
    20162103
    20172104EOF
    2018 if { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2105if { (eval echo configure:2106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    20192106then
    20202107  ac_cv_working_valloc="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}"
     
    20362123
    20372124echo $ac_n "checking which valloc to use""... $ac_c" 1>&6
    2038 echo "configure:2039: checking which valloc to use" >&5
     2125echo "configure:2126: checking which valloc to use" >&5
    20392126if test "${with_valloc+set}" != set || test "${with_valloc}" = mmap; then
    20402127  if test "${ac_cv_working_mmap}" = yes; then
     
    20612148
    20622149echo $ac_n "checking whether to emulate omalloc""... $ac_c" 1>&6
    2063 echo "configure:2064: checking whether to emulate omalloc" >&5
     2150echo "configure:2151: checking whether to emulate omalloc" >&5
    20642151if test "${with_emulate_omalloc}" = yes; then
    20652152  cat >> confdefs.h <<\EOF
     
    20732160
    20742161echo $ac_n "checking how to align""... $ac_c" 1>&6
    2075 echo "configure:2076: checking how to align" >&5
     2162echo "configure:2163: checking how to align" >&5
    20762163if test "$with_align" = 8 || test "$ac_cv_sizeof_long" = 8; then
    20772164  ac_cv_align=8
     
    20942181
    20952182echo $ac_n "checking whether to use dense bins""... $ac_c" 1>&6
    2096 echo "configure:2097: checking whether to use dense bins" >&5
     2183echo "configure:2184: checking whether to use dense bins" >&5
    20972184if test "$with_dense_bins" = yes; then
    20982185echo "$ac_t""yes" 1>&6
     
    21052192fi
    21062193
     2194echo $ac_n "checking whether to disable debugging""... $ac_c" 1>&6
     2195echo "configure:2196: checking whether to disable debugging" >&5
     2196if test "$with_debug" != no; then
     2197echo "$ac_t""no" 1>&6
     2198else
     2199echo "$ac_t""yes" 1>&6
     2200cat >> confdefs.h <<\EOF
     2201#define OM_NDEBUG 1
     2202EOF
     2203
     2204with_track=no
     2205fi
     2206
     2207echo $ac_n "checking whether to have tracking debug functionality""... $ac_c" 1>&6
     2208echo "configure:2209: checking whether to have tracking debug functionality" >&5
     2209if test "$with_track" != no; then
     2210echo "$ac_t""yes" 1>&6
     2211cat >> confdefs.h <<\EOF
     2212#define OM_HAVE_TRACK 1
     2213EOF
     2214
     2215else
     2216echo "$ac_t""no" 1>&6
     2217fi
     2218
    21072219echo $ac_n "checking whether to use internal debug""... $ac_c" 1>&6
    2108 echo "configure:2109: checking whether to use internal debug" >&5
     2220echo "configure:2221: checking whether to use internal debug" >&5
    21092221if test "$with_internal_debug" = yes; then
    21102222echo "$ac_t""yes" 1>&6
     
    21192231
    21202232echo $ac_n "checking whether to inline""... $ac_c" 1>&6
    2121 echo "configure:2122: checking whether to inline" >&5
     2233echo "configure:2234: checking whether to inline" >&5
    21222234if test "$ac_cv_c_inline" != no && test "$with_inline" != no; then
    21232235  cat >> confdefs.h <<EOF
     
    21542266fi
    21552267
    2156 if test "$with_mtrack" != no; then
    2157 # get function for return address
    2158 if test "${with_return_addr_func+set}" = set; then
    2159 if test "${with_return_addr_func}" != no; then
    2160   ac_cv_return_addr_func=$with_return_addr_func
    2161 fi
    2162 else
    2163 if test "${GCC}" = yes; then
    2164   ac_cv_return_addr_func="__builtin_return_address"
    2165 fi
    2166 fi
    2167 
    2168 # test this function
    2169 if test "${ac_cv_return_addr_func+set}" = set; then
    2170 cat >> confdefs.h <<EOF
    2171 #define OM_RETURN_ADDR $ac_cv_return_addr_func
    2172 EOF
    2173 
    2174 # first, check whether return addr works
    2175 echo $ac_n "checking whether $ac_cv_return_addr_func works""... $ac_c" 1>&6
    2176 echo "configure:2177: checking whether $ac_cv_return_addr_func works" >&5
    2177 if eval "test \"`echo '$''{'ac_cv_return_addr_func_works'+set}'`\" = set"; then
     2268echo $ac_n "checking whether GET_RET_ADDR works""... $ac_c" 1>&6
     2269echo "configure:2270: checking whether GET_RET_ADDR works" >&5
     2270if eval "test \"`echo '$''{'ac_cv_get_return_addr_works'+set}'`\" = set"; then
    21782271  echo $ac_n "(cached) $ac_c" 1>&6
    21792272else
    21802273  if test "$cross_compiling" = yes; then
    2181   ac_cv_return_addr_func_works=no
     2274  ac_cv_get_return_addr_works=no
    21822275else
    21832276  cat > conftest.$ac_ext <<EOF
    2184 #line 2185 "configure"
     2277#line 2278 "configure"
    21852278#include "confdefs.h"
    21862279
     2280#include "omReturn.h"
    21872281int test_return_addr()
    21882282{
    2189    if (OM_RETURN_ADDR(1)  != 0 && OM_RETURN_ADDR(0) != 0 &&
    2190        OM_RETURN_ADDR(1) != OM_RETURN_ADDR(0)) return 0;
    2191    return 1;
     2283  char* f;
     2284  GET_RET_ADDR(f);
     2285  return (int) f;
    21922286}
    2193 
    21942287int main()
    21952288{
    2196    return test_return_addr();
     2289   exit(! test_return_addr());
    21972290}
    21982291
    21992292EOF
    2200 if { (eval echo configure:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2293if { (eval echo configure:2294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    22012294then
    2202   ac_cv_return_addr_func_works=yes
     2295  ac_cv_get_return_addr_works=yes
    22032296else
    22042297  echo "configure: failed program was:" >&5
    22052298  cat conftest.$ac_ext >&5
    22062299  rm -fr conftest*
    2207   ac_cv_return_addr_func_works=no
     2300  ac_cv_get_return_addr_works=no
    22082301fi
    22092302rm -fr conftest*
     
    22122305fi
    22132306
    2214 echo "$ac_t""$ac_cv_return_addr_func_works" 1>&6
    2215 
    2216 if test "$ac_cv_return_addr_func_works" = yes; then
     2307echo "$ac_t""$ac_cv_get_return_addr_works" 1>&6
     2308if test "$ac_cv_get_return_addr_works" = yes; then
    22172309cat >> confdefs.h <<\EOF
    2218 #define OM_RETURN_ADDR_WORKS 1
    2219 EOF
    2220 
    2221 # check whether return addr works with rvalues
    2222 echo $ac_n "checking whether $ac_cv_return_addr_func takes rvalues""... $ac_c" 1>&6
    2223 echo "configure:2224: checking whether $ac_cv_return_addr_func takes rvalues" >&5
    2224 if eval "test \"`echo '$''{'ac_cv_return_addr_func_rvalue'+set}'`\" = set"; then
     2310#define OM_GET_RETURN_ADDR_WORKS 1
     2311EOF
     2312
     2313fi
     2314
     2315echo $ac_n "checking whether omGetBackTrace works""... $ac_c" 1>&6
     2316echo "configure:2317: checking whether omGetBackTrace works" >&5
     2317if eval "test \"`echo '$''{'ac_cv_get_backtrace_works'+set}'`\" = set"; then
    22252318  echo $ac_n "(cached) $ac_c" 1>&6
    22262319else
    22272320  if test "$cross_compiling" = yes; then
    2228   ac_cv_return_addr_func_rvalue=no
     2321  ac_cv_get_backtrace_works=no
    22292322else
    22302323  cat > conftest.$ac_ext <<EOF
    2231 #line 2232 "configure"
     2324#line 2325 "configure"
    22322325#include "confdefs.h"
    22332326
    2234 int test_return_addr(int f1, int f2)
     2327#include "omGetBackTrace.c"
     2328#include <stdio.h>
     2329int test_backtrace()
    22352330{
    2236    if (OM_RETURN_ADDR(f1)  != 0 && OM_RETURN_ADDR(f0) != 0 &&
    2237        OM_RETURN_ADDR(f1) != OM_RETURN_ADDR(f0)) return 0;
    2238    return 1;
     2331  void* bt;
     2332  int i = omGetBackTrace(&bt, 0, 10);
     2333  return i;
    22392334}
    2240 
    22412335int main()
    22422336{
    2243    return test_return_addr(1, 0);
     2337   int i;       
     2338   omInitGetBackTrace();
     2339   i = test_backtrace();
     2340   if (i == 1) exit(0);
     2341   else exit(i+1);
    22442342}
    22452343
    22462344EOF
    2247 if { (eval echo configure:2248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2345if { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    22482346then
    2249   ac_cv_return_addr_func_rvalue=yes
     2347  ac_cv_get_backtrace_works=yes
    22502348else
    22512349  echo "configure: failed program was:" >&5
    22522350  cat conftest.$ac_ext >&5
    22532351  rm -fr conftest*
    2254   ac_cv_return_addr_func_rvalue=no
     2352  ac_cv_get_backtrace_works=no
    22552353fi
    22562354rm -fr conftest*
     
    22592357fi
    22602358
    2261 echo "$ac_t""$ac_cv_return_addr_func_rvalue" 1>&6
    2262 if test "$ac_cv_return_addr_func_rvalue" = yes; then
    2263   cat >> confdefs.h <<EOF
    2264 #define OM_RETURN_ADDR_RVALUE 1
    2265 EOF
    2266 
    2267 fi
    2268 fi # "$ac_cv_return_addr_func_works" = yes;
    2269 fi # "${ac_cv_return_addr_func+set}" = set;
    2270 
    2271 # get function for frame address
    2272 if test "${with_frame_addr_func+set}" = set; then
    2273 if test "${with_frame_addr_func}" != no; then
    2274   ac_cv_frame_addr_func=$with_frame_addr_func
    2275 fi
    2276 else
    2277 if test "${GCC}" = yes; then
    2278   ac_cv_frame_addr_func="__builtin_frame_address"
    2279 fi
    2280 fi
    2281 
    2282 # test this function
    2283 if test "${ac_cv_frame_addr_func+set}" = set; then
    2284 cat >> confdefs.h <<EOF
    2285 #define OM_FRAME_ADDR $ac_cv_frame_addr_func
    2286 EOF
    2287 
    2288 # first, check whether frame addr works
    2289 echo $ac_n "checking whether $ac_cv_frame_addr_func works""... $ac_c" 1>&6
    2290 echo "configure:2291: checking whether $ac_cv_frame_addr_func works" >&5
    2291 if eval "test \"`echo '$''{'ac_cv_frame_addr_func_works'+set}'`\" = set"; then
    2292   echo $ac_n "(cached) $ac_c" 1>&6
    2293 else
    2294   if test "$cross_compiling" = yes; then
    2295   ac_cv_frame_addr_func_works=no
    2296 else
    2297   cat > conftest.$ac_ext <<EOF
    2298 #line 2299 "configure"
    2299 #include "confdefs.h"
    2300 
    2301 int test_frame_addr()
    2302 {
    2303    if (OM_FRAME_ADDR(1)  != 0 && OM_FRAME_ADDR(0) != 0 &&
    2304        OM_FRAME_ADDR(1) != OM_FRAME_ADDR(0)) return 0;
    2305    return 1;
    2306 }
    2307 
    2308 int main()
    2309 {
    2310    return test_frame_addr();
    2311 }
    2312 
    2313 EOF
    2314 if { (eval echo configure:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2315 then
    2316   ac_cv_frame_addr_func_works=yes
    2317 else
    2318   echo "configure: failed program was:" >&5
    2319   cat conftest.$ac_ext >&5
    2320   rm -fr conftest*
    2321   ac_cv_frame_addr_func_works=no
    2322 fi
    2323 rm -fr conftest*
    2324 fi
    2325 
    2326 fi
    2327 
    2328 echo "$ac_t""$ac_cv_frame_addr_func_works" 1>&6
    2329 
    2330 if test "$ac_cv_frame_addr_func_works" = yes; then
     2359echo "$ac_t""$ac_cv_get_backtrace_works" 1>&6
     2360if test "$ac_cv_get_backtrace_works" = yes; then
    23312361cat >> confdefs.h <<\EOF
    2332 #define OM_FRAME_ADDR_WORKS 1
    2333 EOF
    2334 
    2335 # check whether frame addr works with rvalues
    2336 echo $ac_n "checking whether $ac_cv_frame_addr_func takes rvalues""... $ac_c" 1>&6
    2337 echo "configure:2338: checking whether $ac_cv_frame_addr_func takes rvalues" >&5
    2338 if eval "test \"`echo '$''{'ac_cv_frame_addr_func_rvalue'+set}'`\" = set"; then
    2339   echo $ac_n "(cached) $ac_c" 1>&6
    2340 else
    2341   if test "$cross_compiling" = yes; then
    2342   ac_cv_frame_addr_func_rvalue=no
    2343 else
    2344   cat > conftest.$ac_ext <<EOF
    2345 #line 2346 "configure"
    2346 #include "confdefs.h"
    2347 
    2348 int test_frame_addr(int f1, int f2)
    2349 {
    2350    if (OM_FRAME_ADDR(f1)  != 0 && OM_FRAME_ADDR(f0) != 0 &&
    2351        OM_FRAME_ADDR(f1) != OM_FRAME_ADDR(f0)) return 0;
    2352    return 1;
    2353 }
    2354 
    2355 int main()
    2356 {
    2357    return test_frame_addr(1, 0);
    2358 }
    2359 
    2360 EOF
    2361 if { (eval echo configure:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    2362 then
    2363   ac_cv_frame_addr_func_rvalue=yes
    2364 else
    2365   echo "configure: failed program was:" >&5
    2366   cat conftest.$ac_ext >&5
    2367   rm -fr conftest*
    2368   ac_cv_frame_addr_func_rvalue=no
    2369 fi
    2370 rm -fr conftest*
    2371 fi
    2372 
    2373 fi
    2374 
    2375 echo "$ac_t""$ac_cv_frame_addr_func_rvalue" 1>&6
    2376 if test "$ac_cv_frame_addr_func_rvalue" = yes; then
    2377   cat >> confdefs.h <<EOF
    2378 #define OM_FRAME_ADDR_RVALUE 1
    2379 EOF
    2380 
    2381 fi
    2382 fi # "$ac_cv_frame_addr_func_works" = yes;
    2383 fi # "${ac_cv_frame_addr_func+set}" = set;
    2384 
    2385 fi  # "$with_mtrack" != no;
    2386 
    2387 
    2388 if test "${GCC}" = yes && test "$ac_cflags_set" = no ; then
    2389   CFLAGS="-pipe -Wall -O3 -fomit-frame-pointer"
    2390 fi
     2362#define OM_GET_BACKTRACE_WORKS 1
     2363EOF
     2364
     2365fi
     2366
     2367echo $ac_n "checking whether to track return addresses""... $ac_c" 1>&6
     2368echo "configure:2369: checking whether to track return addresses" >&5
     2369if test "$with_track_return" = no || test "$ac_cv_get_return_addr_works" = no; then
     2370  with_track_return=no
     2371else
     2372  cat >> confdefs.h <<\EOF
     2373#define OM_TRACK_RETURN 1
     2374EOF
     2375
     2376  with_track_return=yes
     2377fi
     2378echo "$ac_t""$with_track_return" 1>&6
     2379
     2380echo $ac_n "checking whether to track files and line numbers""... $ac_c" 1>&6
     2381echo "configure:2382: checking whether to track files and line numbers" >&5
     2382if test "$with_track_fl" = no && test "$with_track_return" = no; then
     2383  with_track_fl=yes
     2384fi
     2385if test "${with_track_fl+set}" != set; then
     2386  if test "$with_track_return" = yes; then
     2387    with_track_fl=no
     2388  else
     2389    with_track_fl=yes
     2390  fi
     2391fi
     2392echo "$ac_t""$with_track_fl" 1>&6
     2393if test "$with_track_fl" = yes; then
     2394  cat >> confdefs.h <<\EOF
     2395#define OM_TRACK_FILE_LINE 1
     2396EOF
     2397
     2398fi
     2399
     2400echo $ac_n "checking whether to track stack backtraces""... $ac_c" 1>&6
     2401echo "configure:2402: checking whether to track stack backtraces" >&5
     2402if test "$with_track" != no && test "$ac_cv_get_backtrace_works" = yes && test "$with_track_backtrace" != no; then
     2403  with_track_backtrace=yes
     2404  cat >> confdefs.h <<\EOF
     2405#define OM_TRACK_BACKTRACE 1
     2406EOF
     2407
     2408else
     2409  with_track_backtrace=no
     2410fi
     2411echo "$ac_t""$with_track_backtrace" 1>&6
     2412 
    23912413
    23922414
     
    24912513
    24922514ac_given_srcdir=$srcdir
     2515ac_given_INSTALL="$INSTALL"
    24932516
    24942517trap 'rm -fr `echo "Makefile omConfig.h omMalloc.h:${OM_MALLOC_HEADER}" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
     
    25242547s%@infodir@%$infodir%g
    25252548s%@mandir@%$mandir%g
     2549s%@VERSION@%$VERSION%g
    25262550s%@SET_MAKE@%$SET_MAKE%g
    25272551s%@CC@%$CC%g
     
    25292553s%@RANLIB@%$RANLIB%g
    25302554s%@LN_S@%$LN_S%g
     2555s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
     2556s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
     2557s%@INSTALL_DATA@%$INSTALL_DATA%g
    25312558s%@AR@%$AR%g
    25322559s%@PERL@%$PERL%g
     
    26132640  esac
    26142641
     2642  case "$ac_given_INSTALL" in
     2643  [/$]*) INSTALL="$ac_given_INSTALL" ;;
     2644  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
     2645  esac
    26152646
    26162647  echo creating "$ac_file"
     
    26282659s%@srcdir@%$srcdir%g
    26292660s%@top_srcdir@%$top_srcdir%g
     2661s%@INSTALL@%$INSTALL%g
    26302662" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
    26312663fi; done
Note: See TracChangeset for help on using the changeset viewer.