19948
# dolt, a replacement for libtool
19949
# Josh Triplett <josh@freedesktop.org>
19950
# Extract the first word of "bash", so it can be a program name with args.
19951
set dummy bash; ac_word=$2
19952
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19953
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19954
if test "${ac_cv_path_DOLT_BASH+set}" = set; then
19955
echo $ECHO_N "(cached) $ECHO_C" >&6
19959
ac_cv_path_DOLT_BASH="$DOLT_BASH" # Let the user override the test with a path.
19962
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19963
for as_dir in $PATH
19966
test -z "$as_dir" && as_dir=.
19967
for ac_exec_ext in '' $ac_executable_extensions; do
19968
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19969
ac_cv_path_DOLT_BASH="$as_dir/$ac_word$ac_exec_ext"
19970
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19980
DOLT_BASH=$ac_cv_path_DOLT_BASH
19981
if test -n "$DOLT_BASH"; then
19982
{ echo "$as_me:$LINENO: result: $DOLT_BASH" >&5
19983
echo "${ECHO_T}$DOLT_BASH" >&6; }
19985
{ echo "$as_me:$LINENO: result: no" >&5
19986
echo "${ECHO_T}no" >&6; }
19990
{ echo "$as_me:$LINENO: checking if dolt supports this host" >&5
19991
echo $ECHO_N "checking if dolt supports this host... $ECHO_C" >&6; }
19993
if test x$DOLT_BASH = x; then
19996
if test x$GCC != xyes; then
20000
i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux* \
20001
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*)
20002
pic_options='-fPIC'
20004
i?86-apple-darwin*)
20005
pic_options='-fno-common'
20011
if test x$dolt_supported = xno ; then
20012
{ echo "$as_me:$LINENO: result: no, falling back to libtool" >&5
20013
echo "${ECHO_T}no, falling back to libtool" >&6; }
20014
LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)'
20015
LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)'
20017
{ echo "$as_me:$LINENO: result: yes, replacing libtool" >&5
20018
echo "${ECHO_T}yes, replacing libtool" >&6; }
20020
cat <<__DOLTCOMPILE__EOF__ >doltcompile
20022
__DOLTCOMPILE__EOF__
20023
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20025
for ((arg=0; arg<${#args[@]}; arg++)) ; do
20026
if test x"${args[$arg]}" = x-o ; then
20031
if test x$objarg = x ; then
20032
echo 'Error: no -o on compiler command line' 1>&2
20035
lo="${args[$objarg]}"
20037
if test x"$lo" = x"$obj" ; then
20038
echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2
20041
objbase="${obj##*/}"
20042
__DOLTCOMPILE__EOF__
20044
if test x$enable_shared = xyes; then
20045
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20046
libobjdir="${obj%$objbase}.libs"
20047
if test ! -d "$libobjdir" ; then
20048
mkdir_out="$(mkdir "$libobjdir" 2>&1)"
20050
if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then
20051
echo "$mkdir_out" 1>&2
20055
pic_object="$libobjdir/$objbase.o"
20056
args[$objarg]="$pic_object"
20057
__DOLTCOMPILE__EOF__
20058
cat <<__DOLTCOMPILE__EOF__ >>doltcompile
20059
"\${args[@]}" $pic_options -DPIC || exit \$?
20060
__DOLTCOMPILE__EOF__
20063
if test x$enable_static = xyes; then
20064
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20065
non_pic_object="$obj.o"
20066
args[$objarg]="$non_pic_object"
20067
__DOLTCOMPILE__EOF__
20068
if test x$enable_shared = xyes; then
20069
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20070
"${args[@]}" >/dev/null 2>&1 || exit $?
20071
__DOLTCOMPILE__EOF__
20073
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20074
"${args[@]}" || exit $?
20075
__DOLTCOMPILE__EOF__
20079
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20081
echo "# $lo - a libtool object file"
20082
echo "# Generated by doltcompile, not libtool"
20083
__DOLTCOMPILE__EOF__
20085
if test x$enable_shared = xyes; then
20086
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20087
echo "pic_object='.libs/${objbase}.o'"
20088
__DOLTCOMPILE__EOF__
20090
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20091
echo pic_object=none
20092
__DOLTCOMPILE__EOF__
20095
if test x$enable_static = xyes; then
20096
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20097
echo "non_pic_object='${objbase}.o'"
20098
__DOLTCOMPILE__EOF__
20100
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20101
echo non_pic_object=none
20102
__DOLTCOMPILE__EOF__
20105
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20107
__DOLTCOMPILE__EOF__
20109
chmod +x doltcompile
20110
LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)'
20111
LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)'
20113
cat <<__DOLTLIBTOOL__EOF__ > doltlibtool
20115
__DOLTLIBTOOL__EOF__
20116
cat <<'__DOLTLIBTOOL__EOF__' >>doltlibtool
20117
top_builddir_slash="${0%%doltlibtool}"
20118
: ${top_builddir_slash:=./}
20122
for arg in "$@"; do
20124
--mode=compile) modeok=true ;;
20125
--tag=CC|--tag=CXX) tagok=true ;;
20129
if $modeok && $tagok ; then
20130
. ${top_builddir_slash}doltcompile "${args[@]}"
20132
exec ${top_builddir_slash}libtool "$@"
20134
__DOLTLIBTOOL__EOF__
20136
chmod +x doltlibtool
20137
LIBTOOL='$(top_builddir)/doltlibtool'
19940
20144
ac_cpp='$CPP $CPPFLAGS'
19941
20145
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20928
if test x"$CC_FOR_BUILD" = x; then
20929
if test x"$cross_compiling" = xyes; then
20930
for ac_prog in gcc cc
20932
# Extract the first word of "$ac_prog", so it can be a program name with args.
20933
set dummy $ac_prog; ac_word=$2
20934
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20935
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20936
if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
20937
echo $ECHO_N "(cached) $ECHO_C" >&6
20939
if test -n "$CC_FOR_BUILD"; then
20940
ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
20942
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20943
for as_dir in $PATH
20946
test -z "$as_dir" && as_dir=.
20947
for ac_exec_ext in '' $ac_executable_extensions; do
20948
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20949
ac_cv_prog_CC_FOR_BUILD="$ac_prog"
20950
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20959
CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
20960
if test -n "$CC_FOR_BUILD"; then
20961
{ echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
20962
echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
20964
{ echo "$as_me:$LINENO: result: no" >&5
20965
echo "${ECHO_T}no" >&6; }
20969
test -n "$CC_FOR_BUILD" && break
20726
20980
for ac_prog in cpp
22131
22385
echo "${ECHO_T}$SECURE_RPC" >&6; }
22388
# Preferred order to try transports for local connections
22389
{ echo "$as_me:$LINENO: checking what order to try transports in for local connections" >&5
22390
echo $ECHO_N "checking what order to try transports in for local connections... $ECHO_C" >&6; }
22393
# On Solaris 2.6 through 9, named pipes (LOCAL_TRANS) were
22394
# faster than Unix domain sockets, but on Solaris 10 & later,
22395
# Unix domain sockets are faster now.
22396
DEFAULT_LOCAL_TRANS="UNIX_TRANS,LOCAL_TRANS,TCP_TRANS"
22399
if test "$LOCALCONN" = "yes"; then
22400
DEFAULT_LOCAL_TRANS="LOCAL_TRANS,UNIX_TRANS,TCP_TRANS"
22402
DEFAULT_LOCAL_TRANS="UNIX_TRANS,TCP_TRANS"
22408
# Check whether --with-local-transport-order was given.
22409
if test "${with_local_transport_order+set}" = set; then
22410
withval=$with_local_transport_order; LOCAL_TRANSPORT_LIST=$withval
22412
LOCAL_TRANSPORT_LIST=$DEFAULT_LOCAL_TRANS
22416
cat >>confdefs.h <<_ACEOF
22417
#define LOCAL_TRANSPORT_LIST $LOCAL_TRANSPORT_LIST
22420
{ echo "$as_me:$LINENO: result: $LOCAL_TRANSPORT_LIST" >&5
22421
echo "${ECHO_T}$LOCAL_TRANSPORT_LIST" >&6; }
22134
22423
# Check for dlopen
22135
22424
{ echo "$as_me:$LINENO: checking if run-time linking is supported" >&5
22136
22425
echo $ECHO_N "checking if run-time linking is supported... $ECHO_C" >&6; }