| 1145 else |
1145 else |
| 1146 if test x"$prefix" = x"NONE" ; then |
1146 if test x"$prefix" = x"NONE" ; then |
| 1147 dnl # no prefix given, so we look for the correct dbus system paths. |
1147 dnl # no prefix given, so we look for the correct dbus system paths. |
| 1148 dnl # if a prefix is given, we use it. |
1148 dnl # if a prefix is given, we use it. |
| 1149 |
1149 |
| 1150 serviceprefixes="$datadir $libdir /usr/share /usr/local/share" |
1150 serviceprefixes="$prefix/share $prefix/lib /usr/share /usr/local/share" |
| 1151 DBUS_SERVICES_DIR="" |
1151 DBUS_SERVICES_DIR="" |
| 1152 |
1152 |
| 1153 for d in $serviceprefixes ; do |
1153 for d in $serviceprefixes ; do |
| 1154 dir="$d/dbus-1/services" |
1154 dir="$d/dbus-1/services" |
| 1155 if test -d $dir ; then |
1155 if test -d $dir ; then |