Changeset 4479:495cc2d85ef2 in roaraudio for configure


Ignore:
Timestamp:
10/11/10 15:05:49 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

search for root user id

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r4456 r4479  
    5454PROC_NET_DECNET="/proc/net/decnet" 
    5555TTY_DEV="" 
     56 
     57ROOT_UID='' 
    5658 
    5759VORBIS_BITS=32 
     
    190192   echo '                              (ignore this on non-Linux)' 
    191193   echo '--audio-group GROUP         - Sets group of audio permitted users' 
     194   echo '--root-uid UID              - Sets User ID (UID) of the root user/superuser' 
    192195   echo 
    193196   echo '--no-LIB                    - disable library LIB' 
     
    300303   shift; 
    301304  ;; 
     305  '--root-uid') 
     306   ROOT_UID="$2" 
     307   shift; 
     308  ;; 
    302309  '--no-'*) 
    303310   lib=$(echo "$1" | sed 's/^--no-//') 
     
    19932000fi 
    19942001 
     2002echo -n 'checking for user id of root/superuser... ' 
     2003if [ "$ROOT_UID" = '(none)' ] 
     2004then 
     2005 echo "none (disabled by user)" 
     2006elif [ "$ROOT_UID" = '' ] 
     2007then 
     2008 ROOT_USER='root' 
     2009 ROOT_UID=`id -u $ROOT_USER` 
     2010 if [ "$ROOT_UID" = '' ] 
     2011 then 
     2012  echo "none (please report this)" 
     2013 else 
     2014  echo "$ROOT_UID($ROOT_USER)" 
     2015  echo '#define ROAR_ROOT_UID '"$ROOT_UID" >&3 
     2016 fi 
     2017else 
     2018 echo "$ROOT_UID" 
     2019 echo '#define ROAR_ROOT_UID '"$ROOT_UID" >&3 
     2020fi 
    19952021 
    19962022$NEED_GNU_SOURCE && echo '#define ROAR_NEED_GNU_SOURCE' >&3 
Note: See TracChangeset for help on using the changeset viewer.