LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   configure script not found error (http://www.linuxquestions.org/questions/programming-9/configure-script-not-found-error-949082/)

rhlee 06-07-2012 04:46 PM

configure script not found error
 
(this is a repost of http://stackoverflow.com/questions/1...ot-found-error, just trying to grab a larger audience)

I'm trying to compile the mplayer2 encoder branch statically (because I am slightly modifying the libav libraries).

So I run
Code:

configure --enable-static
It always ends with this error:

Code:

Checking for Libav (libavutil > 51.21.0:libavcodec > 53.34.0:libavformat > 53.20.0:libswscale >= 2.0.0:libpostproc >= 52.0.0) ...
./configure: 6012: ./configure: pkg-config --static: not found

The relevant lines leading up to line 6012 are:

Code:

all_libav_libs="libavutil > 51.21.0:libavcodec > 53.34.0:libavformat > 53.20.0:libswscale >= 2.0.0:libpostproc >= 52.0.0"
echocheck "Libav ($all_libav_libs)"
if $_pkg_config --exists --print-errors $all_libav_libs ; then
  IFS=":"  # shell should not be used for programming
  if $_pkg_config --exists --print-errors $all_libav_libs ; then
  inc_ffmpeg=$($_pkg_config --cflags $all_libav_libs)
  _ld_tmp=$($_pkg_config --libs $all_libav_libs)
  extra_ldflags="$extra_ldflags $_ld_tmp"
  extra_cflags="$extra_cflags $inc_ffmpeg"
  unset IFS
else
  die "Unable to find development files for some of the required Libav libraries above. Aborting."
fi

with 6012 being the first if statement.

I dumped out the $_pkg_config which is "pkg-config --static". There are no special characters within the string. But for some reason it is as if sh is treating "pkg-config --static" as the name of a binary.

I tried putting various parenthesis around the command, but with no avail:
Code:

if [ $($_pkg_config --exists --print-errors $all_libav_libs) ] ; then
What am I missing here?

Reuti 06-08-2012 06:25 AM

Is pkg-config installed on your system?

rhlee 06-08-2012 12:28 PM

I have checked.

I think this a problem with dash. I ran it through gdb and I can see it calling find_command('pkg-config --static', ... )


All times are GMT -5. The time now is 12:59 AM.