title: Run ./configure from bash script fails due "error: cannot compute suffix of object files"
body: <p>I'm trying to automate some stage of compile/build on Linux RHEL7 host using a bash script, but when i try to use ./configure it fails due to :</p>
  
  <pre><code>configure:3793: error: in `/app/compiling/BUILD_AREA/TEST/SRC/zabbix-4.2.6':
  configure:3795: error: cannot compute suffix of object files: cannot compile
  </code></pre>
  
  <p>using :</p>
  
  <pre><code>CC="gcc"
  PATH="/app/app_lib/mysql/bin:/app/app_lib/bin:/app/app_lib/build-1:/app/app_lib:$PATH"
  LD_LIBRARY_PATH="/app/app_lib:/app/app_lib/include:/app/app_lib/lib:/app/apache/modules:/app/app_lib/ssl:/app/app_lib/lib/iconv:/app/oracle/product/12.1.0/lib:/app/ap_lib/mysql/lib:$LD_LIBRARY_PATH"
  
  export CC
  export PATH
  export LD_LIBRARY_PATH
  
  ARG_ZABBIX="--prefix=/app/zabbix --datarootdir=/app/zabbix/share --docdir=/app/zabbix/share/doc/$PKGAPPDIR --enable-agent --enable-ipv6 --enable-java --enable-server --includedir=/app/zabbix/include --libdir=/app/zabbix/lib --mandir=/app/zabbix/share/man/$PKGAPPDIR --with-libcurl=/app/app_lib/bin/curl-config --with-libxml2=/app/app_lib/bin/xml2-config --with-mysql=/app/mysql/bin/mysql_config --with-net-snmp=/app/app_lib/bin/net-snmp-config --with-openipmi=/app/app_lib --with-ssh2=/app/app_lib"
  CONFIGURE="configure"
  
  cd /app/compiling/BUILD_AREA/TEST/SRC/zabbix-4.2.6
  "./${CONFIGURE}" "${ARG_ZABBIX}" 2&gt;&amp;1
  </code></pre>
  
  <p>Any help would be really appreciated!</p>