Let $\mu$ be a Borel probability measure with compact support on $\mathbb{R}$. Let $\hat{\mu}(\xi)=\int e^{-2\pi i\xi x}d\mu(x)$ denote the Fourier transform of $\mu$. Is the following claim true?
$\mu$ is not a Dirac measure if and ony if $|\hat{\mu}(\xi)|\not\equiv1, \xi\in \mathbb{R}.$
We know that if $\mu$ is a Dirac measure on $\mathbb{R}$, then $|\hat{\mu}(\xi)|\equiv1, \xi\in \mathbb{R},$ So, the sufficiency is true. Is the other hand true?
Assume that $|\int e^{-2\pi i \xi x} \mu(dx)| = 1$.
Fix $\xi$. Thanks to the equality case in the integral triangular inequality Equality in the triangle inequality for integrals, it means that there is $\theta$ such that $e^{-2\pi i \xi x} = e^{i\theta}$ for $\mu$-almost every $x$.
That means that $2\pi \xi x \in \theta + 2\pi \mathbb Z$, in other words, $x \in \dfrac {\theta}{\xi} + \dfrac 1 \xi \mathbb Z$ for $\mu$-almost every $x$.
Now consider $\xi_1, \xi_2$such that $\dfrac {\xi_1}{\xi_2} \notin \mathbb Q$. For $\mu$-a.e. $x$ we have $$x \in (\dfrac {\theta_1}{\xi_1} + \dfrac 1 {\xi_1} \mathbb Z)\cap(\dfrac {\theta_2}{\xi_2} + \dfrac 1 {\xi_2} \mathbb Z)$$
But this latter set cannot have more than one point (easy to show, if two distinct points, $\dfrac {\xi_1}{\xi_2} \in \mathbb Q$). This just says that the support of $\mu$ is a single point.