Bug 3725 - Configure check for PICFLAGS fails
Configure check for PICFLAGS fails
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
Other All
: P3 normal
: none
Assigned To: Tim Potter
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2006-04-25 19:18 UTC by Timur Bakeyev
Modified: 2006-04-26 14:15 UTC (History)
0 users

See Also:

Fix (426 bytes, patch)
2006-04-25 19:19 UTC, Timur Bakeyev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timur Bakeyev 2006-04-25 19:18:44 UTC
There is a small bug in a chek of PICFLAGS in configure. It's not taken into account that value of a variable could have several words, space separated. So, the following message is produced during the run of configure:

checking whether to use pam_smbpass... yes
test: x-fPIC: unexpected operator
checking for library containing crypt... -lcrypt

The fix is easy - just take variavle in quotes. Patch is attached. Also, it's possible to use:

if test -z $PICFLAGS ; then

construction instead. Maybe, it's better option.
Comment 1 Timur Bakeyev 2006-04-25 19:19:19 UTC
Created attachment 1875 [details]
Comment 2 Tim Potter 2006-04-26 14:15:42 UTC
Fixed - thanks!  There was another unescaped usage of $PICFLAGS in the configure instructions for smbwrapper.