X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=libiberty%2Fconfigure;h=f4169b40e0fa432667b73b2ac4119c9ba1020bfb;hb=9f81b99e2426d19760c20c07f8cd3ae5cd85e8df;hp=29a690d44fcc9f9387c3d7878289570bb4c2ab72;hpb=538c15fc2a29ff142f2ec71d253d4027946ece09;p=binutils-gdb.git diff --git a/libiberty/configure b/libiberty/configure index 29a690d44fc..f4169b40e0f 100755 --- a/libiberty/configure +++ b/libiberty/configure @@ -2460,9 +2460,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - # This works around the fact that libtool configuration may change LD # for this particular configuration, but some shells, instead of # keeping the changes in LD private, export them just because LD is @@ -5361,9 +5358,7 @@ case "${host}" in sh-*-linux* | sh[2346lbe]*-*-linux*) PICFLAG=-fpic ;; - # FIXME: Simplify to sh*-*-netbsd*? - sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \ - sh64-*-netbsd* | sh64l*-*-netbsd*) + sh*-*-netbsd*) PICFLAG=-fpic ;; # Default to -fPIC unless specified otherwise. @@ -6731,6 +6726,22 @@ if test -z "${setobjs}"; then ac_cv_func_getpagesize=yes ;; + hppa*-*-hpux*) + # Replace system snprintf and vsnprintf with libiberty implementations. + case " $LIBOBJS " in + *" snprintf.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" + ;; +esac + + case " $LIBOBJS " in + *" vsnprintf.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS vsnprintf.$ac_objext" + ;; +esac + + ;; + *-*-mingw32*) # Under mingw32, sys_nerr and sys_errlist exist, but they are # macros, so the test below won't find them. @@ -7192,11 +7203,11 @@ else fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -int *p; +extern int $v []; int main () { -extern int $v []; p = $v; +if ($v [0]) return 1; ; return 0; }