Changeset 57 for trunk/configure


Ignore:
Timestamp:
Nov 17, 2009 2:09:54 PM (10 years ago)
Author:
awalther
Message:

extended modified configure.ac with patch for cygwin libtool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r56 r57  
    2023920239
    2024020240
    20241 # Checks for libraries
    20242 
    20243 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
    20244 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
    20245 if test "${ac_cv_lib_m_pow+set}" = set; then
    20246   echo $ECHO_N "(cached) $ECHO_C" >&6
    20247 else
    20248   ac_check_lib_save_LIBS=$LIBS
    20249 LIBS="-lm  $LIBS"
    20250 cat >conftest.$ac_ext <<_ACEOF
    20251 /* confdefs.h.  */
    20252 _ACEOF
    20253 cat confdefs.h >>conftest.$ac_ext
    20254 cat >>conftest.$ac_ext <<_ACEOF
    20255 /* end confdefs.h.  */
    20256 
    20257 /* Override any GCC internal prototype to avoid an error.
    20258    Use char because int might match the return type of a GCC
    20259    builtin and then its argument prototype would still apply.  */
    20260 #ifdef __cplusplus
    20261 extern "C"
    20262 #endif
    20263 char pow ();
    20264 int
    20265 main ()
    20266 {
    20267 return pow ();
    20268   ;
    20269   return 0;
    20270 }
    20271 _ACEOF
    20272 rm -f conftest.$ac_objext conftest$ac_exeext
    20273 if { (ac_try="$ac_link"
    20274 case "(($ac_try" in
    20275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    20276   *) ac_try_echo=$ac_try;;
    20277 esac
    20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    20279   (eval "$ac_link") 2>conftest.er1
    20280   ac_status=$?
    20281   grep -v '^ *+' conftest.er1 >conftest.err
    20282   rm -f conftest.er1
    20283   cat conftest.err >&5
    20284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20285   (exit $ac_status); } && {
    20286          test -z "$ac_c_werror_flag" ||
    20287          test ! -s conftest.err
    20288        } && test -s conftest$ac_exeext &&
    20289        $as_test_x conftest$ac_exeext; then
    20290   ac_cv_lib_m_pow=yes
    20291 else
    20292   echo "$as_me: failed program was:" >&5
    20293 sed 's/^/| /' conftest.$ac_ext >&5
    20294 
    20295         ac_cv_lib_m_pow=no
    20296 fi
    20297 
    20298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    20299       conftest$ac_exeext conftest.$ac_ext
    20300 LIBS=$ac_check_lib_save_LIBS
    20301 fi
    20302 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
    20303 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
    20304 if test $ac_cv_lib_m_pow = yes; then
    20305   cat >>confdefs.h <<_ACEOF
    20306 #define HAVE_LIBM 1
    20307 _ACEOF
    20308 
    20309   LIBS="-lm $LIBS"
    20310 
    20311 fi
    20312 
    20313 
    2031420241# checks for header files
    2031520242{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     
    2175821685
    2175921686# substitutions
     21687
     21688
     21689# Checks for libraries
     21690
     21691{ echo "$as_me:$LINENO: checking for pow in -lm" >&5
     21692echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
     21693if test "${ac_cv_lib_m_pow+set}" = set; then
     21694  echo $ECHO_N "(cached) $ECHO_C" >&6
     21695else
     21696  ac_check_lib_save_LIBS=$LIBS
     21697LIBS="-lm  $LIBS"
     21698cat >conftest.$ac_ext <<_ACEOF
     21699/* confdefs.h.  */
     21700_ACEOF
     21701cat confdefs.h >>conftest.$ac_ext
     21702cat >>conftest.$ac_ext <<_ACEOF
     21703/* end confdefs.h.  */
     21704
     21705/* Override any GCC internal prototype to avoid an error.
     21706   Use char because int might match the return type of a GCC
     21707   builtin and then its argument prototype would still apply.  */
     21708#ifdef __cplusplus
     21709extern "C"
     21710#endif
     21711char pow ();
     21712int
     21713main ()
     21714{
     21715return pow ();
     21716  ;
     21717  return 0;
     21718}
     21719_ACEOF
     21720rm -f conftest.$ac_objext conftest$ac_exeext
     21721if { (ac_try="$ac_link"
     21722case "(($ac_try" in
     21723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     21724  *) ac_try_echo=$ac_try;;
     21725esac
     21726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
     21727  (eval "$ac_link") 2>conftest.er1
     21728  ac_status=$?
     21729  grep -v '^ *+' conftest.er1 >conftest.err
     21730  rm -f conftest.er1
     21731  cat conftest.err >&5
     21732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21733  (exit $ac_status); } && {
     21734         test -z "$ac_c_werror_flag" ||
     21735         test ! -s conftest.err
     21736       } && test -s conftest$ac_exeext &&
     21737       $as_test_x conftest$ac_exeext; then
     21738  ac_cv_lib_m_pow=yes
     21739else
     21740  echo "$as_me: failed program was:" >&5
     21741sed 's/^/| /' conftest.$ac_ext >&5
     21742
     21743        ac_cv_lib_m_pow=no
     21744fi
     21745
     21746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     21747      conftest$ac_exeext conftest.$ac_ext
     21748LIBS=$ac_check_lib_save_LIBS
     21749fi
     21750{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
     21751echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
     21752if test $ac_cv_lib_m_pow = yes; then
     21753  cat >>confdefs.h <<_ACEOF
     21754#define HAVE_LIBM 1
     21755_ACEOF
     21756
     21757  LIBS="-lm $LIBS"
     21758
     21759fi
    2176021760
    2176121761
     
    2353423534
    2353523535
     23536#call libtool for cygwin
     23537 case "$CXX" in
     23538    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
     23539      { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
     23540echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
     23541      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
     23542          -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
     23543          -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
     23544          -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
     23545          -e 's%lib /OUT:%lib -OUT:%' \
     23546          -e "s%cygpath -w%$CYGPATH_W%" \
     23547          -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\`lib -nologo -list \\$f_ex_an_ar_oldlib | xargs echo '"$mydos2unix"'\\`; echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$f_ex_an_ar_oldlib; done%' \
     23548          -e 's/$AR t/lib -nologo -list/' \
     23549          -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
     23550          -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
     23551          -e 's%old_archive_cmds="lib -OUT:\\$oldlib\\$oldobjs\\$old_deplibs"%old_archive_cmds="if test -r \\$oldlib; then bla=\\"\\$oldlib\\"; else bla=; fi; lib -OUT:\\$oldlib \\\\\\$bla\\$oldobjs\\$old_deplibs"%' \
     23552      libtool > conftest.bla
     23553
     23554      mv conftest.bla libtool
     23555      chmod 755 libtool
     23556      ;;
     23557    *)
     23558      { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
     23559echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
     23560      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
     23561          -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
     23562          -e 's|libext="lib"|libext="a"|' \
     23563      libtool > conftest.bla
     23564
     23565      mv conftest.bla libtool
     23566      chmod 755 libtool
     23567      ;;
     23568  esac
     23569
    2353623570
    2353723571# echo configuration
Note: See TracChangeset for help on using the changeset viewer.