Ticket #16852: patch-src.diff

File patch-src.diff, 1.8 KB (added by krunk7@…, 16 years ago)

Patch for configure

  • configure

    diff -Naur src.old/configure src/configure
    old new  
    55[ -n "$VERSION" ] && echo "Running configure for SHOGUN version $VERSION"
    66
    77# some hopefully reasonable defaults
    8 MAKEDEPEND="gcc -MM"
     8MAKEDEPEND="/opt/local/bin/gcc-mp-4.3 -MM"
    99MAKEDEPENDOPTS=""
    1010SRCDIR="`dirname $0`"
    1111EXT_SRC_HEADER=h
     
    6363_hmmdebug=no
    6464_pathdebug=no
    6565_profile=no
    66 _prefix="/usr/local"
     66_prefix="/opt/local"
    6767_destdir="/"
    6868_bindir=""
    6969_datadir=""
     
    385385  if test -f "$TMPO"
    386386  then
    387387          echo >> "$TMPLOG"
    388           echo "ldd $TMPO" >> "$TMPLOG"
    389           ( ldd "$TMPO" ) >> "$TMPLOG" 2>&1
     388          echo "otool -L $TMPO" >> "$TMPLOG"
     389          ( otool -L "$TMPO" ) >> "$TMPLOG" 2>&1
    390390  else
    391391          echo "no object file created" >> "$TMPLOG"
    392392  fi
     
    405405  if test -f "$TMPO"
    406406  then
    407407          echo >> "$TMPLOG"
    408           echo "ldd $TMPO" >> "$TMPLOG"
    409           ( ldd "$TMPO" ) >> "$TMPLOG" 2>&1
     408          echo "otool -L $TMPO" >> "$TMPLOG"
     409          ( otool -L "$TMPO" ) >> "$TMPLOG" 2>&1
    410410  else
    411411          echo "no object file created" >> "$TMPLOG"
    412412  fi
     
    23912391                        LINKFLAGS="-bundle -Wl,-flat_namespace -L`octave-config -p OCTLIBDIR` -loctinterp -loctave -lcruft $LINKFLAGS"
    23922392                else
    23932393                        OCTLIBDIR=`octave-config -p OCTLIBDIR`
    2394                         LINKFLAGS="-shared -L $OCTLIBDIR -loctinterp -loctave -lcruft $LINKFLAGS"
     2394                        LINKFLAGS="-shared -L$OCTLIBDIR -loctinterp -loctave -lcruft $LINKFLAGS"
    23952395                fi
    23962396                TARGET="sg.oct"
    23972397                INCLUDES="$INCLUDES -I`octave-config -p OCTINCLUDEDIR` -I`octave-config -p INCLUDEDIR`"
     
    26672667}
    26682668EOF
    26692669                echocheck "lpsolve Developer Files"
    2670                 LPSOLVELINKFLAGS="-L /usr/lib/lp_solve -llpsolve55"
     2670                LPSOLVELINKFLAGS="-L/opt/local/lib/ -llpsolve55"
    26712671                if cc_check $LPSOLVELINKFLAGS
    26722672                then
    26732673                        echores "yes"