[Home]

Summary:ASTERISK-17087: ./configure: syntax error at line 5524: `GTK2_INCLUDE=$' unexpected
Reporter:Paul Belanger (pabelanger)Labels:
Date Opened:2010-12-09 09:48:02.000-0600Date Closed:
Priority:MinorRegression?No
Status:Open/NewComponents:Core/BuildSystem
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) sh-isnt-bash.patch
Description:Working on bring up Solaris remote bamboo agents, notice this error.
Comments:By: Jeremy Kister (jkister) 2012-02-01 23:18:38.919-0600

it seems as if many parts of configure was written with "bash" in mind rather than  legacy "sh".  this is fine for operating systems who's /bin/sh is just a symlink to /bin/bash, however, Solaris is not one of them.

in particular, Solaris' "sh" does not support
$( ... ) execution
$(( ... )) arithmetic

I believe this is the factor behind the problem, but haven't looked too closely.

By: Jeremy Kister (jkister) 2012-02-03 17:55:01.842-0600

sh-isnt-bash.patch seems to fix the problem.

it also changes the brokenness in some of the other places i found it - e.g. contrib/scripts/safe_asterisk and contrib/scripts/autosupport