~ubuntu-branches/ubuntu/hoary/binutils/hoary

« back to all changes in this revision

Viewing changes to libiberty/configure

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-03-18 13:07:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050318130752-j4i37zgqclj53b94
Tags: 2.15-5ubuntu2
debian/rules: Call pkgstriptranslations if present (the package does not
use debhelper, thus it does not happen automatically).

Show diffs side-by-side

added added

removed removed

Lines of Context:
308
308
# include <unistd.h>
309
309
#endif"
310
310
 
311
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libiberty_topdir MAINT NOTMAINT MAKEINFO BUILD_INFO PERL HAVE_PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S DEMANGLER CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP ac_libiberty_warn_cflags NO_MINUS_C_MINUS_O OUTPUT_OPTION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LIBOBJS CHECK target_header_dir pexecute INSTALL_DEST LTLIBOBJS'
 
311
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libiberty_topdir MAINT NOTMAINT MAKEINFO BUILD_INFO PERL HAVE_PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os AR ac_ct_AR RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP ac_libiberty_warn_cflags NO_MINUS_C_MINUS_O OUTPUT_OPTION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LIBOBJS CHECK target_header_dir pexecute INSTALL_DEST LTLIBOBJS'
312
312
ac_subst_files='host_makefile_frag'
313
313
 
314
314
# Initialize some variables set by options.
1693
1693
fi
1694
1694
 
1695
1695
 
1696
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
1697
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1698
 
LN_S=$as_ln_s
1699
 
if test "$LN_S" = "ln -s"; then
1700
 
  echo "$as_me:$LINENO: result: yes" >&5
1701
 
echo "${ECHO_T}yes" >&6
1702
 
else
1703
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1704
 
echo "${ECHO_T}no, using $LN_S" >&6
1705
 
fi
1706
 
 
1707
 
 
1708
 
if test -d ${libiberty_topdir}/demangler; then
1709
 
  DEMANGLER=
1710
 
else
1711
 
  DEMANGLER=cp-demangle.o
1712
 
fi
1713
 
 
1714
 
 
1715
1696
 
1716
1697
ac_ext=c
1717
1698
ac_cpp='$CPP $CPPFLAGS'
3423
3404
 
3424
3405
 
3425
3406
 
3426
 
 
3427
 
for ac_header in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h dlfcn.h
 
3407
for ac_header in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h
3428
3408
do
3429
3409
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3430
3410
echo "$as_me:$LINENO: checking for $ac_header" >&5
3955
3935
_ACEOF
3956
3936
 
3957
3937
 
3958
 
echo "$as_me:$LINENO: checking whether weak symbol works" >&5
3959
 
echo $ECHO_N "checking whether weak symbol works... $ECHO_C" >&6
3960
 
if test "${libiberty_cv_have_weak_symbol+set}" = set; then
3961
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3962
 
else
3963
 
  cat >conftest.$ac_ext <<_ACEOF
3964
 
#line $LINENO "configure"
3965
 
/* confdefs.h.  */
3966
 
_ACEOF
3967
 
cat confdefs.h >>conftest.$ac_ext
3968
 
cat >>conftest.$ac_ext <<_ACEOF
3969
 
/* end confdefs.h.  */
3970
 
 
3971
 
#pragma weak liberty_weak_symbol_test
3972
 
extern void liberty_weak_symbol_test ();
3973
 
int
3974
 
main ()
3975
 
{
3976
 
if (return &liberty_weak_symbol_test != NULL) return 1
3977
 
  ;
3978
 
  return 0;
3979
 
}
3980
 
_ACEOF
3981
 
rm -f conftest.$ac_objext
3982
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983
 
  (eval $ac_compile) 2>&5
3984
 
  ac_status=$?
3985
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986
 
  (exit $ac_status); } &&
3987
 
         { ac_try='test -s conftest.$ac_objext'
3988
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989
 
  (eval $ac_try) 2>&5
3990
 
  ac_status=$?
3991
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992
 
  (exit $ac_status); }; }; then
3993
 
  libiberty_cv_have_weak_symbol=no
3994
 
else
3995
 
  echo "$as_me: failed program was:" >&5
3996
 
sed 's/^/| /' conftest.$ac_ext >&5
3997
 
 
3998
 
libiberty_cv_have_weak_symbol=yes
3999
 
fi
4000
 
rm -f conftest.$ac_objext conftest.$ac_ext
4001
 
fi
4002
 
 
4003
 
echo "$as_me:$LINENO: result: $libiberty_cv_have_weak_symbol" >&5
4004
 
echo "${ECHO_T}$libiberty_cv_have_weak_symbol" >&6
4005
 
if test $libiberty_cv_have_weak_symbol = yes; then
4006
 
 
4007
 
cat >>confdefs.h <<\_ACEOF
4008
 
#define HAVE_WEAK_SYMBOL 1
4009
 
_ACEOF
4010
 
 
4011
 
fi
4012
 
 
4013
 
if test $libiberty_cv_have_weak_symbol = yes; then
4014
 
  # demangler may use dlopen.
4015
 
  echo "$as_me:$LINENO: checking for library containing dlopen" >&5
4016
 
echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
4017
 
if test "${ac_cv_search_dlopen+set}" = set; then
4018
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4019
 
else
4020
 
  ac_func_search_save_LIBS=$LIBS
4021
 
ac_cv_search_dlopen=no
4022
 
if test x$gcc_no_link = xyes; then
4023
 
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4024
 
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4025
 
   { (exit 1); exit 1; }; }
4026
 
fi
4027
 
cat >conftest.$ac_ext <<_ACEOF
4028
 
#line $LINENO "configure"
4029
 
/* confdefs.h.  */
4030
 
_ACEOF
4031
 
cat confdefs.h >>conftest.$ac_ext
4032
 
cat >>conftest.$ac_ext <<_ACEOF
4033
 
/* end confdefs.h.  */
4034
 
 
4035
 
/* Override any gcc2 internal prototype to avoid an error.  */
4036
 
#ifdef __cplusplus
4037
 
extern "C"
4038
 
#endif
4039
 
/* We use char because int might match the return type of a gcc2
4040
 
   builtin and then its argument prototype would still apply.  */
4041
 
char dlopen ();
4042
 
int
4043
 
main ()
4044
 
{
4045
 
dlopen ();
4046
 
  ;
4047
 
  return 0;
4048
 
}
4049
 
_ACEOF
4050
 
rm -f conftest.$ac_objext conftest$ac_exeext
4051
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4052
 
  (eval $ac_link) 2>&5
4053
 
  ac_status=$?
4054
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055
 
  (exit $ac_status); } &&
4056
 
         { ac_try='test -s conftest$ac_exeext'
4057
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058
 
  (eval $ac_try) 2>&5
4059
 
  ac_status=$?
4060
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061
 
  (exit $ac_status); }; }; then
4062
 
  ac_cv_search_dlopen="none required"
4063
 
else
4064
 
  echo "$as_me: failed program was:" >&5
4065
 
sed 's/^/| /' conftest.$ac_ext >&5
4066
 
 
4067
 
fi
4068
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4069
 
if test "$ac_cv_search_dlopen" = no; then
4070
 
  for ac_lib in dl; do
4071
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4072
 
    if test x$gcc_no_link = xyes; then
4073
 
  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4074
 
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4075
 
   { (exit 1); exit 1; }; }
4076
 
fi
4077
 
cat >conftest.$ac_ext <<_ACEOF
4078
 
#line $LINENO "configure"
4079
 
/* confdefs.h.  */
4080
 
_ACEOF
4081
 
cat confdefs.h >>conftest.$ac_ext
4082
 
cat >>conftest.$ac_ext <<_ACEOF
4083
 
/* end confdefs.h.  */
4084
 
 
4085
 
/* Override any gcc2 internal prototype to avoid an error.  */
4086
 
#ifdef __cplusplus
4087
 
extern "C"
4088
 
#endif
4089
 
/* We use char because int might match the return type of a gcc2
4090
 
   builtin and then its argument prototype would still apply.  */
4091
 
char dlopen ();
4092
 
int
4093
 
main ()
4094
 
{
4095
 
dlopen ();
4096
 
  ;
4097
 
  return 0;
4098
 
}
4099
 
_ACEOF
4100
 
rm -f conftest.$ac_objext conftest$ac_exeext
4101
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4102
 
  (eval $ac_link) 2>&5
4103
 
  ac_status=$?
4104
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105
 
  (exit $ac_status); } &&
4106
 
         { ac_try='test -s conftest$ac_exeext'
4107
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108
 
  (eval $ac_try) 2>&5
4109
 
  ac_status=$?
4110
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111
 
  (exit $ac_status); }; }; then
4112
 
  ac_cv_search_dlopen="-l$ac_lib"
4113
 
break
4114
 
else
4115
 
  echo "$as_me: failed program was:" >&5
4116
 
sed 's/^/| /' conftest.$ac_ext >&5
4117
 
 
4118
 
fi
4119
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4120
 
  done
4121
 
fi
4122
 
LIBS=$ac_func_search_save_LIBS
4123
 
fi
4124
 
echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
4125
 
echo "${ECHO_T}$ac_cv_search_dlopen" >&6
4126
 
if test "$ac_cv_search_dlopen" != no; then
4127
 
  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
4128
 
  libiberty_cv_have_dlopen=yes
4129
 
else
4130
 
  libiberty_cv_have_dlopen=no
4131
 
fi
4132
 
 
4133
 
  if test $libiberty_cv_have_dlopen = yes; then
4134
 
 
4135
 
cat >>confdefs.h <<\_ACEOF
4136
 
#define HAVE_DLOPEN 1
4137
 
_ACEOF
4138
 
 
4139
 
  fi
4140
 
fi
4141
 
 
4142
3938
echo "$as_me:$LINENO: checking for pid_t" >&5
4143
3939
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4144
3940
if test "${ac_cv_type_pid_t+set}" = set; then
5883
5679
 
5884
5680
# Figure out which version of pexecute to use.
5885
5681
case "${host}" in
5886
 
     *-*-mingw* | *-*-winnt*)   pexecute=pex-win32.o  ;;
5887
 
     *-*-msdosdjgpp*)           pexecute=pex-djgpp.o  ;;
5888
 
     *-*-msdos*)                pexecute=pex-msdos.o  ;;
5889
 
     *-*-os2-emx*)              pexecute=pex-os2.o    ;;
5890
 
     *)                         pexecute=pex-unix.o   ;;
 
5682
     *-*-mingw* | *-*-winnt*)   pexecute=./pex-win32.o  ;;
 
5683
     *-*-msdosdjgpp*)           pexecute=./pex-djgpp.o  ;;
 
5684
     *-*-msdos*)                pexecute=./pex-msdos.o  ;;
 
5685
     *-*-os2-emx*)              pexecute=./pex-os2.o    ;;
 
5686
     *)                         pexecute=./pex-unix.o   ;;
5891
5687
esac
5892
5688
 
5893
5689
 
6338
6134
fi
6339
6135
 
6340
6136
 
 
6137
 
 
6138
L=""
 
6139
for l in x $LIBOBJS; do
 
6140
  case $l in
 
6141
    x) ;;
 
6142
    *) L="$L ./$l" ;;
 
6143
  esac
 
6144
done
 
6145
LIBOBJS="$L"
 
6146
 
6341
6147
# We need multilib support, but only if configuring for the target.
6342
6148
                    ac_config_files="$ac_config_files Makefile testsuite/Makefile"
6343
6149
          ac_config_commands="$ac_config_commands default"
6993
6799
s,@ac_ct_AR@,$ac_ct_AR,;t t
6994
6800
s,@RANLIB@,$RANLIB,;t t
6995
6801
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6996
 
s,@LN_S@,$LN_S,;t t
6997
 
s,@DEMANGLER@,$DEMANGLER,;t t
6998
6802
s,@CC@,$CC,;t t
6999
6803
s,@CFLAGS@,$CFLAGS,;t t
7000
6804
s,@LDFLAGS@,$LDFLAGS,;t t